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