mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-27 11:55:06 +00:00
5d2d083c92
yet another need of an available /proc/ mount. Tested with: make universe Submitted by: howardsu Reviewed by: alfred
35 lines
934 B
Makefile
35 lines
934 B
Makefile
# $FreeBSD$
|
|
|
|
WARNS?= 6
|
|
NO_WERROR=
|
|
PROG= truss
|
|
SRCS= main.c setup.c syscalls.c syscalls.h ioctl.c ${MACHINE_ARCH}-fbsd.c
|
|
.if ${MACHINE_ARCH} == "i386"
|
|
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
|
|
|
|
.SUFFIXES: .master
|
|
|
|
i386l-syscalls.master: ${.CURDIR}/../../sys/i386/linux/syscalls.master
|
|
cat ${.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
|
|
cat ${.ALLSRC} > syscalls.master
|
|
|
|
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}
|
|
|
|
.include <bsd.prog.mk>
|