f6e46fd6e8f2730face46831b3c5266bfe2c507d
[dragonfly.git] / usr.bin / truss / Makefile
1 # $FreeBSD: src/usr.bin/truss/Makefile,v 1.10.2.2 2002/07/23 09:18:30 ru Exp $
2 # $DragonFly: src/usr.bin/truss/Makefile,v 1.3 2003/08/08 04:18:44 dillon Exp $
3
4 PROG=   truss
5 SRCS=   main.c setup.c syscalls.c syscalls.h ioctl.c
6 .if (${MACHINE_ARCH} == "alpha")
7 SRCS+=  alpha-fbsd.c
8 .elif (${MACHINE_ARCH} == "i386")
9 SRCS+=  i386-fbsd.c i386-linux.c linux_syscalls.h
10 .endif
11
12 CFLAGS+= -I${.CURDIR} -I.
13 CLEANFILES+=i386l-syscalls.master syscalls.master linux_syscalls.h \
14         syscalls.h ioctl.c
15
16 .SUFFIXES: .master
17
18 i386l-syscalls.master:  ${.CURDIR}/../../sys/emulation/linux/i386/syscalls.master
19         cp ${.ALLSRC} i386l-syscalls.master
20
21 linux_syscalls.h:       i386l-syscalls.master
22         /bin/sh ${.CURDIR}/../../sys/kern/makesyscalls.sh i386l-syscalls.master \
23                 ${.CURDIR}/i386linux.conf
24
25 syscalls.master:        ${.CURDIR}/../../sys/kern/syscalls.master
26         cp ${.ALLSRC} syscalls.master
27
28 syscalls.h:     syscalls.master
29         /bin/sh ${.CURDIR}/../../sys/kern/makesyscalls.sh syscalls.master \
30                 ${.CURDIR}/i386.conf
31
32 ioctl.c: ${.CURDIR}/../kdump/mkioctls
33         sh ${.CURDIR}/../kdump/mkioctls ${DESTDIR}/usr/include > ${.TARGET}
34
35 .include <bsd.prog.mk>