1 1.8.2.7 nathanw # $NetBSD: Makefile,v 1.8.2.7 2001/08/08 16:39:33 nathanw Exp $ 2 1.8.2.1 nathanw # 3 1.8.2.6 nathanw 4 1.8.2.6 nathanw WARNS= 2 5 1.1 proven 6 1.8.2.1 nathanw .if exists(${.CURDIR}/arch/${MACHINE_ARCH}) 7 1.8.2.1 nathanw ARCHSUBDIR= ${MACHINE_ARCH} 8 1.8.2.1 nathanw .elif exists(${.CURDIR}/arch/${MACHINE_CPU}) 9 1.8.2.1 nathanw ARCHSUBDIR= ${MACHINE_CPU} 10 1.8.2.1 nathanw .else 11 1.8.2.1 nathanw .BEGIN: 12 1.8.2.1 nathanw @echo no ARCHSUBDIR for ${MACHINE_ARCH} nor ${MACHINE_CPU} 13 1.8.2.1 nathanw @false 14 1.8.2.1 nathanw .endif 15 1.8.2.1 nathanw 16 1.8.2.1 nathanw ARCHDIR= ${.CURDIR}/arch/${ARCHSUBDIR} 17 1.8.2.1 nathanw AINC= -I${ARCHDIR} 18 1.8.2.1 nathanw .PATH: ${ARCHDIR} 19 1.8.2.1 nathanw 20 1.8.2.1 nathanw CPPFLAGS+= ${AINC} -I${.CURDIR} -I${.OBJDIR} 21 1.8.2.1 nathanw 22 1.8.2.1 nathanw DPSRCS+= assym.h 23 1.8.2.1 nathanw 24 1.8.2.1 nathanw assym.h: genassym.sh ${ARCHDIR}/genassym.cf 25 1.8.2.1 nathanw sh ${.CURDIR}/genassym.sh ${CC} ${CFLAGS} ${CPPFLAGS} ${PROF} \ 26 1.8.2.1 nathanw < ${ARCHDIR}/genassym.cf > assym.h.tmp && \ 27 1.8.2.1 nathanw mv -f assym.h.tmp assym.h 28 1.8.2.1 nathanw 29 1.8.2.1 nathanw LIB= pthread 30 1.8.2.5 nathanw SRCS= pthread.c pthread_cond.c pthread_lock.c pthread_mutex.c 31 1.8.2.7 nathanw SRCS+= pthread_run.c pthread_sa.c pthread_sig.c pthread_specific.c 32 1.8.2.7 nathanw SRCS+= pthread_stack.c 33 1.8.2.4 nathanw SRCS+= pthread_debug.c 34 1.8.2.1 nathanw SRCS+= sched.c 35 1.8.2.3 nathanw # Architecture-dependent files 36 1.8.2.3 nathanw SRCS+= pthread_switch.S _context_u.S 37 1.8.2.3 nathanw 38 1.8.2.1 nathanw 39 1.8.2.2 nathanw INCS= pthread.h pthread_types.h pthread_queue.h sched.h 40 1.8.2.1 nathanw INCSDIR=/usr/include 41 1.8.2.4 nathanw 42 1.8.2.4 nathanw debuglog: debuglog.o 43 1.8.2.4 nathanw $(CC) -o debuglog debuglog.o -lpthread 44 1.1 proven 45 1.8.2.1 nathanw .include <bsd.lib.mk> 46 1.8.2.7 nathanw 47 1.8.2.7 nathanw # WARNS=2 sets -Wcast-qual. This causes problems for one of 48 1.8.2.7 nathanw # pthread_setspecific() and pthread_getspecific(), since the constness 49 1.8.2.7 nathanw # of the argument to setspecific() has to be discarded *somewhere* 50 1.8.2.7 nathanw # before returning it from getspecific(). 51 1.8.2.7 nathanw CFLAGS+= -Wno-cast-qual 52 1.8.2.7 nathanw 53 1.8.2.7 nathanw 54 1.8.2.2 nathanw # DO NOT DELETE 55