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