]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - usr.bin/truss/Makefile
MFV OpenSolaris DTrace userland bits.
[FreeBSD/FreeBSD.git] / usr.bin / truss / Makefile
1 # $FreeBSD$
2
3 NO_WERROR=
4 PROG=   truss
5 SRCS=   main.c setup.c syscalls.c syscalls.h ioctl.c ${MACHINE_ARCH}-fbsd.c
6
7 CFLAGS+= -I${.CURDIR} -I.
8 CLEANFILES= syscalls.master syscalls.h ioctl.c
9
10 .SUFFIXES: .master
11
12 syscalls.master:        ${.CURDIR}/../../sys/kern/syscalls.master
13         cat ${.ALLSRC} > syscalls.master
14
15 syscalls.h:     syscalls.master
16         /bin/sh ${.CURDIR}/../../sys/kern/makesyscalls.sh syscalls.master \
17                 ${.CURDIR}/i386.conf
18
19 ioctl.c: ${.CURDIR}/../kdump/mkioctls
20         sh ${.CURDIR}/../kdump/mkioctls ${DESTDIR}/usr/include > ${.TARGET}
21
22 .if ${MACHINE_ARCH} == "i386"
23 SRCS+=  i386-linux.c linux_syscalls.h
24 CLEANFILES+=i386l-syscalls.master linux_syscalls.h
25
26 i386l-syscalls.master:  ${.CURDIR}/../../sys/i386/linux/syscalls.master
27         cat ${.ALLSRC} > ${.TARGET}
28
29 linux_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"
35 SRCS+=  amd64-linux32.c linux32_syscalls.h
36 CLEANFILES+=amd64l32-syscalls.master linux32_syscalls.h
37
38 amd64l32-syscalls.master: ${.CURDIR}/../../sys/amd64/linux32/syscalls.master
39         cat ${.ALLSRC} > ${.TARGET}
40
41 linux32_syscalls.h:     amd64l32-syscalls.master
42         /bin/sh ${.CURDIR}/../../sys/kern/makesyscalls.sh ${.ALLSRC} \
43                 ${.CURDIR}/amd64linux32.conf
44
45 SRCS+=  amd64-fbsd32.c freebsd32_syscalls.h
46 CLEANFILES+=fbsd32-syscalls.master freebsd32_syscalls.h
47
48 fbsd32-syscalls.master: ${.CURDIR}/../../sys/compat/freebsd32/syscalls.master
49         cat ${.ALLSRC} > ${.TARGET}
50
51 freebsd32_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>