Makefile revision 183149
1# $FreeBSD: head/sys/boot/Makefile 183149 2008-09-18 15:25:35Z obrien $
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_ARCH} == "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"
26SUBDIR+=		uboot
27.endif
28
29# Pick the machine-dependent subdir based on the target architecture.
30ADIR=			${MACHINE:S/amd64/i386/:S/sun4v/sparc64/}
31.if exists(${.CURDIR}/${ADIR}/.)
32SUBDIR+=		${ADIR}
33.endif
34
35.include <bsd.subdir.mk>
36