3c1e38ea6e
i386, ia64 and sparc64. Add stubs for alpha, amd64, ia64 and sparc64 for libpthread. Restructure the source files to avoid unnecessary use of subdirectories that also force us to use non-portable compilation flags to deal with the uncommon compilation requirements (building archive libraries for linkage into a shared library). The libpthread support has been copied from the original local and cleaned-up to make them WARNS=2 clean. that also force us to use non-portable compilation flags to deal with the uncommon compilation requirements (building archive libraries for linkage into a shared library). The libpthread support has been copied from the original local and cleaned-up to make them WARNS=2 clean. Tested on: amd64, i386, ia64
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?= 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>
|