1# $FreeBSD$ 2 3NO_WERROR= 4PROG= truss 5SRCS= main.c setup.c syscalls.c syscalls.h ioctl.c ${MACHINE_ARCH}-fbsd.c 6 7CFLAGS+= -I${.CURDIR} -I. 8CLEANFILES= syscalls.master syscalls.h ioctl.c 9 10.SUFFIXES: .master 11 12syscalls.master: ${.CURDIR}/../../sys/kern/syscalls.master 13 cat ${.ALLSRC} > syscalls.master 14 15syscalls.h: syscalls.master 16 /bin/sh ${.CURDIR}/../../sys/kern/makesyscalls.sh syscalls.master \ 17 ${.CURDIR}/i386.conf 18 19ioctl.c: ${.CURDIR}/../kdump/mkioctls 20 sh ${.CURDIR}/../kdump/mkioctls ${DESTDIR}/usr/include > ${.TARGET} 21 22.if ${MACHINE_ARCH} == "i386" 23SRCS+= i386-linux.c linux_syscalls.h 24CLEANFILES+=i386l-syscalls.master linux_syscalls.h 25 26i386l-syscalls.master: ${.CURDIR}/../../sys/i386/linux/syscalls.master 27 cat ${.ALLSRC} > ${.TARGET} 28 29linux_syscalls.h: i386l-syscalls.master 30 /bin/sh ${.CURDIR}/../../sys/kern/makesyscalls.sh ${.ALLSRC} \ 31 ${.CURDIR}/i386linux.conf 32.endif 33 34.if ${MACHINE_ARCH} == "amd64" 35SRCS+= amd64-linux32.c linux32_syscalls.h 36CLEANFILES+=amd64l32-syscalls.master linux32_syscalls.h 37 38amd64l32-syscalls.master: ${.CURDIR}/../../sys/amd64/linux32/syscalls.master 39 cat ${.ALLSRC} > ${.TARGET} 40 41linux32_syscalls.h: amd64l32-syscalls.master 42 /bin/sh ${.CURDIR}/../../sys/kern/makesyscalls.sh ${.ALLSRC} \ 43 ${.CURDIR}/amd64linux32.conf 44 45SRCS+= amd64-fbsd32.c freebsd32_syscalls.h 46CLEANFILES+=fbsd32-syscalls.master freebsd32_syscalls.h 47 48fbsd32-syscalls.master: ${.CURDIR}/../../sys/compat/freebsd32/syscalls.master 49 cat ${.ALLSRC} > ${.TARGET} 50 51freebsd32_syscalls.h: fbsd32-syscalls.master 52 /bin/sh ${.CURDIR}/../../sys/kern/makesyscalls.sh ${.ALLSRC} \ 53 ${.CURDIR}/fbsd32.conf 54.endif 55 56.include <bsd.prog.mk> 57