Atmosphere/mesosphere/Makefile

22 lines
401 B
Makefile
Raw Normal View History

2020-01-24 02:13:32 +00:00
TARGETS := kernel kernel_ldr
CLEAN_TARGETS := $(foreach target,$(TARGETS),$(target)-clean)
SUBFOLDERS := $(MODULES)
2020-01-24 02:13:32 +00:00
all: mesosphere.bin
2020-01-24 02:13:32 +00:00
clean: $(CLEAN_TARGETS)
@rm -f mesosphere.bin
2020-01-24 02:13:32 +00:00
mesosphere.bin: $(TARGETS)
@python build_mesosphere.py
@echo "Built mesosphere.bin..."
2020-01-24 02:13:32 +00:00
$(TARGETS):
$(MAKE) -C $@
$(CLEAN_TARGETS):
$(MAKE) -C $(@:-clean=) clean
.PHONY: all clean $(TARGETS) $(CLEAN_TARGETS)