1999-11-14 08:54:44 -05:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
2004-10-24 11:33:08 -04:00
|
|
|
NO_WERROR=
|
1997-12-06 00:23:12 -05:00
|
|
|
PROG= truss
|
2016-02-23 15:00:55 -05:00
|
|
|
SRCS= main.c setup.c syscalls.c
|
1998-10-02 20:43:05 -04:00
|
|
|
|
2015-12-14 19:05:07 -05:00
|
|
|
LIBADD= sysdecode
|
2015-10-06 17:58:38 -04:00
|
|
|
|
2015-10-08 01:27:45 -04:00
|
|
|
CFLAGS+= -I${.CURDIR} -I. -I${.CURDIR}/../../sys
|
1997-12-06 01:51:14 -05:00
|
|
|
|
2015-10-13 14:23:51 -04:00
|
|
|
ABIS+= freebsd
|
|
|
|
|
# Each ABI is expected to have an ABI.c, MACHINE_ARCH-ABI.c or
|
|
|
|
|
# MACHINE_CPUARCH-ABI.c file that will be used to map the syscall arguments.
|
2015-10-30 04:11:37 -04:00
|
|
|
.if ${MACHINE_ARCH} == "aarch64"
|
|
|
|
|
ABIS+= cloudabi64
|
|
|
|
|
.endif
|
2015-10-13 14:23:51 -04:00
|
|
|
.if ${MACHINE_CPUARCH} == "i386"
|
|
|
|
|
ABIS+= i386-linux
|
2008-05-16 11:34:06 -04:00
|
|
|
.endif
|
2010-08-23 18:24:11 -04:00
|
|
|
.if ${MACHINE_CPUARCH} == "amd64"
|
2016-06-08 22:21:07 -04:00
|
|
|
ABIS+= amd64-linux
|
2015-10-13 14:23:51 -04:00
|
|
|
ABIS+= amd64-linux32
|
|
|
|
|
ABIS+= freebsd32
|
|
|
|
|
ABIS+= cloudabi64
|
2008-05-16 11:34:06 -04:00
|
|
|
.endif
|
2010-08-28 11:04:53 -04:00
|
|
|
.if ${MACHINE_ARCH} == "powerpc64"
|
2015-10-13 14:23:51 -04:00
|
|
|
ABIS+= freebsd32
|
|
|
|
|
.endif
|
2010-08-28 11:04:53 -04:00
|
|
|
|
2015-10-13 14:23:51 -04:00
|
|
|
.for abi in ${ABIS}
|
|
|
|
|
# Find the right file to handle this ABI.
|
|
|
|
|
abi_src=
|
|
|
|
|
ABI_SRCS= ${abi}.c ${MACHINE_ARCH}-${abi}.c ${MACHINE_CPUARCH}-${abi}.c
|
|
|
|
|
.for f in ${ABI_SRCS}
|
|
|
|
|
.if exists(${.CURDIR}/${f}) && empty(abi_src)
|
|
|
|
|
abi_src= ${f}
|
2010-08-28 11:04:53 -04:00
|
|
|
.endif
|
2015-10-13 14:23:51 -04:00
|
|
|
.endfor
|
2016-01-26 14:07:09 -05:00
|
|
|
SRCS:= ${SRCS} ${abi_src}
|
2015-10-13 14:23:51 -04:00
|
|
|
.endfor
|
2010-08-28 11:04:53 -04:00
|
|
|
|
1997-12-06 00:23:12 -05:00
|
|
|
.include <bsd.prog.mk>
|