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
|
2005-03-15 18:43:36 +00:00
|
|
|
CFLAGS+= -ffreestanding -mpreferred-stack-boundary=2 \
|
|
|
|
-mno-mmx -mno-3dnow -mno-sse -mno-sse2
|
2004-02-09 14:11:58 +00:00
|
|
|
LDFLAGS+= -nostdlib
|
2003-06-26 03:51:57 +00:00
|
|
|
|
|
|
|
.if ${MACHINE_ARCH} == "amd64"
|
2004-02-06 21:58:32 +00:00
|
|
|
CFLAGS+= -m32
|
|
|
|
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
|