1# $FreeBSD$ 2 3PROG= truss 4SRCS= main.c setup.c syscalls.c syscalls.h ioctl.c 5.if (${MACHINE_ARCH} == "alpha") 6SRCS+= alpha-fbsd.c 7.elif (${MACHINE_ARCH} == "i386") 8SRCS+= i386-fbsd.c i386-linux.c linux_syscalls.h 9.endif 10 11CFLAGS+= -I${.CURDIR} -I. 12CLEANFILES+=i386l-syscalls.master syscalls.master linux_syscalls.h \ 13 syscalls.h ioctl.c 14 15.SUFFIXES: .master 16 17i386l-syscalls.master: ${.CURDIR}/../../sys/i386/linux/syscalls.master 18 cp ${.ALLSRC} i386l-syscalls.master 19 20linux_syscalls.h: i386l-syscalls.master 21 /bin/sh ${.CURDIR}/../../sys/kern/makesyscalls.sh i386l-syscalls.master \ 22 ${.CURDIR}/i386linux.conf 23 24syscalls.master: ${.CURDIR}/../../sys/kern/syscalls.master 25 cp ${.ALLSRC} syscalls.master 26 27syscalls.h: syscalls.master 28 /bin/sh ${.CURDIR}/../../sys/kern/makesyscalls.sh syscalls.master \ 29 ${.CURDIR}/i386.conf 30 31ioctl.c: ${.CURDIR}/../../usr.bin/kdump/mkioctls 32 sh ${.CURDIR}/../../usr.bin/kdump/mkioctls ${DESTDIR}/usr/include > ioctl.c 33 34.include <bsd.prog.mk> 35