truss - Add functions for x86_64 architecture.
[dragonfly.git] / usr.bin / truss / Makefile
CommitLineData
984263bc 1# $FreeBSD: src/usr.bin/truss/Makefile,v 1.10.2.2 2002/07/23 09:18:30 ru Exp $
c03f08f3 2# $DragonFly: src/usr.bin/truss/Makefile,v 1.8 2007/08/27 16:51:00 pavalos Exp $
984263bc
MD
3
4PROG= truss
e952f80f 5SRCS= main.c setup.c syscalls.c syscalls.h ioctl.c ${MACHINE_ARCH}-fbsd.c
ccc9802b 6.if (${MACHINE_ARCH} == "i386")
e952f80f 7SRCS+= i386-linux.c linux_syscalls.h
984263bc
MD
8.endif
9
4806ab2e 10CFLAGS+= -I${.CURDIR} -I${.CURDIR}/../../sys -I.
b85e9c72 11
984263bc
MD
12CLEANFILES+=i386l-syscalls.master syscalls.master linux_syscalls.h \
13 syscalls.h ioctl.c
14
15.SUFFIXES: .master
16
38a690d7 17i386l-syscalls.master: ${.CURDIR}/../../sys/emulation/linux/i386/syscalls.master
984263bc
MD
18 cp ${.ALLSRC} i386l-syscalls.master
19
20linux_syscalls.h: i386l-syscalls.master
21 /bin/sh ${.CURDIR}/../../sys/kern/makesyscalls.sh i386l-syscalls.master \
22 ${.CURDIR}/i386linux.conf
23
24syscalls.master: ${.CURDIR}/../../sys/kern/syscalls.master
25 cp ${.ALLSRC} syscalls.master
26
27syscalls.h: syscalls.master
28 /bin/sh ${.CURDIR}/../../sys/kern/makesyscalls.sh syscalls.master \
29 ${.CURDIR}/i386.conf
30
31ioctl.c: ${.CURDIR}/../kdump/mkioctls
32 sh ${.CURDIR}/../kdump/mkioctls ${DESTDIR}/usr/include > ${.TARGET}
33
34.include <bsd.prog.mk>