xref: /freebsd/stand/efi/Makefile.inc (revision eb69d1f144a6fcc765d1b9d44a5ae8082353e70b)
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