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