1# Common defines for all of /stand/boot/i386/ 2 3.if !target(__pc32__) && !defined(__no_pc32_defines) 4__pc32__: 5 6LOADER_ADDRESS?= 0x200000 7WORLD_CCOPTLEVEL= 1 # Force -O1, -O2 implodes 8CFLAGS+= -D_STANDALONE 9CFLAGS+= -ffreestanding -fno-omit-frame-pointer 10CFLAGS+= -mno-mmx -mno-3dnow -mno-sse -mno-sse2 -mno-sse3 -msoft-float 11 12# override CPU type, so that gcc doesn't insert mmx/sse instructions 13FORCE_CPUTYPE= i386 14 15WARNS?= 2 16 17# if a gcc compiler is being used, identify GCC-only flags, 18# otherwise check for clang and set value of BOOT_CCASM_FLAGS if found 19.if ${CCVER:Mgcc*} 20CFLAGS+= -mpreferred-stack-boundary=2 21BOOT2_GCC_FLAGS= -fno-guess-branch-probability \ 22 -fno-unit-at-a-time 23.elif ${CCVER:Mclang*} 24BOOT_CCASM_FLAGS+= -no-integrated-as 25.endif 26 27.if defined(REALLY_X86_64) 28.include "../pc64/Makefile.inc" 29.endif 30.endif 31