
For stuff like testing PASLR, *hax2x, khc3ds, etc. Also fix a corner-case bug when changing the 3dsx app from itself to itself, if its TID corresponds to the default.
24 lines
475 B
Makefile
24 lines
475 B
Makefile
ifeq ($(BUILD_FOR_EXPLOIT_DEV),1)
|
|
# Keep Loader so that we can execute 3DSX
|
|
SUBFOLDERS := loader
|
|
else
|
|
SUBFOLDERS := loader sm pm pxi rosalina
|
|
endif
|
|
|
|
CXIS := $(foreach dir, $(SUBFOLDERS), $(dir)/$(dir).cxi)
|
|
|
|
.PHONY: all clean $(SUBFOLDERS)
|
|
|
|
all: sysmodules.bin
|
|
|
|
clean:
|
|
@$(foreach dir, $(SUBFOLDERS), $(MAKE) -C $(dir) clean &&) true
|
|
@rm -rf sysmodules.bin
|
|
|
|
sysmodules.bin: $(SUBFOLDERS)
|
|
@cat $(CXIS) > $@
|
|
@echo built... $(notdir $@)
|
|
|
|
$(SUBFOLDERS):
|
|
@$(MAKE) -C $@ all
|