Makefile.inc revision 260291
1# Common defines for all of /sys/boot/i386/
2#
3# $FreeBSD: stable/10/sys/boot/i386/Makefile.inc 260291 2014-01-04 22:00:07Z dim $
4
5BINDIR?=	/boot
6
7LOADER_ADDRESS?=0x200000
8CFLAGS+=	-march=i386 -ffreestanding
9CFLAGS.gcc+=	-mpreferred-stack-boundary=2
10CFLAGS+=	-mno-mmx -mno-3dnow -mno-sse -mno-sse2 -mno-sse3 -msoft-float
11LDFLAGS+=	-nostdlib
12
13.if ${MACHINE_CPUARCH} == "amd64"
14CFLAGS+=	-m32
15ACFLAGS+=	-m32
16# LD_FLAGS is passed directly to ${LD}, not via ${CC}:
17LD_FLAGS+=	-m elf_i386_fbsd
18AFLAGS+=	--32
19.endif
20
21# BTX components
22.if exists(${.OBJDIR}/../btx)
23BTXDIR=		${.OBJDIR}/../btx
24.else
25BTXDIR=		${.CURDIR}/../btx
26.endif
27BTXLDR=		${BTXDIR}/btxldr/btxldr
28BTXKERN=	${BTXDIR}/btx/btx
29BTXCRT=		${BTXDIR}/lib/crt0.o
30
31.include "../Makefile.inc"
32