1# Common defines for all of /sys/boot/i386/ 2#
| 1# Common defines for all of /sys/boot/i386/ 2#
|
3# $FreeBSD: head/sys/boot/i386/Makefile.inc 125537 2004-02-06 21:58:32Z ru $
| 3# $FreeBSD: head/sys/boot/i386/Makefile.inc 125556 2004-02-07 08:10:07Z ru $
|
4 5BINDIR?= /boot 6 7LOADER_ADDRESS?=0x200000 8CFLAGS+= -ffreestanding -mpreferred-stack-boundary=2 9 10.if ${MACHINE_ARCH} == "amd64"
| 4 5BINDIR?= /boot 6 7LOADER_ADDRESS?=0x200000 8CFLAGS+= -ffreestanding -mpreferred-stack-boundary=2 9 10.if ${MACHINE_ARCH} == "amd64"
|
11.MAKEFLAGS: MACHINE_ARCH=i386 MACHINE=i386 REALLY_AMD64=true 12.endif 13 14.if defined(REALLY_AMD64)
| |
15CFLAGS+= -m32 16LDFLAGS+= -m elf_i386_fbsd 17AFLAGS+= --32 18.endif 19 20# BTX components 21.if exists(${.OBJDIR}/../btx) 22BTXDIR= ${.OBJDIR}/../btx 23.else 24BTXDIR= ${.CURDIR}/../btx 25.endif 26BTXLDR= ${BTXDIR}/btxldr/btxldr 27BTXKERN= ${BTXDIR}/btx/btx 28BTXCRT= ${BTXDIR}/lib/crt0.o
| 11CFLAGS+= -m32 12LDFLAGS+= -m elf_i386_fbsd 13AFLAGS+= --32 14.endif 15 16# BTX components 17.if exists(${.OBJDIR}/../btx) 18BTXDIR= ${.OBJDIR}/../btx 19.else 20BTXDIR= ${.CURDIR}/../btx 21.endif 22BTXLDR= ${BTXDIR}/btxldr/btxldr 23BTXKERN= ${BTXDIR}/btx/btx 24BTXCRT= ${BTXDIR}/lib/crt0.o
|