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
32 .if ${MK_FORTH} != "no"
33 INTERP_DEPENDS+= forth
35 .if ${MK_LOADER_LUA} != "no"
39 .include <bsd.arch.inc.mk>
42 S.${MK_LOADER_UBOOT}+= uboot
44 .if defined(LIB32LIST)
45 LIB32DEPENDS= ${LIB32LIST:S/$/32/}
48 .if exists(${.CURDIR}/${MACHINE}/.)
50 SUBDIR_DEPEND_${MACHINE}+= ${INTERP_DEPENDS}
52 SUBDIR_DEPEND_${MACHINE}+= fdt
54 .if ${MK_LOADER_UBOOT} != "no"
55 SUBDIR_DEPEND_${MACHINE}+= uboot
57 .if ${MK_LOADER_OFW} != "no"
58 SUBDIR_DEPEND_${MACHINE}+= libofw
62 # Build the actual subdir list from S.yes, adding in the 32-bit
63 # variant if necessary.
66 .if defined(LIB32LIST) && ${LIB32LIST:M${_x}}
70 SUBDIR_DEPEND_${_x}+= libsa
71 SUBDIR_DEPEND_${_x}32+= libsa32
75 # Remaining dependencies
76 SUBDIR_DEPEND_forth+= ficl
77 SUBDIR_DEPEND_lua+= liblua
79 SUBDIR_DEPEND_efi+= ${INTERP_DEPENDS}
81 SUBDIR_DEPEND_efi+= fdt
86 .include <bsd.subdir.mk>