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