1# Common defines for all of /sys/boot/i386/ 2#
| 1# Common defines for all of /sys/boot/i386/ 2#
|
3# $FreeBSD: stable/9/sys/boot/i386/Makefile.inc 224131 2011-07-17 13:50:21Z dim $
| 3# $FreeBSD: stable/9/sys/boot/i386/Makefile.inc 243219 2012-11-18 12:28:29Z avg $
|
4 5BINDIR?= /boot 6 7LOADER_ADDRESS?=0x200000
| 4 5BINDIR?= /boot 6 7LOADER_ADDRESS?=0x200000
|
8CFLAGS+= -ffreestanding -mpreferred-stack-boundary=2 \
| 8CFLAGS+= -march=i386 -ffreestanding -mpreferred-stack-boundary=2 \
|
9 -mno-mmx -mno-3dnow -mno-sse -mno-sse2 -mno-sse3 -msoft-float 10LDFLAGS+= -nostdlib 11 12.if ${MACHINE_CPUARCH} == "amd64"
| 9 -mno-mmx -mno-3dnow -mno-sse -mno-sse2 -mno-sse3 -msoft-float 10LDFLAGS+= -nostdlib 11 12.if ${MACHINE_CPUARCH} == "amd64"
|
13CFLAGS+= -m32 -march=i386
| 13CFLAGS+= -m32
|
14ACFLAGS+= -m32 15LDFLAGS+= -m elf_i386_fbsd 16AFLAGS+= --32 17.endif 18 19# BTX components 20.if exists(${.OBJDIR}/../btx) 21BTXDIR= ${.OBJDIR}/../btx 22.else 23BTXDIR= ${.CURDIR}/../btx 24.endif 25BTXLDR= ${BTXDIR}/btxldr/btxldr 26BTXKERN= ${BTXDIR}/btx/btx 27BTXCRT= ${BTXDIR}/lib/crt0.o 28 29.include "../Makefile.inc"
| 14ACFLAGS+= -m32 15LDFLAGS+= -m elf_i386_fbsd 16AFLAGS+= --32 17.endif 18 19# BTX components 20.if exists(${.OBJDIR}/../btx) 21BTXDIR= ${.OBJDIR}/../btx 22.else 23BTXDIR= ${.CURDIR}/../btx 24.endif 25BTXLDR= ${BTXDIR}/btxldr/btxldr 26BTXKERN= ${BTXDIR}/btx/btx 27BTXCRT= ${BTXDIR}/lib/crt0.o 28 29.include "../Makefile.inc"
|