Luma3DS/sysmodules/Makefile

24 lines
475 B
Makefile
Raw Permalink Normal View History

ifeq ($(BUILD_FOR_EXPLOIT_DEV),1)
# Keep Loader so that we can execute 3DSX
SUBFOLDERS := loader
else
SUBFOLDERS := loader sm pm pxi rosalina
endif
2018-05-23 09:50:19 +02:00
CXIS := $(foreach dir, $(SUBFOLDERS), $(dir)/$(dir).cxi)
2018-05-23 09:50:19 +02:00
.PHONY: all clean $(SUBFOLDERS)
all: sysmodules.bin
2018-05-23 09:50:19 +02:00
clean:
2018-05-23 19:06:20 +02:00
@$(foreach dir, $(SUBFOLDERS), $(MAKE) -C $(dir) clean &&) true
2018-05-23 09:50:19 +02:00
@rm -rf sysmodules.bin
sysmodules.bin: $(SUBFOLDERS)
@cat $(CXIS) > $@
@echo built... $(notdir $@)
$(SUBFOLDERS):
@$(MAKE) -C $@ all