dloader: Make sure that -march=i386 is specified
[dragonfly.git] / sys / boot / Makefile
1 # $FreeBSD: src/sys/boot/Makefile,v 1.18 2003/08/16 02:48:20 obrien Exp $
2 # $DragonFly: src/sys/boot/Makefile,v 1.5 2007/05/18 07:41:40 dillon Exp $
3
4 .if ${MACHINE_ARCH} == "x86_64"
5 .MAKEFLAGS:  MACHINE_ARCH=i386 MACHINE_PLATFORM=pc32 REALLY_X86_64=true
6 .endif
7
8 .if ${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "x86_64"
9 CPUTYPE=        i386
10 .makeenv CPUTYPE
11 .endif
12
13 # Build DLoader
14 SUBDIR+=                dloader
15
16 # Build OpenFirmware library
17 .if ${MACHINE_ARCH} == "powerpc" || ${MACHINE_ARCH} == "sparc64"
18 SUBDIR+=                ofw
19 .endif
20
21 # Pick the machine-dependant subdir based on the target architecture.
22 SUBDIR+=                ${MACHINE_PLATFORM}
23
24 # Build EFI executable on ia64
25 .if ${MACHINE_ARCH} == "ia64"
26 SUBDIR+=                efi
27 .endif
28
29 .include <bsd.subdir.mk>