1999-11-14 13:54:44 +00:00
|
|
|
# $FreeBSD$
|
|
|
|
|
1997-12-06 05:23:12 +00:00
|
|
|
PROG= truss
|
1998-10-03 00:43:05 +00:00
|
|
|
SRCS= main.c setup.c syscalls.c syscalls.h ioctl.c
|
1999-11-14 13:54:44 +00:00
|
|
|
.if (${MACHINE_ARCH} == "alpha")
|
1998-10-03 00:43:05 +00:00
|
|
|
SRCS+= alpha-fbsd.c
|
1998-10-07 13:46:09 +00:00
|
|
|
.elif (${MACHINE_ARCH} == "i386")
|
1998-10-03 00:43:05 +00:00
|
|
|
SRCS+= i386-fbsd.c i386-linux.c linux_syscalls.h
|
|
|
|
.endif
|
|
|
|
|
1998-01-09 09:31:42 +00:00
|
|
|
CFLAGS+= -I${.CURDIR} -I.
|
1997-12-06 06:51:14 +00:00
|
|
|
CLEANFILES+=i386l-syscalls.master syscalls.master linux_syscalls.h \
|
|
|
|
syscalls.h ioctl.c
|
1997-12-06 05:23:12 +00:00
|
|
|
|
|
|
|
.SUFFIXES: .master
|
|
|
|
|
|
|
|
i386l-syscalls.master: ${.CURDIR}/../../sys/i386/linux/syscalls.master
|
|
|
|
cp ${.ALLSRC} i386l-syscalls.master
|
|
|
|
|
|
|
|
linux_syscalls.h: i386l-syscalls.master
|
|
|
|
/bin/sh ${.CURDIR}/../../sys/kern/makesyscalls.sh i386l-syscalls.master \
|
|
|
|
${.CURDIR}/i386linux.conf
|
|
|
|
|
|
|
|
syscalls.master: ${.CURDIR}/../../sys/kern/syscalls.master
|
|
|
|
cp ${.ALLSRC} syscalls.master
|
|
|
|
|
|
|
|
syscalls.h: syscalls.master
|
|
|
|
/bin/sh ${.CURDIR}/../../sys/kern/makesyscalls.sh syscalls.master \
|
|
|
|
${.CURDIR}/i386.conf
|
|
|
|
|
2000-08-01 10:21:13 +00:00
|
|
|
ioctl.c: .PHONY
|
1999-12-03 17:35:34 +00:00
|
|
|
sh ${.CURDIR}/../../usr.bin/kdump/mkioctls ${DESTDIR}/usr/include > ioctl.c
|
1997-12-06 06:51:14 +00:00
|
|
|
|
1997-12-06 05:23:12 +00:00
|
|
|
.include <bsd.prog.mk>
|