Sync usage with man page.
[netbsd-mini2440.git] / lib / libpthread_dbg / Makefile
blob58aa7b7767138591ee33f549413c1af6629980af
1 # $NetBSD: Makefile,v 1.6 2007/02/09 22:09:32 ad Exp $
4 WARNS= 2
6 .include <bsd.own.mk>
8 LIBPDIR= ${.CURDIR}/../libpthread
10 .if exists(${LIBPDIR}/arch/${MACHINE_ARCH})
11 ARCHSUBDIR= ${MACHINE_ARCH}
12 .elif exists(${LIBPDIR}/arch/${MACHINE_CPU})
13 ARCHSUBDIR= ${MACHINE_CPU}
14 .else
15 .BEGIN:
16 @echo "no ARCHSUBDIR for ${MACHINE_ARCH}/${MACHINE_CPU}; skipping..."
17 .endif
19 .if defined(ARCHSUBDIR)
21 LIB= pthread_dbg
23 ARCHDIR= ${LIBPDIR}/arch/${ARCHSUBDIR}
24 .PATH: ${ARCHDIR}
26 CPPFLAGS+= -I${ARCHDIR} -I${LIBPDIR} -I${.CURDIR}
28 assym.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
33 SRCS= pthread_dbg.c
35 INCS= pthread_dbg.h
36 INCSDIR=/usr/include
38 .include <bsd.lib.mk>
40 .else
42 .include <bsd.man.mk>
44 .endif