summaryrefslogtreecommitdiffstats
path: root/sys/boot/i386/Makefile.inc
blob: f390a08c46c736f25b7cf3d9b799f24bdb2ebc2d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# Common defines for all of /sys/boot/i386/
#
# $FreeBSD$

LOADER_ADDRESS?=	0x200000
CFLAGS+=		-ffreestanding -mpreferred-stack-boundary=2

.if ${MACHINE_ARCH} == "amd64"
.MAKEFLAGS:  MACHINE_ARCH=i386 MACHINE=i386 REALLY_AMD64=true
.endif

.if defined(REALLY_AMD64)
CFLAGS+=		-m32
LDFLAGS+=		-m elf_i386_fbsd
AFLAGS+=		--32
.endif
OpenPOWER on IntegriCloud