1# $FreeBSD$
2
3NO_OBJ=t
4
5.include <bsd.init.mk>
6
7# Almost everything else here relies on btxldr, so we must make sure it's built
8# before everything else proceeds so we don't end up building against a stale
9# btxldr and ending up with a build-during-install scenario.
10SUBDIR.yes+=	btx libi386
11SUBDIR.${MK_LOADER_FIREWIRE}+=	libfirewire
12SUBDIR.yes+=	.WAIT
13
14SUBDIR.yes+=	mbr pmbr boot0 boot0sio boot2 cdboot gptboot \
15		isoboot
16
17SUBDIR.${MK_FORTH}+= loader_4th
18SUBDIR.${MK_LOADER_LUA}+= loader_lua
19SUBDIR.yes+=	loader_simp
20
21# special boot programs, 'self-extracting boot2+loader'
22SUBDIR.yes+=	pxeldr
23
24.if ${MACHINE_CPUARCH} == "i386"
25SUBDIR.yes+=	kgzldr
26.endif
27
28SUBDIR.${MK_LOADER_ZFS}+=	zfsboot gptzfsboot
29
30SUBDIR_DEPEND_pxeldr+=	loader_${LOADER_DEFAULT_INTERP}
31
32.include <bsd.subdir.mk>
33