]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - usr.bin/truss/Makefile
Fix byhve out-of-bounds read in XHCI device.
[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+=          cloudabi64
17 .endif
18 .if ${MACHINE_CPUARCH} == "i386"
19 ABIS+=          i386-linux
20 .endif
21 .if ${MACHINE_CPUARCH} == "amd64"
22 ABIS+=          amd64-linux
23 ABIS+=          amd64-linux32
24 ABIS+=          freebsd32
25 ABIS+=          cloudabi64
26 .endif
27 .if ${MACHINE_ARCH} == "powerpc64"
28 ABIS+=          freebsd32
29 .endif
30
31 .for abi in ${ABIS}
32 # Find the right file to handle this ABI.
33 abi_src=
34 ABI_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)
37 abi_src=        ${f}
38 .endif
39 .endfor
40 SRCS:=          ${SRCS} ${abi_src}
41 .endfor
42
43 .include <bsd.prog.mk>