xref: /dragonfly/stand/boot/efi/Makefile.inc (revision 479ab7f0492f2a51b48e8537e4f1dc686fc6014b)
1# $FreeBSD: head/sys/boot/efi/Makefile.inc 287227 2015-08-27 23:46:42Z imp $
2
3BINDIR?=  /boot
4
5# Options used when building app-specific efi components
6# See conf/kern.mk for the correct set of these
7CFLAGS+=  -O
8CFLAGS+=  -D_STANDALONE
9CFLAGS+=  -ffreestanding -Wformat
10CFLAGS+=  -mno-mmx -mno-3dnow -mno-sse -mno-sse2 -mno-sse3 -msoft-float
11LDFLAGS+= -nostdlib
12
13.if ${MACHINE_ARCH} == "x86_64"
14CFLAGS+=  -fshort-wchar
15CFLAGS+=  -mno-red-zone
16CFLAGS+=  -mno-aes
17.endif
18
19# post binutils-2.27 ld.gold workaround for linker script handling
20EFI_GOLD_OBJCOPY_FLAGS=       -j .got -j .got.plt -j .bss
21