make(1): Use an inline function instead of a macro for Lst_Valid().
[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
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${.CURDIR}/../../sys -I.
10
11 CLEANFILES+=i386l-syscalls.master syscalls.master linux_syscalls.h \
12         syscalls.h ioctl.c
13
14 .SUFFIXES: .master
15
16 i386l-syscalls.master:  ${.CURDIR}/../../sys/emulation/linux/i386/syscalls.master
17         cp ${.ALLSRC} i386l-syscalls.master
18
19 linux_syscalls.h:       i386l-syscalls.master
20         /bin/sh ${.CURDIR}/../../sys/kern/makesyscalls.sh i386l-syscalls.master \
21                 ${.CURDIR}/i386linux.conf
22
23 syscalls.master:        ${.CURDIR}/../../sys/kern/syscalls.master
24         cp ${.ALLSRC} syscalls.master
25
26 syscalls.h:     syscalls.master
27         /bin/sh ${.CURDIR}/../../sys/kern/makesyscalls.sh syscalls.master \
28                 ${.CURDIR}/i386.conf
29
30 ioctl.c!
31         sh ${.CURDIR}/../kdump/mkioctls ${DESTDIR}/usr/include > ${.TARGET}
32
33 .include <bsd.prog.mk>