2001-06-09 16:49:51 +00:00
|
|
|
# $FreeBSD$
|
2001-06-16 05:59:45 +00:00
|
|
|
|
2001-06-09 16:49:51 +00:00
|
|
|
# Options used when building app-specific efi components
|
2015-04-01 08:30:40 +00:00
|
|
|
# See conf/kern.mk for the correct set of these
|
2017-11-20 22:42:21 +00:00
|
|
|
CFLAGS+= -Wformat
|
2004-02-12 08:10:34 +00:00
|
|
|
LDFLAGS+= -nostdlib
|
2008-06-25 21:33:28 +00:00
|
|
|
|
2015-04-03 15:25:59 +00:00
|
|
|
.if ${MACHINE_CPUARCH} == "amd64"
|
|
|
|
CFLAGS+= -fshort-wchar
|
|
|
|
CFLAGS+= -mno-red-zone
|
|
|
|
.endif
|
|
|
|
|
2016-06-08 23:23:16 +00:00
|
|
|
.if ${MACHINE_CPUARCH} == "aarch64"
|
|
|
|
CFLAGS+= -fshort-wchar
|
2016-10-31 11:13:36 +00:00
|
|
|
CFLAGS+= -fPIC
|
2016-06-08 23:23:16 +00:00
|
|
|
.endif
|
|
|
|
|
2017-01-10 20:15:24 +00:00
|
|
|
.if ${MACHINE_CPUARCH} == "arm"
|
|
|
|
CFLAGS+= -fPIC
|
|
|
|
.endif
|
|
|
|
|
2018-07-20 05:18:03 +00:00
|
|
|
.if ${MACHINE_CPUARCH} == "amd64"
|
|
|
|
EFI_TARGET= efi-app-x86_64
|
|
|
|
.elif ${MACHINE_CPUARCH} == "i386"
|
|
|
|
EFI_TARGET= efi-app-ia32
|
|
|
|
.else
|
|
|
|
EFI_TARGET= binary
|
|
|
|
.endif
|
|
|
|
|
|
|
|
# Arbitrarily set the PE/COFF header timestamps to 1 Jan 2016 00:00:00
|
|
|
|
# for build reproducibility.
|
|
|
|
SOURCE_DATE_EPOCH?=1451606400
|
|
|
|
|
2008-06-25 21:33:28 +00:00
|
|
|
.include "../Makefile.inc"
|