]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - stand/Makefile
loader: typo did slip into 359408
[FreeBSD/FreeBSD.git] / stand / Makefile
1 # $FreeBSD$
2
3 .include <src.opts.mk>
4
5 # For amd64 we have to build 32 and 64 bit versions of things. For
6 # others we don't. LIB32LIST is a list of libraries, which if
7 # included, need to be built 32-bit as well.
8 .if ${MACHINE_ARCH} == "amd64"
9 LIB32LIST=libsa
10 .if ${MK_FORTH} != "no"
11 LIB32LIST+=             ficl
12 .endif
13 .if ${MK_LOADER_LUA} != "no"
14 LIB32LIST+=             liblua
15 .endif
16 .endif
17
18 S.yes+=                 libsa
19
20 S.${MK_LOADER_OFW}+=    libofw
21 S.${MK_FDT}+=           fdt
22
23 S.${MK_FORTH}+=         ficl
24 S.${MK_FORTH}+=         forth
25 S.${MK_LOADER_LUA}+=    liblua
26 S.${MK_LOADER_LUA}+=    lua
27 S.yes+=                 defaults
28 S.yes+=                 man
29
30 .if ${MK_FORTH} != "no"
31 INTERP_DEPENDS+=        forth
32 .endif
33 .if ${MK_LOADER_LUA} != "no"
34 INTERP_DEPENDS+=        lua
35 .endif
36
37 .include <bsd.arch.inc.mk>
38
39 S.${MK_EFI}+=           efi
40 S.${MK_LOADER_UBOOT}+=  uboot
41
42 .if defined(LIB32LIST)
43 LIB32DEPENDS=   ${LIB32LIST:S/$/32/}
44 .endif
45
46 .if exists(${.CURDIR}/${MACHINE}/.)
47 S.yes+=         ${MACHINE}
48 SUBDIR_DEPEND_${MACHINE}+=      ${INTERP_DEPENDS}
49 .if ${MK_FDT} != "no"
50 SUBDIR_DEPEND_${MACHINE}+=      fdt
51 .endif
52 .if ${MK_LOADER_UBOOT} != "no"
53 SUBDIR_DEPEND_${MACHINE}+=      uboot
54 .endif
55 .if ${MK_LOADER_OFW} != "no"
56 SUBDIR_DEPEND_${MACHINE}+=      libofw
57 .endif
58 .endif
59
60 # Build the actual subdir list from S.yes, adding in the 32-bit
61 # variant if necessary.
62 .for _x in ${S.yes}
63 SUBDIR+=${_x}
64 .if defined(LIB32LIST) && ${LIB32LIST:M${_x}}
65 SUBDIR+=${_x}32
66 .endif
67 .if ${_x} != "libsa"
68 SUBDIR_DEPEND_${_x}+=   libsa
69 SUBDIR_DEPEND_${_x}32+= libsa32
70 .endif
71 .endfor
72
73 # Remaining dependencies
74 SUBDIR_DEPEND_forth+=   ficl
75 SUBDIR_DEPEND_lua+=     liblua
76
77 SUBDIR_DEPEND_efi+=     ${INTERP_DEPENDS}
78 .if ${MK_FDT} != "no"
79 SUBDIR_DEPEND_efi+=     fdt
80 .endif
81
82 SUBDIR_PARALLEL=        yes
83
84 .include <bsd.subdir.mk>