aboutsummaryrefslogtreecommitdiff
path: root/targets/pseudo/userland/misc/Makefile.depend
diff options
context:
space:
mode:
Diffstat (limited to 'targets/pseudo/userland/misc/Makefile.depend')
-rw-r--r--targets/pseudo/userland/misc/Makefile.depend63
1 files changed, 50 insertions, 13 deletions
diff --git a/targets/pseudo/userland/misc/Makefile.depend b/targets/pseudo/userland/misc/Makefile.depend
index 15065fa8c188..3dc5064618c6 100644
--- a/targets/pseudo/userland/misc/Makefile.depend
+++ b/targets/pseudo/userland/misc/Makefile.depend
@@ -2,47 +2,84 @@
# This file is not autogenerated - take care!
+.if !defined(MK_FORTH)
+.include <src.opts.mk>
+.endif
+
+_sys_boot_efi= sys/boot/efi/loader sys/boot/efi/boot1
+.if ${MK_FDT} != "no"
+_sys_boot_fdt= sys/boot/fdt sys/boot/efi/fdt
+.endif
+.if ${MK_ZFS} != "no"
+_sys_boot_zfs= sys/boot/zfs
+.endif
+
DIRDEPS = \
+ etc \
+ etc/newsyslog.conf.d \
+ etc/sendmail \
rescue/librescue \
rescue/rescue \
- sys/boot/ficl \
- etc/sendmail \
+.if ${MK_BOOT} != "no"
+DIRDEPS+= sys/boot/common
+.if ${MK_FORTH} != "no"
+DIRDEPS+= \
+ sys/boot/ficl \
+ sys/boot/forth \
+
+.endif
DIRDEPS.x86sys= \
- sys/boot/i386/mbr \
- sys/boot/i386/pmbr \
+ sys/boot/efi/libefi \
sys/boot/i386/boot0 \
sys/boot/i386/boot0sio \
+ sys/boot/i386/boot2 \
sys/boot/i386/btx/btx \
sys/boot/i386/btx/btxldr \
sys/boot/i386/btx/lib \
- sys/boot/i386/boot2 \
sys/boot/i386/cdboot \
sys/boot/i386/gptboot \
- sys/boot/i386/libi386 \
sys/boot/i386/libfirewire \
+ sys/boot/i386/libi386 \
sys/boot/i386/loader \
+ sys/boot/i386/mbr \
+ sys/boot/i386/pmbr \
sys/boot/i386/pxeldr \
- sys/boot/i386/zfsboot \
+ sys/boot/libstand32 \
+ ${_sys_boot_zfs} \
+
+.if ${MK_ZFS} != "no"
+DIRDEPS.x86sys+= \
sys/boot/i386/gptzfsboot \
+ sys/boot/i386/zfsboot \
sys/boot/i386/zfsloader \
+.endif
DIRDEPS.amd64= \
${DIRDEPS.x86sys} \
- sys/boot/efi/libefi \
- sys/boot/zfs \
+ ${_sys_boot_efi} \
+ sys/boot/ficl32 \
sys/boot/userboot/ficl \
sys/boot/userboot/libstand \
sys/boot/userboot/test \
sys/boot/userboot/userboot \
-DIRDEPS.arm= sys/boot/fdt sys/boot/uboot
-DIRDEPS.i386= ${DIRDEPS.x86sys} sys/boot/efi/libefi sys/boot/zfs
-DIRDEPS.powerpc= sys/boot/fdt sys/boot/ofw sys/boot/uboot
-DIRDEPS.sparc64= sys/boot/ofw sys/boot/zfs
+.if ${MK_ZFS} != "no"
+DIRDEPS.amd64+= \
+ sys/boot/userboot/zfs \
+
+.endif
+
+DIRDEPS.arm= ${_sys_boot_fdt} ${_sys_boot_efi}
+DIRDEPS.arm64= ${_sys_boot_fdt} ${_sys_boot_efi}
+DIRDEPS.i386= ${DIRDEPS.x86sys} sys/boot/efi/libefi
+DIRDEPS.powerpc= ${_sys_boot_fdt} sys/boot/libstand32 sys/boot/ofw sys/boot/uboot
+DIRDEPS.pc98= sys/boot/libstand32
+DIRDEPS.sparc64= sys/boot/ofw ${_sys_boot_zfs}
+.endif
DIRDEPS+= ${DIRDEPS.${MACHINE}:U}