]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - usr.bin/truss/Makefile
Remove spurious newline
[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${SRCTOP}/sys
10 CFLAGS+= -I${SRCTOP}/sys
11
12 ABIS+=          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"
16 ABIS+=          cloudabi32
17 ABIS+=          cloudabi64
18 .endif
19 .if ${MACHINE_CPUARCH} == "i386"
20 ABIS+=          i386-linux
21 ABIS+=          cloudabi32
22 .endif
23 .if ${MACHINE_CPUARCH} == "amd64"
24 ABIS+=          amd64-linux
25 ABIS+=          amd64-linux32
26 ABIS+=          freebsd32
27 ABIS+=          cloudabi32
28 ABIS+=          cloudabi64
29 .endif
30 .if ${MACHINE_ARCH} == "powerpc64"
31 ABIS+=          freebsd32
32 .endif
33
34 .for abi in ${ABIS}
35 # Find the right file to handle this ABI.
36 abi_src=
37 ABI_SRCS=       ${abi}.c ${MACHINE_ARCH}-${abi}.c ${MACHINE_CPUARCH}-${abi}.c
38 .for f in ${ABI_SRCS}
39 .if exists(${.CURDIR}/${f}) && empty(abi_src)
40 abi_src=        ${f}
41 .endif
42 .endfor
43 SRCS:=          ${SRCS} ${abi_src}
44 .endfor
45
46 .include <bsd.prog.mk>