Makefile revision 186073
1# $FreeBSD: head/sys/boot/Makefile 186073 2008-12-14 02:57:41Z nyan $
2
3.include <bsd.own.mk>
4
5.if ${MACHINE_ARCH} == "mips"
6MK_FORTH=no	# not yet
7.endif
8
9.if ${MK_FORTH} != "no"
10# Build the add-in FORTH interpreter.
11SUBDIR+=		ficl
12.endif
13
14# Build EFI library.
15.if ${MACHINE_ARCH} == "amd64" || ${MACHINE} == "i386" || ${MACHINE_ARCH} == "ia64"
16SUBDIR+=		efi
17.endif
18
19# Build Open Firmware library.
20.if ${MACHINE_ARCH} == "powerpc" || ${MACHINE_ARCH} == "sparc64"
21SUBDIR+=		ofw
22.endif
23
24# Build U-Boot library.
25.if ${MACHINE_ARCH} == "powerpc" || ${MACHINE_ARCH} == "arm"
26SUBDIR+=		uboot
27.endif
28
29.if defined(LOADER_ZFS_SUPPORT)
30SUBDIR+=		zfs
31.endif
32
33# Pick the machine-dependent subdir based on the target architecture.
34ADIR=			${MACHINE:S/amd64/i386/:S/sun4v/sparc64/}
35.if exists(${.CURDIR}/${ADIR}/.)
36SUBDIR+=		${ADIR}
37.endif
38
39.include <bsd.subdir.mk>
40