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