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