Merge from vendor branch NCURSES:
[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.6 2004/07/21 16:13:43 drhodus 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${.CURDIR}/../../sys -I.
13
14 CLEANFILES+=i386l-syscalls.master syscalls.master linux_syscalls.h \
15         syscalls.h ioctl.c
16
17 .SUFFIXES: .master
18
19 i386l-syscalls.master:  ${.CURDIR}/../../sys/emulation/linux/i386/syscalls.master
20         cp ${.ALLSRC} i386l-syscalls.master
21
22 linux_syscalls.h:       i386l-syscalls.master
23         /bin/sh ${.CURDIR}/../../sys/kern/makesyscalls.sh i386l-syscalls.master \
24                 ${.CURDIR}/i386linux.conf
25
26 syscalls.master:        ${.CURDIR}/../../sys/kern/syscalls.master
27         cp ${.ALLSRC} syscalls.master
28
29 syscalls.h:     syscalls.master
30         /bin/sh ${.CURDIR}/../../sys/kern/makesyscalls.sh syscalls.master \
31                 ${.CURDIR}/i386.conf
32
33 ioctl.c: ${.CURDIR}/../kdump/mkioctls
34         sh ${.CURDIR}/../kdump/mkioctls ${DESTDIR}/usr/include > ${.TARGET}
35
36 .include <bsd.prog.mk>