Rename Makefile.in to Makefile.sub
[dragonfly.git] / sys / boot / i386 / Makefile.inc
CommitLineData
984263bc
MD
1# Common defines for all of /sys/boot/i386/
2#
5ee58eed
MD
3# $FreeBSD: src/sys/boot/i386/Makefile.inc,v 1.4 2003/06/26 03:51:57 peter Exp $
4# $DragonFly: src/sys/boot/i386/Attic/Makefile.inc,v 1.3 2003/11/10 06:08:34 dillon Exp $
984263bc
MD
5
6LOADER_ADDRESS?= 0x200000
5ee58eed
MD
7CFLAGS+= -ffreestanding -mpreferred-stack-boundary=2
8
9.if ${MACHINE_ARCH} == "amd64"
10.MAKEFLAGS: MACHINE_ARCH=i386 MACHINE=i386 REALLY_AMD64=true
11.endif
12
13.if defined(REALLY_AMD64) && !defined(__been_to_Makefile_inc)
14__been_to_Makefile_inc= 1
15CFLAGS+= -m32
16LDFLAGS+= -m elf_i386_fbsd
17AFLAGS+= --32
18.endif