5 .if ${MK_FORTH} != "no"
7 .include "${.CURDIR}/../../Makefile.ficl"
14 SRCS= delay.c devpath.c efi_console.c efinet.c efipart.c env.c errno.c \
15 handles.c wchar.c libefi.c
17 .if ${MACHINE_CPUARCH} == "amd64" || ${MACHINE_CPUARCH} == "i386"
19 .elif ${MACHINE_CPUARCH} == "aarch64" || ${MACHINE_CPUARCH} == "arm"
23 # We implement a slightly non-standard %S in that it always takes a
24 # CHAR16 that's common in UEFI-land instead of a wchar_t. This only
25 # seems to matter on arm64 where wchar_t defaults to an int instead
26 # of a short. There's no good cast to use here so just ignore the
28 CWARNFLAGS.efinet.c+= -Wno-format
29 CWARNFLAGS.efipart.c+= -Wno-format
30 CWARNFLAGS.env.c+= -Wno-format
32 .if ${MACHINE_CPUARCH} == "aarch64"
33 CFLAGS+= -mgeneral-regs-only
35 .if ${MACHINE_ARCH} == "amd64"
36 CFLAGS+= -fPIC -mno-red-zone
38 CFLAGS+= -I${.CURDIR}/../include
39 CFLAGS+= -I${.CURDIR}/../include/${MACHINE}
40 CFLAGS+= -I${.CURDIR}/../../../../lib/libstand
42 # Pick up the bootstrap header for some interface items
43 CFLAGS+= -I${.CURDIR}/../../common
45 # Handle FreeBSD specific %b and %D printf format specifiers
46 CFLAGS+= ${FORMAT_EXTENSIONS}
48 # Do not use TERM_EMU on arm and arm64 as it doesn't behave well with serial console
49 .if ${MACHINE_CPUARCH} != "arm" && ${MACHINE_CPUARCH} != "aarch64"