Home | History | Annotate | Line # | Download | only in libpthread
Makefile revision 1.8.2.3
      1 #	$NetBSD: Makefile,v 1.8.2.3 2001/07/13 21:53: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+=	sched.c
     31 # Architecture-dependent files
     32 SRCS+=	pthread_switch.S _context_u.S
     33 
     34 
     35 INCS=	pthread.h pthread_types.h pthread_queue.h sched.h
     36 INCSDIR=/usr/include
     37 
     38 .include <bsd.lib.mk>
     39 # DO NOT DELETE
     40