#	@(#)Makefile	5.2 (Berkeley) 3/5/91
#

LIB=pthread
CPPFLAGS+= -I${.CURDIR}/include -DPTHREAD_KERNEL
# CFLAGS+= ${CPPFLAGS} -g
CFLAGS+= ${CPPFLAGS} 

.include "${.CURDIR}/pthreads/Makefile.inc"
.include "${.CURDIR}/stdlib/Makefile.inc"
.include "${.CURDIR}/stdio/Makefile.inc"
.include "${.CURDIR}/gen/Makefile.inc"

NOPROFILE=1

.include <bsd.lib.mk>

LINKS=${.CURDIR}/include/pthread/posix.h ${.CURDIR}/include/pthread/machdep.h \
	  ${.CURDIR}/include/sys ${.CURDIR}/include/unistd.h \
      ${.CURDIR}/pthreads/machdep.c ${.CURDIR}/pthreads/syscall.S

realclean: clean
	rm -f $(LINKS) config.status

links:
	./confiure
