Makefile.inc revision 145436
1# $FreeBSD: head/lib/libthr/support/Makefile.inc 145436 2005-04-23 02:48:59Z davidxu $ 2 3.PATH: ${.CURDIR}/support ${.CURDIR}/../libc/gen ${.CURDIR}/../libc/string 4.PATH: ${.CURDIR}/../libc/${MACHINE_ARCH}/sys 5 6CFLAGS+= -I${.CURDIR}/../libc/${MACHINE_ARCH} 7 8SYSCALLS= thr_new 9 10SYSCALL_SRC= ${SYSCALLS:S/$/.S/} 11SYSCALL_OBJ= ${SYSCALLS:S/$/.So/} 12 13${SYSCALL_SRC}: 14 printf '#include "SYS.h"\nRSYSCALL(${.PREFIX})\n' > ${.TARGET} 15 16LIBC_OBJS= 17 18SOBJS+= thr_libc.So 19CLEANFILES+= ${SYSCALL_SRC} ${SYSCALL_OBJ} ${LIBC_OBJS} 20 21thr_libc.So: ${SYSCALL_OBJ} ${LIBC_OBJS} 22 ${CC} -fPIC -nostdlib -o ${.TARGET} -r ${.ALLSRC} 23