Makefile.inc revision 145436
1145436Sdavidxu# $FreeBSD: head/lib/libthr/support/Makefile.inc 145436 2005-04-23 02:48:59Z davidxu $ 2145436Sdavidxu 3145436Sdavidxu.PATH: ${.CURDIR}/support ${.CURDIR}/../libc/gen ${.CURDIR}/../libc/string 4145436Sdavidxu.PATH: ${.CURDIR}/../libc/${MACHINE_ARCH}/sys 5145436Sdavidxu 6145436SdavidxuCFLAGS+= -I${.CURDIR}/../libc/${MACHINE_ARCH} 7145436Sdavidxu 8145436SdavidxuSYSCALLS= thr_new 9145436Sdavidxu 10145436SdavidxuSYSCALL_SRC= ${SYSCALLS:S/$/.S/} 11145436SdavidxuSYSCALL_OBJ= ${SYSCALLS:S/$/.So/} 12145436Sdavidxu 13145436Sdavidxu${SYSCALL_SRC}: 14145436Sdavidxu printf '#include "SYS.h"\nRSYSCALL(${.PREFIX})\n' > ${.TARGET} 15145436Sdavidxu 16145436SdavidxuLIBC_OBJS= 17145436Sdavidxu 18145436SdavidxuSOBJS+= thr_libc.So 19145436SdavidxuCLEANFILES+= ${SYSCALL_SRC} ${SYSCALL_OBJ} ${LIBC_OBJS} 20145436Sdavidxu 21145436Sdavidxuthr_libc.So: ${SYSCALL_OBJ} ${LIBC_OBJS} 22145436Sdavidxu ${CC} -fPIC -nostdlib -o ${.TARGET} -r ${.ALLSRC} 23