]> CyberLeo.Net >> Repos - FreeBSD/releng/8.1.git/blob - usr.bin/truss/Makefile
Copy stable/8 to releng/8.1 in preparation for 8.1-RC1.
[FreeBSD/releng/8.1.git] / usr.bin / truss / Makefile
1 # $FreeBSD$
2
3 WARNS?= 6
4 NO_WERROR=
5 PROG=   truss
6 SRCS=   main.c setup.c syscalls.c syscalls.h ioctl.c ${MACHINE_ARCH}-fbsd.c
7
8 CFLAGS+= -I${.CURDIR} -I.
9 CLEANFILES= syscalls.master syscalls.h ioctl.c
10
11 .SUFFIXES: .master
12
13 syscalls.master:        ${.CURDIR}/../../sys/kern/syscalls.master
14         cat ${.ALLSRC} > syscalls.master
15
16 syscalls.h:     syscalls.master
17         /bin/sh ${.CURDIR}/../../sys/kern/makesyscalls.sh syscalls.master \
18                 ${.CURDIR}/i386.conf
19
20 ioctl.c: ${.CURDIR}/../kdump/mkioctls
21         sh ${.CURDIR}/../kdump/mkioctls ${DESTDIR}/usr/include > ${.TARGET}
22
23 .if ${MACHINE_ARCH} == "i386"
24 SRCS+=  i386-linux.c linux_syscalls.h
25 CLEANFILES+=i386l-syscalls.master linux_syscalls.h
26
27 i386l-syscalls.master:  ${.CURDIR}/../../sys/i386/linux/syscalls.master
28         cat ${.ALLSRC} > ${.TARGET}
29
30 linux_syscalls.h:       i386l-syscalls.master
31         /bin/sh ${.CURDIR}/../../sys/kern/makesyscalls.sh ${.ALLSRC} \
32                 ${.CURDIR}/i386linux.conf
33 .endif
34
35 .if ${MACHINE_ARCH} == "amd64"
36 SRCS+=  amd64-linux32.c linux32_syscalls.h
37 CLEANFILES+=amd64l32-syscalls.master linux32_syscalls.h
38
39 amd64l32-syscalls.master: ${.CURDIR}/../../sys/amd64/linux32/syscalls.master
40         cat ${.ALLSRC} > ${.TARGET}
41
42 linux32_syscalls.h:     amd64l32-syscalls.master
43         /bin/sh ${.CURDIR}/../../sys/kern/makesyscalls.sh ${.ALLSRC} \
44                 ${.CURDIR}/amd64linux32.conf
45
46 SRCS+=  amd64-fbsd32.c freebsd32_syscalls.h
47 CLEANFILES+=fbsd32-syscalls.master freebsd32_syscalls.h
48
49 fbsd32-syscalls.master: ${.CURDIR}/../../sys/compat/freebsd32/syscalls.master
50         cat ${.ALLSRC} > ${.TARGET}
51
52 freebsd32_syscalls.h:   fbsd32-syscalls.master
53         /bin/sh ${.CURDIR}/../../sys/kern/makesyscalls.sh ${.ALLSRC} \
54                 ${.CURDIR}/fbsd32.conf
55 .endif
56
57 .include <bsd.prog.mk>