mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2024-12-21 08:24:10 +01:00
80c9676e8b
is no longer needed.
23 lines
535 B
Makefile
23 lines
535 B
Makefile
# $FreeBSD$
|
|
|
|
.PATH: ${.CURDIR}/support ${.CURDIR}/../libc/gen ${.CURDIR}/../libc/string
|
|
.PATH: ${.CURDIR}/../libc/${MACHINE_ARCH}/sys
|
|
|
|
CFLAGS+= -I${.CURDIR}/../libc/${MACHINE_ARCH}
|
|
|
|
SYSCALLS= thr_new
|
|
|
|
SYSCALL_SRC= ${SYSCALLS:S/$/.S/}
|
|
SYSCALL_OBJ= ${SYSCALLS:S/$/.So/}
|
|
|
|
${SYSCALL_SRC}:
|
|
printf '#include "SYS.h"\nRSYSCALL(${.PREFIX})\n' > ${.TARGET}
|
|
|
|
LIBC_OBJS=
|
|
|
|
SOBJS+= thr_libc.So
|
|
CLEANFILES+= ${SYSCALL_SRC} ${SYSCALL_OBJ} ${LIBC_OBJS}
|
|
|
|
thr_libc.So: ${SYSCALL_OBJ} ${LIBC_OBJS}
|
|
${CC} -fPIC -nostdlib -o ${.TARGET} -r ${.ALLSRC}
|