freebsd-dev/usr.bin/truss/Makefile

35 lines
934 B
Makefile
Raw Normal View History

# $FreeBSD$
WARNS?= 6
NO_WERROR=
1997-12-06 05:23:12 +00:00
PROG= truss
2002-08-04 17:57:01 +00:00
SRCS= main.c setup.c syscalls.c syscalls.h ioctl.c ${MACHINE_ARCH}-fbsd.c
2003-02-20 15:09:52 +00:00
.if ${MACHINE_ARCH} == "i386"
2002-08-04 17:57:01 +00:00
SRCS+= i386-linux.c linux_syscalls.h
.endif
CFLAGS+= -I${.CURDIR} -I.
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
cat ${.ALLSRC} > i386l-syscalls.master
1997-12-06 05:23:12 +00:00
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
cat ${.ALLSRC} > syscalls.master
1997-12-06 05:23:12 +00:00
syscalls.h: syscalls.master
/bin/sh ${.CURDIR}/../../sys/kern/makesyscalls.sh syscalls.master \
${.CURDIR}/i386.conf
ioctl.c: ${.CURDIR}/../kdump/mkioctls
sh ${.CURDIR}/../kdump/mkioctls ${DESTDIR}/usr/include > ${.TARGET}
1997-12-06 05:23:12 +00:00
.include <bsd.prog.mk>