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