xref: /freebsd/stand/efi/Makefile.inc (revision 4928135658a9d0eaee37003df6137ab363fcb0b4)
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.include "../Makefile.inc"
23