Merge branch 'vendor/OPENBSD_LIBM'
[dragonfly.git] / sys / boot / efi / Makefile.inc
1 # $FreeBSD: head/sys/boot/efi/Makefile.inc 287227 2015-08-27 23:46:42Z imp $
2
3 BINDIR?=        /boot
4
5 # Options used when building app-specific efi components
6 # See conf/kern.mk for the correct set of these
7 CFLAGS+=        -O
8 CFLAGS+=        -D_STANDALONE
9 CFLAGS+=        -ffreestanding -Wformat
10 CFLAGS+=        -mno-mmx -mno-3dnow -mno-sse -mno-sse2 -mno-sse3 -msoft-float
11 LDFLAGS+=       -nostdlib
12
13 .if ${MACHINE_ARCH} == "x86_64"
14 CFLAGS+=        -fshort-wchar
15 CFLAGS+=        -mno-red-zone
16 CFLAGS+=        -mno-aes
17 .endif