hammer2 - Add hammer2 boot support
[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 .if ${REALLY_X86_64} == "true"
18 SUBDIR+=                pc32
19 .else
20 SUBDIR+=                ${MACHINE_PLATFORM}
21 .endif
22
23 # Build EFI executable on ia64
24 .if ${MACHINE_ARCH} == "ia64"
25 SUBDIR+=                efi
26 .endif
27
28 .include <bsd.subdir.mk>