7 SRCS= delay.c devpath.c efi_console.c efinet.c efipart.c env.c errno.c \
10 .if ${MACHINE_CPUARCH} == "amd64" || ${MACHINE_CPUARCH} == "i386"
12 .elif ${MACHINE_CPUARCH} == "aarch64" || ${MACHINE_CPUARCH} == "arm"
16 # We implement a slightly non-standard %S in that it always takes a
17 # CHAR16 that's common in UEFI-land instead of a wchar_t. This only
18 # seems to matter on arm64 where wchar_t defaults to an int instead
19 # of a short. There's no good cast to use here so just ignore the
21 CWARNFLAGS.efinet.c+= -Wno-format
23 .if ${MACHINE_CPUARCH} == "aarch64"
24 CFLAGS+= -msoft-float -mgeneral-regs-only
26 .if ${MACHINE_ARCH} == "amd64"
27 CFLAGS+= -fPIC -mno-red-zone
29 CFLAGS+= -I${.CURDIR}/../include
30 CFLAGS+= -I${.CURDIR}/../include/${MACHINE}
31 CFLAGS+= -I${.CURDIR}/../../../../lib/libstand
33 # Pick up the bootstrap header for some interface items
34 CFLAGS+= -I${.CURDIR}/../../common
36 # Handle FreeBSD specific %b and %D printf format specifiers
37 CFLAGS+= ${FORMAT_EXTENSIONS}