Makefile revision 179051
153152Smarcel# $FreeBSD: head/usr.bin/truss/Makefile 179051 2008-05-16 15:34:06Z jhb $
253152Smarcel
3175937SdesWARNS?= 6
4136910SruNO_WERROR=
531567SsefPROG=	truss
6101320SjakeSRCS=	main.c setup.c syscalls.c syscalls.h ioctl.c ${MACHINE_ARCH}-fbsd.c
739908Ssef
832367SsefCFLAGS+= -I${.CURDIR} -I.
9179051SjhbCLEANFILES= syscalls.master syscalls.h ioctl.c
1031567Ssef
1131567Ssef.SUFFIXES: .master
1231567Ssef
1331567Ssefsyscalls.master:	${.CURDIR}/../../sys/kern/syscalls.master
14115886Smarcel	cat ${.ALLSRC} > syscalls.master
1531567Ssef
1631567Ssefsyscalls.h:	syscalls.master
1731567Ssef	/bin/sh ${.CURDIR}/../../sys/kern/makesyscalls.sh syscalls.master \
1831567Ssef		${.CURDIR}/i386.conf
1931567Ssef
2094432Sruioctl.c: ${.CURDIR}/../kdump/mkioctls
2165849Sjkh	sh ${.CURDIR}/../kdump/mkioctls ${DESTDIR}/usr/include > ${.TARGET}
2231571Ssef
23179051Sjhb.if ${MACHINE_ARCH} == "i386"
24179051SjhbSRCS+=	i386-linux.c linux_syscalls.h
25179051SjhbCLEANFILES+=i386l-syscalls.master linux_syscalls.h
26179051Sjhb
27179051Sjhbi386l-syscalls.master:	${.CURDIR}/../../sys/i386/linux/syscalls.master
28179051Sjhb	cat ${.ALLSRC} > ${.TARGET}
29179051Sjhb
30179051Sjhblinux_syscalls.h:	i386l-syscalls.master
31179051Sjhb	/bin/sh ${.CURDIR}/../../sys/kern/makesyscalls.sh ${.ALLSRC} \
32179051Sjhb		${.CURDIR}/i386linux.conf
33179051Sjhb.endif
34179051Sjhb
35179051Sjhb.if ${MACHINE_ARCH} == "amd64"
36179051SjhbSRCS+=	amd64-linux32.c linux32_syscalls.h
37179051SjhbCLEANFILES+=amd64l32-syscalls.master linux32_syscalls.h
38179051Sjhb
39179051Sjhbamd64l32-syscalls.master: ${.CURDIR}/../../sys/amd64/linux32/syscalls.master
40179051Sjhb	cat ${.ALLSRC} > ${.TARGET}
41179051Sjhb
42179051Sjhblinux32_syscalls.h:	amd64l32-syscalls.master
43179051Sjhb	/bin/sh ${.CURDIR}/../../sys/kern/makesyscalls.sh ${.ALLSRC} \
44179051Sjhb		${.CURDIR}/amd64linux32.conf
45179051Sjhb
46179051SjhbSRCS+=	amd64-fbsd32.c freebsd32_syscalls.h
47179051SjhbCLEANFILES+=fbsd32-syscalls.master freebsd32_syscalls.h
48179051Sjhb
49179051Sjhbfbsd32-syscalls.master: ${.CURDIR}/../../sys/compat/freebsd32/syscalls.master
50179051Sjhb	cat ${.ALLSRC} > ${.TARGET}
51179051Sjhb
52179051Sjhbfreebsd32_syscalls.h:	fbsd32-syscalls.master
53179051Sjhb	/bin/sh ${.CURDIR}/../../sys/kern/makesyscalls.sh ${.ALLSRC} \
54179051Sjhb		${.CURDIR}/fbsd32.conf
55179051Sjhb.endif
56179051Sjhb
5731567Ssef.include <bsd.prog.mk>
58