Makefile revision 211725
1# $FreeBSD: head/usr.bin/truss/Makefile 211725 2010-08-23 22:24:11Z imp $
2
3NO_WERROR=
4PROG=	truss
5SRCS=	main.c setup.c syscalls.c syscalls.h ioctl.c ${MACHINE_CPUARCH}-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_CPUARCH} == "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_CPUARCH} == "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