Merge branch 'vendor/GDTOA'
[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 # Build DLoader
9 SUBDIR+=                dloader
10
11 # Build OpenFirmware library
12 .if ${MACHINE_ARCH} == "powerpc" || ${MACHINE_ARCH} == "sparc64"
13 SUBDIR+=                ofw
14 .endif
15
16 # Pick the machine-dependant subdir based on the target architecture.
17 SUBDIR+=                ${MACHINE_PLATFORM}
18
19 # Build EFI executable on ia64
20 .if ${MACHINE_ARCH} == "ia64"
21 SUBDIR+=                efi
22 .endif
23
24 .include <bsd.subdir.mk>