Makefile revision 183878
153152Smarcel# $FreeBSD: head/sys/boot/Makefile 183878 2008-10-14 10:11:14Z raj $
253152Smarcel
3156813Sru.include <bsd.own.mk>
4156813Sru
5183149Sobrien.if ${MACHINE_ARCH} == "mips"
6183149SobrienMK_FORTH=no	# not yet
7183149Sobrien.endif
8183149Sobrien
9156813Sru.if ${MK_FORTH} != "no"
10125117Sschweikh# Build the add-in FORTH interpreter.
1140843SmsmithSUBDIR+=		ficl
12110783Sbenno.endif
1338465Smsmith
14138001Smarcel# Build EFI library.
15164010Smarcel.if ${MACHINE_ARCH} == "amd64" || ${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "ia64"
16138001SmarcelSUBDIR+=		efi
17138001Smarcel.endif
18138001Smarcel
19133862Smarius# Build Open Firmware library.
2093307Sobrien.if ${MACHINE_ARCH} == "powerpc" || ${MACHINE_ARCH} == "sparc64"
2168546SbennoSUBDIR+=		ofw
2268546Sbenno.endif
2368546Sbenno
24176371Smarcel# Build U-Boot library.
25183878Sraj.if ${MACHINE_ARCH} == "powerpc" || ${MACHINE_ARCH} == "arm"
26176371SmarcelSUBDIR+=		uboot
27176371Smarcel.endif
28176371Smarcel
29125117Sschweikh# Pick the machine-dependent subdir based on the target architecture.
30180733SimpADIR=			${MACHINE:S/amd64/i386/:S/sun4v/sparc64/}
31180733Simp.if exists(${.CURDIR}/${ADIR}/.)
32180733SimpSUBDIR+=		${ADIR}
33180733Simp.endif
3440843Smsmith
3538465Smsmith.include <bsd.subdir.mk>
36