2003-11-27 19:32:09 +03:00
|
|
|
# $NetBSD: Makefile,v 1.4 2003/11/27 16:32:09 cl Exp $
|
2003-01-18 13:32:11 +03:00
|
|
|
#
|
|
|
|
|
|
|
|
WARNS= 2
|
|
|
|
|
|
|
|
.include <bsd.own.mk>
|
|
|
|
|
|
|
|
LIBPDIR= ${.CURDIR}/../libpthread
|
|
|
|
|
2003-11-27 19:32:09 +03:00
|
|
|
# Define PT_FIXEDSTACKSIZE_LG to set a fixed stacksize (same as libpthread)
|
|
|
|
#CPPFLAGS+=-DPT_FIXEDSTACKSIZE_LG=18
|
|
|
|
|
2003-01-18 13:32:11 +03:00
|
|
|
.if exists(${LIBPDIR}/arch/${MACHINE_ARCH})
|
|
|
|
ARCHSUBDIR= ${MACHINE_ARCH}
|
|
|
|
.elif exists(${LIBPDIR}/arch/${MACHINE_CPU})
|
|
|
|
ARCHSUBDIR= ${MACHINE_CPU}
|
|
|
|
.else
|
|
|
|
.BEGIN:
|
|
|
|
@echo "no ARCHSUBDIR for ${MACHINE_ARCH}/${MACHINE_CPU}; skipping..."
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if defined(ARCHSUBDIR)
|
|
|
|
|
|
|
|
LIB= pthread_dbg
|
|
|
|
|
|
|
|
ARCHDIR= ${LIBPDIR}/arch/${ARCHSUBDIR}
|
|
|
|
.PATH: ${ARCHDIR}
|
|
|
|
|
|
|
|
CPPFLAGS+= -I${ARCHDIR} -I${LIBPDIR} -I${.CURDIR}
|
|
|
|
|
|
|
|
assym.h: genassym.sh ${ARCHDIR}/genassym.cf
|
2003-10-26 10:25:33 +03:00
|
|
|
${HOST_SH} ${.CURDIR}/genassym.sh ${CC} ${CFLAGS} ${CPPFLAGS} ${PROF} \
|
2003-01-18 13:32:11 +03:00
|
|
|
< ${ARCHDIR}/genassym.cf > assym.h.tmp && \
|
|
|
|
mv -f assym.h.tmp assym.h
|
|
|
|
|
|
|
|
SRCS= pthread_dbg.c
|
|
|
|
|
|
|
|
INCS= pthread_dbg.h
|
|
|
|
INCSDIR=/usr/include
|
|
|
|
|
|
|
|
.include <bsd.lib.mk>
|
|
|
|
|
|
|
|
.else
|
|
|
|
|
|
|
|
.include <bsd.man.mk>
|
|
|
|
|
|
|
|
.endif
|