Changeset View
Changeset View
Standalone View
Standalone View
head/sys/boot/efi/libefi/Makefile
# $FreeBSD$ | # $FreeBSD$ | ||||
.include <src.opts.mk> | .include <src.opts.mk> | ||||
.if ${MK_FORTH} != "no" | .if ${MK_FORTH} != "no" | ||||
CFLAGS+= -DBOOT_FORTH | |||||
.include "${.CURDIR}/../../Makefile.ficl" | .include "${.CURDIR}/../../Makefile.ficl" | ||||
.endif | .endif | ||||
LIB= efi | LIB= efi | ||||
INTERNALLIB= | INTERNALLIB= | ||||
WARNS?= 2 | WARNS?= 2 | ||||
SRCS= delay.c devpath.c efi_console.c efinet.c efipart.c errno.c \ | SRCS= delay.c devpath.c efi_console.c efinet.c efipart.c env.c errno.c \ | ||||
handles.c libefi.c | handles.c wchar.c libefi.c | ||||
.if ${MACHINE_CPUARCH} == "amd64" || ${MACHINE_CPUARCH} == "i386" | .if ${MACHINE_CPUARCH} == "amd64" || ${MACHINE_CPUARCH} == "i386" | ||||
SRCS+= time.c | SRCS+= time.c | ||||
.elif ${MACHINE_CPUARCH} == "aarch64" || ${MACHINE_CPUARCH} == "arm" | .elif ${MACHINE_CPUARCH} == "aarch64" || ${MACHINE_CPUARCH} == "arm" | ||||
SRCS+= time_event.c | SRCS+= time_event.c | ||||
.endif | |||||
.if ${MK_FORTH} != "no" | |||||
SRCS+= env.c | |||||
.endif | .endif | ||||
# We implement a slightly non-standard %S in that it always takes a | # We implement a slightly non-standard %S in that it always takes a | ||||
# CHAR16 that's common in UEFI-land instead of a wchar_t. This only | # CHAR16 that's common in UEFI-land instead of a wchar_t. This only | ||||
# seems to matter on arm64 where wchar_t defaults to an int instead | # seems to matter on arm64 where wchar_t defaults to an int instead | ||||
# of a short. There's no good cast to use here so just ignore the | # of a short. There's no good cast to use here so just ignore the | ||||
# warnings for now. | # warnings for now. | ||||
CWARNFLAGS.efinet.c+= -Wno-format | CWARNFLAGS.efinet.c+= -Wno-format | ||||
Show All 23 Lines |