1# $FreeBSD$ 2 3.if ${MACHINE_CPUARCH} == "i386" 4CFLAGS+= -march=i386 5CFLAGS+= -mno-aes 6.endif 7 8# Options used when building app-specific efi components 9# See conf/kern.mk for the correct set of these 10CFLAGS+= -ffreestanding -Wformat ${CFLAGS_NO_SIMD} 11LDFLAGS+= -nostdlib 12 13.if ${MACHINE_CPUARCH} != "aarch64" 14CFLAGS+= -msoft-float 15.endif 16 17.if ${MACHINE_CPUARCH} == "amd64" 18CFLAGS+= -fshort-wchar 19CFLAGS+= -mno-red-zone 20CFLAGS+= -mno-aes 21.endif 22 23.if ${MACHINE_CPUARCH} == "aarch64" 24CFLAGS+= -fshort-wchar 25CFLAGS+= -fPIC 26.endif 27 28.if ${MACHINE_CPUARCH} == "arm" 29CFLAGS+= -fPIC 30.endif 31 32.include "../Makefile.inc" 33