1 # Common defines for all of /sys/boot/i386/
7 LOADER_ADDRESS?=0x200000
8 CFLAGS+= -march=i386 -ffreestanding
9 CFLAGS.gcc+= -mpreferred-stack-boundary=2
10 CFLAGS+= -mno-mmx -mno-3dnow -mno-sse -mno-sse2 -mno-sse3 -msoft-float
13 .if ${MACHINE_CPUARCH} == "amd64"
16 # LD_FLAGS is passed directly to ${LD}, not via ${CC}:
17 LD_FLAGS+= -m elf_i386_fbsd
22 .if exists(${.OBJDIR}/../btx)
23 BTXDIR= ${.OBJDIR}/../btx
25 BTXDIR= ${.CURDIR}/../btx
27 BTXLDR= ${BTXDIR}/btxldr/btxldr
28 BTXKERN= ${BTXDIR}/btx/btx
29 BTXCRT= ${BTXDIR}/lib/crt0.o
31 .include "../Makefile.inc"