1999-11-14 13:54:44 +00:00
|
|
|
# $FreeBSD$
|
|
|
|
|
2004-10-24 15:33:08 +00:00
|
|
|
NO_WERROR=
|
1997-12-06 05:23:12 +00:00
|
|
|
PROG= truss
|
2010-08-28 15:04:53 +00:00
|
|
|
SRCS= main.c setup.c syscalls.c syscalls.h ioctl.c
|
|
|
|
|
|
|
|
.if exists(${.CURDIR}/${MACHINE_ARCH}-fbsd.c)
|
|
|
|
SRCS+= ${MACHINE_ARCH}-fbsd.c
|
|
|
|
.else
|
|
|
|
SRCS+= ${MACHINE_CPUARCH}-fbsd.c
|
|
|
|
.endif
|
1998-10-03 00:43:05 +00:00
|
|
|
|
1998-01-09 09:31:42 +00:00
|
|
|
CFLAGS+= -I${.CURDIR} -I.
|
2008-05-16 15:34:06 +00:00
|
|
|
CLEANFILES= syscalls.master syscalls.h ioctl.c
|
1997-12-06 05:23:12 +00:00
|
|
|
|
|
|
|
.SUFFIXES: .master
|
|
|
|
|
|
|
|
syscalls.master: ${.CURDIR}/../../sys/kern/syscalls.master
|
2003-06-06 05:38:09 +00:00
|
|
|
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
|
|
|
|
|
2002-04-11 14:49:32 +00:00
|
|
|
ioctl.c: ${.CURDIR}/../kdump/mkioctls
|
2012-04-09 15:34:22 +00:00
|
|
|
env MACHINE=${MACHINE} CPP="${CPP}" \
|
2015-06-11 14:25:53 +00:00
|
|
|
/bin/sh ${.CURDIR}/../kdump/mkioctls return ${DESTDIR}${INCLUDEDIR} > ${.TARGET}
|
1997-12-06 06:51:14 +00:00
|
|
|
|
2010-08-23 22:24:11 +00:00
|
|
|
.if ${MACHINE_CPUARCH} == "i386"
|
2008-05-16 15:34:06 +00:00
|
|
|
SRCS+= i386-linux.c linux_syscalls.h
|
|
|
|
CLEANFILES+=i386l-syscalls.master linux_syscalls.h
|
|
|
|
|
|
|
|
i386l-syscalls.master: ${.CURDIR}/../../sys/i386/linux/syscalls.master
|
|
|
|
cat ${.ALLSRC} > ${.TARGET}
|
|
|
|
|
|
|
|
linux_syscalls.h: i386l-syscalls.master
|
|
|
|
/bin/sh ${.CURDIR}/../../sys/kern/makesyscalls.sh ${.ALLSRC} \
|
|
|
|
${.CURDIR}/i386linux.conf
|
|
|
|
.endif
|
|
|
|
|
2010-08-23 22:24:11 +00:00
|
|
|
.if ${MACHINE_CPUARCH} == "amd64"
|
2008-05-16 15:34:06 +00:00
|
|
|
SRCS+= amd64-linux32.c linux32_syscalls.h
|
|
|
|
CLEANFILES+=amd64l32-syscalls.master linux32_syscalls.h
|
|
|
|
|
|
|
|
amd64l32-syscalls.master: ${.CURDIR}/../../sys/amd64/linux32/syscalls.master
|
|
|
|
cat ${.ALLSRC} > ${.TARGET}
|
|
|
|
|
|
|
|
linux32_syscalls.h: amd64l32-syscalls.master
|
|
|
|
/bin/sh ${.CURDIR}/../../sys/kern/makesyscalls.sh ${.ALLSRC} \
|
|
|
|
${.CURDIR}/amd64linux32.conf
|
|
|
|
|
|
|
|
SRCS+= amd64-fbsd32.c freebsd32_syscalls.h
|
|
|
|
CLEANFILES+=fbsd32-syscalls.master freebsd32_syscalls.h
|
|
|
|
|
|
|
|
fbsd32-syscalls.master: ${.CURDIR}/../../sys/compat/freebsd32/syscalls.master
|
|
|
|
cat ${.ALLSRC} > ${.TARGET}
|
|
|
|
|
|
|
|
freebsd32_syscalls.h: fbsd32-syscalls.master
|
|
|
|
/bin/sh ${.CURDIR}/../../sys/kern/makesyscalls.sh ${.ALLSRC} \
|
|
|
|
${.CURDIR}/fbsd32.conf
|
2015-10-02 11:17:15 +00:00
|
|
|
|
|
|
|
SRCS+= amd64-cloudabi64.c cloudabi64_syscalls.h
|
|
|
|
CLEANFILES+=amd64cloudabi64-syscalls.master cloudabi64_syscalls.h
|
|
|
|
|
|
|
|
amd64cloudabi64-syscalls.master: ${.CURDIR}/../../sys/compat/cloudabi64/syscalls.master
|
|
|
|
cat ${.ALLSRC} > ${.TARGET}
|
|
|
|
|
|
|
|
cloudabi64_syscalls.h: amd64cloudabi64-syscalls.master
|
|
|
|
/bin/sh ${.CURDIR}/../../sys/kern/makesyscalls.sh ${.ALLSRC} \
|
|
|
|
${.CURDIR}/amd64cloudabi64.conf
|
2008-05-16 15:34:06 +00:00
|
|
|
.endif
|
|
|
|
|
2010-08-28 15:04:53 +00:00
|
|
|
.if ${MACHINE_ARCH} == "powerpc64"
|
|
|
|
SRCS+= powerpc-fbsd.c freebsd32_syscalls.h
|
|
|
|
CLEANFILES+=fbsd32-syscalls.master freebsd32_syscalls.h
|
|
|
|
|
|
|
|
fbsd32-syscalls.master: ${.CURDIR}/../../sys/compat/freebsd32/syscalls.master
|
|
|
|
cat ${.ALLSRC} > ${.TARGET}
|
|
|
|
|
|
|
|
freebsd32_syscalls.h: fbsd32-syscalls.master
|
|
|
|
/bin/sh ${.CURDIR}/../../sys/kern/makesyscalls.sh ${.ALLSRC} \
|
|
|
|
${.CURDIR}/fbsd32.conf
|
|
|
|
.endif
|
|
|
|
|
1997-12-06 05:23:12 +00:00
|
|
|
.include <bsd.prog.mk>
|