Makefile revision 332144
1# $FreeBSD: stable/11/stand/Makefile 332144 2018-04-06 19:47:07Z kevans $
2
3.include <src.opts.mk>
4
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"
9LIB32LIST=libsa ficl liblua zfs
10.endif
11
12S.yes+=			libsa
13
14S.${MK_FORTH}+=		ficl
15S.${MK_FORTH}+=		forth
16S.${MK_LOADER_LUA}+=	liblua
17S.${MK_LOADER_LUA}+=	lua
18S.${MK_FDT}+=		fdt
19S.${MK_LOADER_OFW}+=	ofw
20S.${MK_ZFS}+=		zfs
21S.yes+=			defaults
22S.yes+=			man
23
24S.${MK_LOADER_GELI}+=	geli
25
26.include <bsd.arch.inc.mk>
27
28S.${MK_EFI}+=		efi
29S.${MK_LOADER_UBOOT}+=	uboot
30
31.if exists(${.CURDIR}/${MACHINE}/.)
32S.yes+=         ${MACHINE}
33.endif
34
35# Build the actual subdir list from S.yes, adding in the 32-bit
36# variant if necessary.
37.for _x in ${S.yes}
38SUBDIR+=${_x}
39.if defined(LIB32LIST) && ${LIB32LIST:M${_x}}
40SUBDIR+=${_x}32
41.endif
42.endfor
43
44.include <bsd.subdir.mk>
45