]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - usr.bin/truss/Makefile
Sort MLINKS.
[FreeBSD/FreeBSD.git] / usr.bin / truss / Makefile
1 # $FreeBSD$
2
3 PROG=   truss
4 SRCS=   main.c setup.c syscalls.c syscalls.h ioctl.c ${MACHINE_ARCH}-fbsd.c
5 .if ${MACHINE_ARCH} == "i386"
6 SRCS+=  i386-linux.c linux_syscalls.h
7 .endif
8
9 CFLAGS+= -I${.CURDIR} -I.
10 CLEANFILES+=i386l-syscalls.master syscalls.master linux_syscalls.h \
11         syscalls.h ioctl.c
12
13 .SUFFIXES: .master
14
15 i386l-syscalls.master:  ${.CURDIR}/../../sys/i386/linux/syscalls.master
16         cat ${.ALLSRC} > i386l-syscalls.master
17
18 linux_syscalls.h:       i386l-syscalls.master
19         /bin/sh ${.CURDIR}/../../sys/kern/makesyscalls.sh i386l-syscalls.master \
20                 ${.CURDIR}/i386linux.conf
21
22 syscalls.master:        ${.CURDIR}/../../sys/kern/syscalls.master
23         cat ${.ALLSRC} > syscalls.master
24
25 syscalls.h:     syscalls.master
26         /bin/sh ${.CURDIR}/../../sys/kern/makesyscalls.sh syscalls.master \
27                 ${.CURDIR}/i386.conf
28
29 ioctl.c: ${.CURDIR}/../kdump/mkioctls
30         sh ${.CURDIR}/../kdump/mkioctls ${DESTDIR}/usr/include > ${.TARGET}
31
32 .include <bsd.prog.mk>