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