Makefile revision 180733
153152Smarcel# $FreeBSD: head/sys/boot/Makefile 180733 2008-07-23 07:23:33Z imp $
253152Smarcel
3156813Sru.include <bsd.own.mk>
4156813Sru
5156813Sru.if ${MK_FORTH} != "no"
6125117Sschweikh# Build the add-in FORTH interpreter.
740843SmsmithSUBDIR+=		ficl
8110783Sbenno.endif
938465Smsmith
10138001Smarcel# Build EFI library.
11164010Smarcel.if ${MACHINE_ARCH} == "amd64" || ${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "ia64"
12138001SmarcelSUBDIR+=		efi
13138001Smarcel.endif
14138001Smarcel
15133862Smarius# Build Open Firmware library.
1693307Sobrien.if ${MACHINE_ARCH} == "powerpc" || ${MACHINE_ARCH} == "sparc64"
1768546SbennoSUBDIR+=		ofw
1868546Sbenno.endif
1968546Sbenno
20176371Smarcel# Build U-Boot library.
21176371Smarcel.if ${MACHINE_ARCH} == "powerpc"
22176371SmarcelSUBDIR+=		uboot
23176371Smarcel.endif
24176371Smarcel
25125117Sschweikh# Pick the machine-dependent subdir based on the target architecture.
26180733SimpADIR=			${MACHINE:S/amd64/i386/:S/sun4v/sparc64/}
27180733Simp.if exists(${.CURDIR}/${ADIR}/.)
28180733SimpSUBDIR+=		${ADIR}
29180733Simp.endif
3040843Smsmith
3138465Smsmith.include <bsd.subdir.mk>
32