]> CyberLeo.Net >> Repos - FreeBSD/stable/9.git/blob - sys/boot/i386/Makefile.inc
MFC r257532 (by adrian):
[FreeBSD/stable/9.git] / sys / boot / i386 / Makefile.inc
1 # Common defines for all of /sys/boot/i386/
2 #
3 # $FreeBSD$
4
5 BINDIR?=        /boot
6
7 LOADER_ADDRESS?=0x200000
8 CFLAGS+=        -march=i386 -ffreestanding
9 CFLAGS.gcc+=    -mpreferred-stack-boundary=2
10 CFLAGS+=        -mno-mmx -mno-3dnow -mno-sse -mno-sse2 -mno-sse3 -msoft-float
11 LDFLAGS+=       -nostdlib
12
13 .if ${MACHINE_CPUARCH} == "amd64"
14 CFLAGS+=        -m32
15 ACFLAGS+=       -m32
16 LDFLAGS+=       -m elf_i386_fbsd
17 AFLAGS+=        --32
18 .endif
19
20 # BTX components
21 .if exists(${.OBJDIR}/../btx)
22 BTXDIR=         ${.OBJDIR}/../btx
23 .else
24 BTXDIR=         ${.CURDIR}/../btx
25 .endif
26 BTXLDR=         ${BTXDIR}/btxldr/btxldr
27 BTXKERN=        ${BTXDIR}/btx/btx
28 BTXCRT=         ${BTXDIR}/lib/crt0.o
29
30 .include "../Makefile.inc"