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