1# $FreeBSD$ 2 3#NO_WERROR= 4PROG= truss 5SRCS= main.c setup.c syscalls.c 6 7LIBADD= sysdecode 8 9#CFLAGS+= -I${.CURDIR} -I. -I${.CURDIR}/../../sys 10CFLAGS+= -I${.CURDIR}/../../sys 11 12ABIS+= freebsd 13# Each ABI is expected to have an ABI.c, MACHINE_ARCH-ABI.c or 14# MACHINE_CPUARCH-ABI.c file that will be used to map the syscall arguments. 15.if ${MACHINE_ARCH} == "aarch64" 16ABIS+= cloudabi64 17.endif 18.if ${MACHINE_CPUARCH} == "i386" 19ABIS+= i386-linux 20.endif 21.if ${MACHINE_CPUARCH} == "amd64" 22ABIS+= amd64-linux 23ABIS+= amd64-linux32 24ABIS+= freebsd32 25ABIS+= cloudabi64 26.endif 27.if ${MACHINE_ARCH} == "powerpc64" 28ABIS+= freebsd32 29.endif 30 31.for abi in ${ABIS} 32# Find the right file to handle this ABI. 33abi_src= 34ABI_SRCS= ${abi}.c ${MACHINE_ARCH}-${abi}.c ${MACHINE_CPUARCH}-${abi}.c 35.for f in ${ABI_SRCS} 36.if exists(${.CURDIR}/${f}) && empty(abi_src) 37abi_src= ${f} 38.endif 39.endfor 40SRCS:= ${SRCS} ${abi_src} 41.endfor 42 43.include <bsd.prog.mk> 44