Makefile revision 209920
1254858Sdumbbell# $FreeBSD: head/sys/boot/Makefile 209920 2010-07-12 00:49:22Z nwhitehorn $
2254858Sdumbbell
3254858Sdumbbell.include <bsd.own.mk>
4254858Sdumbbell
5254858Sdumbbell.if ${MK_FORTH} != "no"
6254858Sdumbbell# Build the add-in FORTH interpreter.
7254858SdumbbellSUBDIR+=		ficl
8254858Sdumbbell.endif
9280183Sdumbbell
10280183Sdumbbell# Build EFI library.
11280183Sdumbbell.if ${MACHINE_ARCH} == "amd64" || ${MACHINE} == "i386" || ${MACHINE_ARCH} == "ia64"
12259016SraySUBDIR+=		efi
13296548Sdumbbell.endif
14259016Sray
15254858Sdumbbell# Build Open Firmware library.
16254858Sdumbbell.if ${MACHINE_ARCH} == "powerpc" || ${MACHINE_ARCH} == "powerpc64" || ${MACHINE_ARCH} == "sparc64"
17254858SdumbbellSUBDIR+=		ofw
18254858Sdumbbell.endif
19254858Sdumbbell
20254858Sdumbbell# Build U-Boot library.
21280183Sdumbbell.if ${MACHINE_ARCH} == "powerpc" || ${MACHINE_ARCH} == "powerpc64" || ${MACHINE_ARCH} == "arm"
22280183SdumbbellSUBDIR+=		uboot
23280183Sdumbbell.endif
24280183Sdumbbell
25280183Sdumbbell.if ${MACHINE_ARCH} == "amd64" || ${MACHINE} == "i386"
26280183SdumbbellSUBDIR+=		zfs
27280183Sdumbbell.endif
28296548Sdumbbell
29280183Sdumbbell.if ${MK_FDT} != "no"
30280183SdumbbellSUBDIR+=		fdt
31296548Sdumbbell.endif
32280183Sdumbbell
33296548Sdumbbell# Pick the machine-dependent subdir based on the target architecture.
34296548SdumbbellADIR=			${MACHINE:S/amd64/i386/:S/sun4v/sparc64/:S/powerpc64/powerpc/}
35296548Sdumbbell.if exists(${.CURDIR}/${ADIR}/.)
36296548SdumbbellSUBDIR+=		${ADIR}
37296548Sdumbbell.endif
38296548Sdumbbell
39296548Sdumbbell.include <bsd.subdir.mk>
40296548Sdumbbell