1 # Common defines for all of /sys/boot/i386/
7 LOADER_ADDRESS?=0x200000
8 CFLAGS+= -ffreestanding -mpreferred-stack-boundary=2 \
9 -mno-mmx -mno-3dnow -mno-sse -mno-sse2 -mno-sse3
12 .if ${MACHINE_ARCH} == "amd64"
13 CFLAGS+= -m32 -march=i386
14 LDFLAGS+= -m elf_i386_fbsd
19 .if exists(${.OBJDIR}/../btx)
20 BTXDIR= ${.OBJDIR}/../btx
22 BTXDIR= ${.CURDIR}/../btx
24 BTXLDR= ${BTXDIR}/btxldr/btxldr
25 BTXKERN= ${BTXDIR}/btx/btx
26 BTXCRT= ${BTXDIR}/lib/crt0.o
28 .include "../Makefile.inc"