1
0
Fork 0
mirror of https://github.com/Atmosphere-NX/Atmosphere.git synced 2024-12-23 18:56:03 +00:00
Atmosphere/mesosphere/Makefile

27 lines
554 B
Makefile
Raw Normal View History

TARGETS := kernel.bin kernel_ldr.bin
CLEAN_TARGETS := $(foreach target,$(TARGETS),$(target:.bin=)-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..."
$(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
@rm -f $(@:-clean=).bin
2020-01-24 02:13:32 +00:00
.PHONY: all clean $(CLEAN_TARGETS)