2014-03-04 18:58:14 +04:00
|
|
|
# $NetBSD: Makefile,v 1.11 2014/03/04 14:58:14 joerg Exp $
|
2003-01-18 13:32:11 +03:00
|
|
|
#
|
|
|
|
|
2012-03-21 09:37:42 +04:00
|
|
|
WARNS?= 5
|
2003-01-18 13:32:11 +03:00
|
|
|
|
|
|
|
.include <bsd.own.mk>
|
|
|
|
|
|
|
|
LIBPDIR= ${.CURDIR}/../libpthread
|
|
|
|
|
2012-07-19 10:33:48 +04:00
|
|
|
.if defined(PTHREAD_MACHINE_ARCH) && !empty(PTHREAD_MACHINE_ARCH) && \
|
|
|
|
exists(${LIBPDIR}/arch/${PTHREAD_MACHINE_ARCH})
|
|
|
|
ARCHSUBDIR= ${PTHREAD_MACHINE_ARCH}
|
|
|
|
.elif exists(${LIBPDIR}/arch/${MACHINE_ARCH})
|
2003-01-18 13:32:11 +03:00
|
|
|
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
|
2014-03-04 18:58:14 +04:00
|
|
|
${TOOL_GENASSYM} -- ${CC} ${CFLAGS:N-Wa,*} ${CPPFLAGS} ${PROF} \
|
|
|
|
${GENASSYM_CPPFLAGS} < ${ARCHDIR}/genassym.cf > assym.h.tmp && \
|
2003-01-18 13:32:11 +03:00
|
|
|
mv -f assym.h.tmp assym.h
|
|
|
|
|
|
|
|
SRCS= pthread_dbg.c
|
|
|
|
|
2011-03-17 04:01:15 +03:00
|
|
|
CPPFLAGS+= -D__LIBPTHREAD_SOURCE__
|
|
|
|
|
2003-01-18 13:32:11 +03:00
|
|
|
INCS= pthread_dbg.h
|
|
|
|
INCSDIR=/usr/include
|
|
|
|
|
|
|
|
.include <bsd.lib.mk>
|
|
|
|
|
|
|
|
.else
|
|
|
|
|
|
|
|
.include <bsd.man.mk>
|
|
|
|
|
|
|
|
.endif
|