1# $NetBSD: Makefile,v 1.7 2007/08/16 01:09:50 ad Exp $ 2# 3 4WARNS= 2 5 6.include <bsd.own.mk> 7 8LIBPDIR= ${.CURDIR}/../libpthread 9 10.if exists(${LIBPDIR}/arch/${MACHINE_ARCH}) 11ARCHSUBDIR= ${MACHINE_ARCH} 12.elif exists(${LIBPDIR}/arch/${MACHINE_CPU}) 13ARCHSUBDIR= ${MACHINE_CPU} 14.else 15.BEGIN: 16 @echo "no ARCHSUBDIR for ${MACHINE_ARCH}/${MACHINE_CPU}; skipping..." 17.endif 18 19.if defined(ARCHSUBDIR) 20 21LIB= pthread_dbg 22 23ARCHDIR= ${LIBPDIR}/arch/${ARCHSUBDIR} 24.PATH: ${ARCHDIR} 25 26CPPFLAGS+= -I${ARCHDIR} -I${LIBPDIR} -I${.CURDIR} 27 28assym.h: genassym.sh ${ARCHDIR}/genassym.cf 29 ${HOST_SH} ${.CURDIR}/genassym.sh ${CC} ${CFLAGS} ${CPPFLAGS} ${PROF} \ 30 < ${ARCHDIR}/genassym.cf > assym.h.tmp && \ 31 mv -f assym.h.tmp assym.h 32 33SRCS= pthread_dbg.c 34 35CPPFLAGS+= -D__LIBPTHREAD_SOURCE__ 36 37INCS= pthread_dbg.h 38INCSDIR=/usr/include 39 40.include <bsd.lib.mk> 41 42.else 43 44.include <bsd.man.mk> 45 46.endif 47