]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - sys/boot/efi/Makefile.inc
Add fortune datfiles that are no longer distributed.
[FreeBSD/FreeBSD.git] / sys / boot / efi / Makefile.inc
1 # $FreeBSD$
2
3 .if ${MACHINE_CPUARCH} == "i386"
4 CFLAGS+=        -march=i386
5 CFLAGS+=        -mno-aes
6 .endif
7
8 # Options used when building app-specific efi components
9 # See conf/kern.mk for the correct set of these
10 CFLAGS+=        -ffreestanding -Wformat ${CFLAGS_NO_SIMD}
11 LDFLAGS+=       -nostdlib
12
13 .if ${MACHINE_CPUARCH} != "aarch64"
14 CFLAGS+=        -msoft-float
15 .endif
16
17 .if ${MACHINE_CPUARCH} == "amd64"
18 CFLAGS+=        -fshort-wchar
19 CFLAGS+=        -mno-red-zone
20 CFLAGS+=        -mno-aes
21 .endif
22
23 .if ${MACHINE_CPUARCH} == "aarch64"
24 CFLAGS+=        -fshort-wchar
25 CFLAGS+=        -fPIC
26 .endif
27
28 .if ${MACHINE_CPUARCH} == "arm"
29 CFLAGS+=        -fPIC
30 .endif
31
32 .include "../Makefile.inc"