Makefile revision 54089
138451Smsmith# $FreeBSD: head/usr.bin/truss/Makefile 54089 1999-12-03 17:35:34Z marcel $
238451Smsmith
338451SmsmithPROG=	truss
438451SmsmithSRCS=	main.c setup.c syscalls.c syscalls.h ioctl.c
538451Smsmith.if (${MACHINE_ARCH} == "alpha")
638451SmsmithSRCS+=	alpha-fbsd.c
738451Smsmith.elif (${MACHINE_ARCH} == "i386")
838451SmsmithSRCS+=	i386-fbsd.c i386-linux.c linux_syscalls.h
938451Smsmith.endif
1038451Smsmith
1138451SmsmithCFLAGS+= -I${.CURDIR} -I.
1238451SmsmithCLEANFILES+=i386l-syscalls.master syscalls.master linux_syscalls.h \
1338451Smsmith	syscalls.h ioctl.c
1438451Smsmith
1538451Smsmith.SUFFIXES: .master
1638451Smsmith
1738451Smsmithi386l-syscalls.master:	${.CURDIR}/../../sys/i386/linux/syscalls.master
1838451Smsmith	cp ${.ALLSRC} i386l-syscalls.master
1938451Smsmith
2038451Smsmithlinux_syscalls.h:	i386l-syscalls.master
2138451Smsmith	/bin/sh ${.CURDIR}/../../sys/kern/makesyscalls.sh i386l-syscalls.master \
2238451Smsmith		${.CURDIR}/i386linux.conf
2338451Smsmith
2438451Smsmithsyscalls.master:	${.CURDIR}/../../sys/kern/syscalls.master
2538451Smsmith	cp ${.ALLSRC} syscalls.master
2638451Smsmith
2738451Smsmithsyscalls.h:	syscalls.master
2838451Smsmith	/bin/sh ${.CURDIR}/../../sys/kern/makesyscalls.sh syscalls.master \
2938451Smsmith		${.CURDIR}/i386.conf
3038451Smsmith
3138451Smsmithioctl.c:	${.CURDIR}/../../usr.bin/kdump/mkioctls
3238451Smsmith	sh ${.CURDIR}/../../usr.bin/kdump/mkioctls ${DESTDIR}/usr/include > ioctl.c
3338451Smsmith
3438451Smsmith.include <bsd.prog.mk>
3564185Sjhb