3475d7748a
headers from libpthread that are not WARNS=2 clean for -O2 builds. Lower the WARNS level to 1. This is the highest level possible for now.
29 lines
666 B
Makefile
29 lines
666 B
Makefile
# $FreeBSD$
|
|
|
|
.PATH: ${.CURDIR}/arch/${MACHINE_ARCH}
|
|
|
|
LIB= thread_db
|
|
SHLIB_MAJOR= 1
|
|
SRCS= thread_db.c
|
|
SRCS+= libpthread_db.c libpthread_md.c
|
|
SRCS+= libc_r_db.c libc_r_md.c
|
|
SRCS+= libthr_db.c
|
|
INCS= thread_db.h
|
|
WARNS?= 1
|
|
|
|
CFLAGS+=-I. -I${.CURDIR}
|
|
|
|
SRCS+= libpthread.h
|
|
CLEANFILES+= libpthread.h
|
|
|
|
LIBPTHREAD= ${.CURDIR}/../libpthread
|
|
LIBPTHREAD_ARCH= ${LIBPTHREAD}/arch/${MACHINE_ARCH}/include
|
|
|
|
libpthread.h:
|
|
@echo '#define LIBTHREAD_DB 1' > ${.TARGET}
|
|
@echo '#include "${LIBPTHREAD}/sys/lock.h"' >> ${.TARGET}
|
|
@echo '#include "${LIBPTHREAD_ARCH}/pthread_md.h"' >> ${.TARGET}
|
|
@echo '#include "${LIBPTHREAD}/thread/thr_private.h"' >> ${.TARGET}
|
|
|
|
.include <bsd.lib.mk>
|