-boot ::
- $(line)
- @echo "Booting Utils"
- $(line)
- @$(MAKE) -C utils boot depend
-
- $(line)
- @echo "Booting Driver"
- $(line)
- @$(MAKE) -C driver boot depend
-
- $(line)
- @echo "Booting Includes"
- $(line)
- @$(MAKE) -C includes boot depend
+#
+# Order is important! It's e.g. necessary to descend into include/
+# before the rest to have a config.h, etc.
+#
+# If we're booting from .hc files, swap the order
+# we descend into subdirs - to boot utils must be before driver.
+#
+ifeq "$(BootingFromHc)" "YES"
+SUBDIRS = includes rts docs compiler lib utils driver
+else
+ifneq "$(ILXized)" "YES"
+SUBDIRS = includes lib utils driver docs compiler rts
+else
+# No RTS for ILX
+SUBDIRS = includes lib utils driver docs compiler
+endif
+endif