aboutsummaryrefslogtreecommitdiff
path: root/lib/libthread_db/Makefile
diff options
context:
space:
mode:
authorMarcel Moolenaar <marcel@FreeBSD.org>2004-07-18 04:17:15 +0000
committerMarcel Moolenaar <marcel@FreeBSD.org>2004-07-18 04:17:15 +0000
commit3c1e38ea6e2fb9c73d749f283a2c11d0314d280d (patch)
tree7bd51edf97e872db5b632c4e4f5b742ac0fb5e09 /lib/libthread_db/Makefile
parent38da2381cd9c46a619bc70f7d86ac68c46eeeb33 (diff)
Notes
Diffstat (limited to 'lib/libthread_db/Makefile')
-rw-r--r--lib/libthread_db/Makefile27
1 files changed, 25 insertions, 2 deletions
diff --git a/lib/libthread_db/Makefile b/lib/libthread_db/Makefile
index e6295989b7cb..5825cc908a20 100644
--- a/lib/libthread_db/Makefile
+++ b/lib/libthread_db/Makefile
@@ -1,5 +1,28 @@
# $FreeBSD$
-SUBDIR=pthread src
+.PATH: ${.CURDIR}/arch/${MACHINE_ARCH}
-.include <bsd.subdir.mk>
+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?= 2
+
+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>