]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - usr.bin/truss/Makefile
MFV r301238:
[FreeBSD/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-linux32
22 ABIS+=          freebsd32
23 ABIS+=          cloudabi64
24 .endif
25 .if ${MACHINE_ARCH} == "powerpc64"
26 ABIS+=          freebsd32
27 .endif
28
29 .for abi in ${ABIS}
30 # Find the right file to handle this ABI.
31 abi_src=
32 ABI_SRCS=       ${abi}.c ${MACHINE_ARCH}-${abi}.c ${MACHINE_CPUARCH}-${abi}.c
33 .for f in ${ABI_SRCS}
34 .if exists(${.CURDIR}/${f}) && empty(abi_src)
35 abi_src=        ${f}
36 .endif
37 .endfor
38 SRCS:=          ${SRCS} ${abi_src}
39 .endfor
40
41 .include <bsd.prog.mk>