2001-06-09 16:49:51 +00:00
|
|
|
# $FreeBSD$
|
2001-06-16 05:59:45 +00:00
|
|
|
|
2004-02-12 08:10:34 +00:00
|
|
|
BINDIR?= /boot
|
|
|
|
|
2014-02-07 16:28:40 +00:00
|
|
|
.if ${MACHINE_CPUARCH} == "i386"
|
2012-10-20 16:57:23 +00:00
|
|
|
CFLAGS+= -march=i386
|
2015-08-27 23:46:42 +00:00
|
|
|
CFLAGS+= -mno-aes
|
2012-10-20 16:57:23 +00:00
|
|
|
.endif
|
|
|
|
|
2001-06-09 16:49:51 +00:00
|
|
|
# Options used when building app-specific efi components
|
2015-04-01 08:30:40 +00:00
|
|
|
# See conf/kern.mk for the correct set of these
|
2015-08-27 23:46:42 +00:00
|
|
|
CFLAGS+= -ffreestanding -Wformat -msoft-float ${CFLAGS_NO_SIMD}
|
2004-02-12 08:10:34 +00:00
|
|
|
LDFLAGS+= -nostdlib
|
2008-06-25 21:33:28 +00:00
|
|
|
|
2015-04-03 15:25:59 +00:00
|
|
|
.if ${MACHINE_CPUARCH} == "amd64"
|
|
|
|
CFLAGS+= -fshort-wchar
|
|
|
|
CFLAGS+= -mno-red-zone
|
2015-08-27 23:46:42 +00:00
|
|
|
CFLAGS+= -mno-aes
|
2015-04-03 15:25:59 +00:00
|
|
|
.endif
|
|
|
|
|
2016-06-08 23:23:16 +00:00
|
|
|
.if ${MACHINE_CPUARCH} == "aarch64"
|
|
|
|
CFLAGS+= -fshort-wchar
|
|
|
|
.endif
|
|
|
|
|
2008-06-25 21:33:28 +00:00
|
|
|
.include "../Makefile.inc"
|