2020-01-29 13:37:14 +00:00
|
|
|
TARGETS := kernel.bin kernel_ldr.bin
|
|
|
|
CLEAN_TARGETS := $(foreach target,$(TARGETS),$(target:.bin=)-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-29 13:37:14 +00:00
|
|
|
$(TARGETS): check_libmeso
|
|
|
|
$(MAKE) -C $(@:.bin=)
|
|
|
|
@cp $(@:.bin=)/$(@) $(@)
|
|
|
|
|
|
|
|
check_libmeso:
|
|
|
|
@$(MAKE) --no-print-directory -C ../libraries/libmesosphere
|
2020-01-24 02:13:32 +00:00
|
|
|
|
|
|
|
$(CLEAN_TARGETS):
|
|
|
|
$(MAKE) -C $(@:-clean=) clean
|
2020-01-29 13:37:14 +00:00
|
|
|
@rm -f $(@:-clean=).bin
|
2020-01-24 02:13:32 +00:00
|
|
|
|
2020-01-29 13:37:14 +00:00
|
|
|
.PHONY: all clean $(CLEAN_TARGETS)
|