Add top-level Makefile for sysmodules
This commit is contained in:
parent
4b40dd52f4
commit
9fad2dff21
17
sysmodules/Makefile
Normal file
17
sysmodules/Makefile
Normal 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
|
@ -105,7 +105,7 @@ $(BUILD):
|
||||
#---------------------------------------------------------------------------------
|
||||
clean:
|
||||
@echo clean ...
|
||||
@rm -fr $(BUILD) $(TARGET).bin $(TARGET).elf
|
||||
@rm -fr $(BUILD) $(TARGET).cxi $(TARGET).elf
|
||||
|
||||
|
||||
#---------------------------------------------------------------------------------
|
||||
|
@ -105,7 +105,7 @@ $(BUILD):
|
||||
#---------------------------------------------------------------------------------
|
||||
clean:
|
||||
@echo clean ...
|
||||
@rm -fr $(BUILD) $(TARGET).bin $(TARGET).elf
|
||||
@rm -fr $(BUILD) $(TARGET).cxi $(TARGET).elf
|
||||
|
||||
|
||||
#---------------------------------------------------------------------------------
|
||||
|
@ -105,7 +105,7 @@ $(BUILD):
|
||||
#---------------------------------------------------------------------------------
|
||||
clean:
|
||||
@echo clean ...
|
||||
@rm -fr $(BUILD) $(TARGET).bin $(TARGET).elf
|
||||
@rm -fr $(BUILD) $(TARGET).cxi $(TARGET).elf
|
||||
|
||||
|
||||
#---------------------------------------------------------------------------------
|
||||
|
@ -105,7 +105,7 @@ $(BUILD):
|
||||
#---------------------------------------------------------------------------------
|
||||
clean:
|
||||
@echo clean ...
|
||||
@rm -fr $(BUILD) $(TARGET).bin $(TARGET).elf
|
||||
@rm -fr $(BUILD) $(TARGET).cxi $(TARGET).elf
|
||||
|
||||
|
||||
#---------------------------------------------------------------------------------
|
||||
|
Reference in New Issue
Block a user