1 # $NetBSD: Makefile,v 1.8.2.4 2001/07/17 20:22:40 nathanw Exp $ 2 # 3 4 .if exists(${.CURDIR}/arch/${MACHINE_ARCH}) 5 ARCHSUBDIR= ${MACHINE_ARCH} 6 .elif exists(${.CURDIR}/arch/${MACHINE_CPU}) 7 ARCHSUBDIR= ${MACHINE_CPU} 8 .else 9 .BEGIN: 10 @echo no ARCHSUBDIR for ${MACHINE_ARCH} nor ${MACHINE_CPU} 11 @false 12 .endif 13 14 ARCHDIR= ${.CURDIR}/arch/${ARCHSUBDIR} 15 AINC= -I${ARCHDIR} 16 .PATH: ${ARCHDIR} 17 18 CPPFLAGS+= ${AINC} -I${.CURDIR} -I${.OBJDIR} 19 20 DPSRCS+= assym.h 21 22 assym.h: genassym.sh ${ARCHDIR}/genassym.cf 23 sh ${.CURDIR}/genassym.sh ${CC} ${CFLAGS} ${CPPFLAGS} ${PROF} \ 24 < ${ARCHDIR}/genassym.cf > assym.h.tmp && \ 25 mv -f assym.h.tmp assym.h 26 27 LIB= pthread 28 SRCS= pthread.c pthread_lock.c pthread_mutex.c pthread_run.c 29 SRCS+= pthread_sa.c pthread_sig.c pthread_stack.c 30 SRCS+= pthread_debug.c 31 SRCS+= sched.c 32 # Architecture-dependent files 33 SRCS+= pthread_switch.S _context_u.S 34 35 36 INCS= pthread.h pthread_types.h pthread_queue.h sched.h 37 INCSDIR=/usr/include 38 39 debuglog: debuglog.o 40 $(CC) -o debuglog debuglog.o -lpthread 41 42 .include <bsd.lib.mk> 43 # DO NOT DELETE 44