1
0
Fork 0
mirror of https://github.com/Atmosphere-NX/Atmosphere.git synced 2024-11-23 12:22:08 +00:00
Atmosphere/mesosphere/Makefile
2020-01-29 05:37:14 -08:00

26 lines
554 B
Makefile

TARGETS := kernel.bin kernel_ldr.bin
CLEAN_TARGETS := $(foreach target,$(TARGETS),$(target:.bin=)-clean)
SUBFOLDERS := $(MODULES)
all: mesosphere.bin
clean: $(CLEAN_TARGETS)
@rm -f mesosphere.bin
mesosphere.bin: $(TARGETS)
@python build_mesosphere.py
@echo "Built mesosphere.bin..."
$(TARGETS): check_libmeso
$(MAKE) -C $(@:.bin=)
@cp $(@:.bin=)/$(@) $(@)
check_libmeso:
@$(MAKE) --no-print-directory -C ../libraries/libmesosphere
$(CLEAN_TARGETS):
$(MAKE) -C $(@:-clean=) clean
@rm -f $(@:-clean=).bin
.PHONY: all clean $(CLEAN_TARGETS)