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 125517 2004-02-06 12:58:32Z ru $
| 3# $FreeBSD: head/sys/boot/i386/Makefile.inc 125537 2004-02-06 21:58:32Z ru $
|
4 5BINDIR?= /boot 6
| 4 5BINDIR?= /boot 6
|
7LOADER_ADDRESS?= 0x200000 8CFLAGS+= -ffreestanding -mpreferred-stack-boundary=2
| 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)
| 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
| 15CFLAGS+= -m32 16LDFLAGS+= -m elf_i386_fbsd 17AFLAGS+= --32
|
18.endif
| 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
|
| |