Add top-level Makefile for sysmodules

This commit is contained in:
TuxSH 2018-05-23 09:50:19 +02:00
parent 4b40dd52f4
commit 9fad2dff21
5 changed files with 21 additions and 4 deletions

17
sysmodules/Makefile Normal file
View File

@ -0,0 +1,17 @@
SUBFOLDERS := loader sm pxi rosalina
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

View File

@ -105,7 +105,7 @@ $(BUILD):
#---------------------------------------------------------------------------------
clean:
@echo clean ...
@rm -fr $(BUILD) $(TARGET).bin $(TARGET).elf
@rm -fr $(BUILD) $(TARGET).cxi $(TARGET).elf
#---------------------------------------------------------------------------------

View File

@ -105,7 +105,7 @@ $(BUILD):
#---------------------------------------------------------------------------------
clean:
@echo clean ...
@rm -fr $(BUILD) $(TARGET).bin $(TARGET).elf
@rm -fr $(BUILD) $(TARGET).cxi $(TARGET).elf
#---------------------------------------------------------------------------------

View File

@ -105,7 +105,7 @@ $(BUILD):
#---------------------------------------------------------------------------------
clean:
@echo clean ...
@rm -fr $(BUILD) $(TARGET).bin $(TARGET).elf
@rm -fr $(BUILD) $(TARGET).cxi $(TARGET).elf
#---------------------------------------------------------------------------------

View File

@ -105,7 +105,7 @@ $(BUILD):
#---------------------------------------------------------------------------------
clean:
@echo clean ...
@rm -fr $(BUILD) $(TARGET).bin $(TARGET).elf
@rm -fr $(BUILD) $(TARGET).cxi $(TARGET).elf
#---------------------------------------------------------------------------------