5 SRCS= main.c setup.c syscalls.c
9 #CFLAGS+= -I${.CURDIR} -I. -I${SRCTOP}/sys
10 CFLAGS+= -I${SRCTOP}/sys
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"
19 .if ${MACHINE_CPUARCH} == "i386"
23 .if ${MACHINE_CPUARCH} == "amd64"
30 .if ${MACHINE_ARCH} == "powerpc64"
35 # Find the right file to handle this ABI.
37 ABI_SRCS= ${abi}.c ${MACHINE_ARCH}-${abi}.c ${MACHINE_CPUARCH}-${abi}.c
39 .if exists(${.CURDIR}/${f}) && empty(abi_src)
43 SRCS:= ${SRCS} ${abi_src}
46 .include <bsd.prog.mk>