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"
10 .if ${MK_FORTH} != "no"
13 .if ${MK_LOADER_LUA} != "no"
20 S.${MK_LOADER_OFW}+= libofw
25 S.${MK_LOADER_LUA}+= liblua
26 S.${MK_LOADER_LUA}+= lua
30 .if ${MK_FORTH} != "no"
31 INTERP_DEPENDS+= forth
33 .if ${MK_LOADER_LUA} != "no"
37 .include <bsd.arch.inc.mk>
40 S.${MK_LOADER_UBOOT}+= uboot
42 .if defined(LIB32LIST)
43 LIB32DEPENDS= ${LIB32LIST:S/$/32/}
46 .if exists(${.CURDIR}/${MACHINE}/.)
48 SUBDIR_DEPEND_${MACHINE}+= ${INTERP_DEPENDS}
50 SUBDIR_DEPEND_${MACHINE}+= fdt
52 .if ${MK_LOADER_UBOOT} != "no"
53 SUBDIR_DEPEND_${MACHINE}+= uboot
55 .if ${MK_LOADER_OFW} != "no"
56 SUBDIR_DEPEND_${MACHINE}+= libofw
60 # Build the actual subdir list from S.yes, adding in the 32-bit
61 # variant if necessary.
64 .if defined(LIB32LIST) && ${LIB32LIST:M${_x}}
68 SUBDIR_DEPEND_${_x}+= libsa
69 SUBDIR_DEPEND_${_x}32+= libsa32
73 # Remaining dependencies
74 SUBDIR_DEPEND_forth+= ficl
75 SUBDIR_DEPEND_lua+= liblua
77 SUBDIR_DEPEND_efi+= ${INTERP_DEPENDS}
79 SUBDIR_DEPEND_efi+= fdt
84 .include <bsd.subdir.mk>