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