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