amd64 bootstrap and loader (sys/boot), but only enable them to be built in
[dragonfly/port-amd64.git] / sys / boot / pc32 / Makefile.inc
blob4a615cccb5c6070c59132a5c94122f53aa89b8bc
1 # Common defines for all of /sys/boot/i386/
3 # $FreeBSD: src/sys/boot/i386/Makefile.inc,v 1.4 2003/06/26 03:51:57 peter Exp $
4 # $DragonFly: src/sys/boot/pc32/Makefile.inc,v 1.7 2005/04/20 20:27:04 joerg Exp $
6 LOADER_ADDRESS?=        0x200000
7 CFLAGS+=                -ffreestanding -mpreferred-stack-boundary=2
9 .if ${MACHINE_ARCH} == "amd64"
10 .MAKEFLAGS:  MACHINE_ARCH=i386 MACHINE=i386 REALLY_AMD64=true
11 .endif
13 .if defined(REALLY_AMD64) && !defined(__been_to_Makefile_inc)
14 __been_to_Makefile_inc= 1
15 CFLAGS+=                -m32 -march=i386
16 LDFLAGS+=               -m elf_i386
17 AFLAGS+=                --32
18 .endif