]> CyberLeo.Net >> Repos - FreeBSD/releng/9.2.git/blob - sys/boot/i386/Makefile.inc
- Copy stable/9 to releng/9.2 as part of the 9.2-RELEASE cycle.
[FreeBSD/releng/9.2.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 -mpreferred-stack-boundary=2 \
9                 -mno-mmx -mno-3dnow -mno-sse -mno-sse2 -mno-sse3 -msoft-float
10 LDFLAGS+=       -nostdlib
11
12 .if ${MACHINE_CPUARCH} == "amd64"
13 CFLAGS+=        -m32
14 ACFLAGS+=       -m32
15 LDFLAGS+=       -m elf_i386_fbsd
16 AFLAGS+=        --32
17 .endif
18
19 # BTX components
20 .if exists(${.OBJDIR}/../btx)
21 BTXDIR=         ${.OBJDIR}/../btx
22 .else
23 BTXDIR=         ${.CURDIR}/../btx
24 .endif
25 BTXLDR=         ${BTXDIR}/btxldr/btxldr
26 BTXKERN=        ${BTXDIR}/btx/btx
27 BTXCRT=         ${BTXDIR}/lib/crt0.o
28
29 .include "../Makefile.inc"