153152Smarcel# $FreeBSD: stable/11/stand/Makefile 344377 2019-02-20 19:13:09Z kevans $ 253152Smarcel 3265420Simp.include <src.opts.mk> 4156813Sru 5332144Skevans# For amd64 we have to build 32 and 64 bit versions of things. For 6332144Skevans# others we don't. LIB32LIST is a list of libraries, which if 7332144Skevans# included, need to be built 32-bit as well. 8332144Skevans.if ${MACHINE_ARCH} == "amd64" 9344377SkevansLIB32LIST=libsa ficl liblua 10110783Sbenno.endif 1138465Smsmith 12332144SkevansS.yes+= libsa 13284590Sbapt 14332144SkevansS.${MK_FORTH}+= ficl 15332144SkevansS.${MK_FORTH}+= forth 16344220SkevansS.${MK_LOADER_LUA}+= liblua 17344220SkevansS.${MK_LOADER_LUA}+= lua 18332144SkevansS.${MK_FDT}+= fdt 19332144SkevansS.${MK_LOADER_OFW}+= ofw 20332144SkevansS.yes+= defaults 21332144SkevansS.yes+= man 22332144Skevans 23280808Sandrew.include <bsd.arch.inc.mk> 24280808Sandrew 25332144SkevansS.${MK_EFI}+= efi 26332144SkevansS.${MK_LOADER_UBOOT}+= uboot 27332144Skevans 28329140Skevans.if exists(${.CURDIR}/${MACHINE}/.) 29332144SkevansS.yes+= ${MACHINE} 30180733Simp.endif 3140843Smsmith 32332144Skevans# Build the actual subdir list from S.yes, adding in the 32-bit 33332144Skevans# variant if necessary. 34332144Skevans.for _x in ${S.yes} 35332144SkevansSUBDIR+=${_x} 36332144Skevans.if defined(LIB32LIST) && ${LIB32LIST:M${_x}} 37332144SkevansSUBDIR+=${_x}32 38332144Skevans.endif 39332144Skevans.endfor 40332144Skevans 4138465Smsmith.include <bsd.subdir.mk> 42