1
2# This file is not autogenerated - take care!
3
4.if !defined(MK_FORTH)
5.include <src.opts.mk>
6.endif
7
8DEP_MACHINE?= ${MACHINE}
9
10_sys_boot_efi= stand/efi/loader stand/efi/boot1
11.if ${MK_FDT} != "no"
12_sys_boot_fdt= stand/fdt stand/efi/fdt
13.endif
14.if ${MK_ZFS} != "no"
15_sys_boot_zfs= stand/zfs
16.endif
17
18DIRDEPS = \
19	etc \
20	etc/newsyslog.conf.d \
21	etc/sendmail \
22	rescue/librescue \
23	rescue/rescue \
24
25.if ${MK_BOOT} != "no"
26DIRDEPS+= stand/common
27
28.if ${MK_FORTH} != "no"
29DIRDEPS+= \
30	stand/ficl \
31	stand/forth \
32
33.endif
34
35DIRDEPS.x86sys= \
36	stand/efi/libefi \
37	stand/geli \
38	stand/i386/boot0 \
39	stand/i386/boot0sio \
40	stand/i386/boot2 \
41	stand/i386/btx/btx \
42	stand/i386/btx/btxldr \
43	stand/i386/btx/lib \
44	stand/i386/cdboot \
45	stand/i386/gptboot \
46	stand/i386/libfirewire \
47	stand/i386/libi386 \
48	stand/i386/loader \
49	stand/i386/mbr \
50	stand/i386/pmbr \
51	stand/i386/pxeldr \
52	stand/libsa32 \
53	${_sys_boot_zfs} \
54
55.if ${MK_ZFS} != "no"
56DIRDEPS.x86sys+= \
57	stand/i386/gptzfsboot \
58	stand/i386/zfsboot \
59	stand/i386/zfsloader \
60
61DIRDEPS+= \
62	sbin/zfsbootcfg \
63
64.endif
65
66DIRDEPS.amd64= \
67	${DIRDEPS.x86sys} \
68	${_sys_boot_efi} \
69	stand/ficl32 \
70	stand/userboot/test \
71	stand/userboot/userboot \
72
73.if ${MK_ZFS} != "no"
74DIRDEPS.amd64+= \
75	stand/zfs32 \
76
77.endif
78
79.if ${MK_EFI} != "no"
80DIRDEPS+= \
81	usr.sbin/efivar \
82
83.endif
84
85DIRDEPS.arm= ${_sys_boot_fdt} ${_sys_boot_efi}
86DIRDEPS.arm64= ${_sys_boot_fdt} ${_sys_boot_efi}
87DIRDEPS.i386= ${DIRDEPS.x86sys} ${_sys_boot_efi}
88DIRDEPS.powerpc= ${_sys_boot_fdt} stand/libsa32 stand/ofw stand/uboot
89.endif
90
91DIRDEPS+= ${DIRDEPS.${DEP_MACHINE}:U}
92
93.if ${DEP_MACHINE} == "amd64"
94# do not build stand/i386 for amd64
95DIRDEPS:= ${DIRDEPS:Nstand/i386*} ${DIRDEPS:Mstand/i386*:S/$/.i386,i386/}
96.endif
97
98.include <dirdeps.mk>
99