2000-03-28 01:19:53 +00:00
|
|
|
# Common defines for all of /sys/boot/i386/
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
|
2004-02-06 12:58:32 +00:00
|
|
|
BINDIR?= /boot
|
|
|
|
|
2004-02-06 21:58:32 +00:00
|
|
|
LOADER_ADDRESS?=0x200000
|
2012-10-20 16:57:23 +00:00
|
|
|
CFLAGS+= -march=i386 -ffreestanding -mpreferred-stack-boundary=2 \
|
2011-01-05 22:24:33 +00:00
|
|
|
-mno-mmx -mno-3dnow -mno-sse -mno-sse2 -mno-sse3 -msoft-float
|
2004-02-09 14:11:58 +00:00
|
|
|
LDFLAGS+= -nostdlib
|
2003-06-26 03:51:57 +00:00
|
|
|
|
2010-08-23 01:42:09 +00:00
|
|
|
.if ${MACHINE_CPUARCH} == "amd64"
|
2012-10-20 16:57:23 +00:00
|
|
|
CFLAGS+= -m32
|
2011-07-17 13:50:21 +00:00
|
|
|
ACFLAGS+= -m32
|
2004-02-06 21:58:32 +00:00
|
|
|
LDFLAGS+= -m elf_i386_fbsd
|
|
|
|
AFLAGS+= --32
|
2003-06-26 03:51:57 +00:00
|
|
|
.endif
|
2004-02-06 21:58:32 +00:00
|
|
|
|
|
|
|
# BTX components
|
|
|
|
.if exists(${.OBJDIR}/../btx)
|
|
|
|
BTXDIR= ${.OBJDIR}/../btx
|
|
|
|
.else
|
|
|
|
BTXDIR= ${.CURDIR}/../btx
|
|
|
|
.endif
|
|
|
|
BTXLDR= ${BTXDIR}/btxldr/btxldr
|
|
|
|
BTXKERN= ${BTXDIR}/btx/btx
|
|
|
|
BTXCRT= ${BTXDIR}/lib/crt0.o
|
2008-06-25 21:33:28 +00:00
|
|
|
|
|
|
|
.include "../Makefile.inc"
|