xref: /freebsd/stand/efi/Makefile.inc (revision 5ca8e32633c4ffbbcd6762e5888b6a4ba0708c6c)
1
2# Options used when building app-specific efi components
3# See conf/kern.mk for the correct set of these
4CFLAGS+=	-Wformat
5LDFLAGS+=	-nostdlib
6
7.if ${MACHINE_CPUARCH} == "amd64"
8CFLAGS+=	-fshort-wchar
9CFLAGS+=	-mno-red-zone
10.endif
11
12.if ${MACHINE_CPUARCH} == "aarch64"
13CFLAGS+=	-fshort-wchar
14CFLAGS+=	-fPIC
15.endif
16
17.if ${MACHINE_CPUARCH} == "arm"
18CFLAGS+=	-fPIC
19.endif
20
21.if ${MACHINE_CPUARCH} == "amd64"
22EFI_TARGET=	efi-app-x86_64
23.else
24EFI_TARGET=	binary
25.endif
26
27# Arbitrarily set the PE/COFF header timestamps to 1 Jan 2016 00:00:00
28# for build reproducibility.
29SOURCE_DATE_EPOCH?=1451606400
30
31.include "../Makefile.inc"
32