mirror of
https://github.com/wiiu-env/haxchi.git
synced 2024-11-17 21:59:15 +01:00
37 lines
607 B
Makefile
37 lines
607 B
Makefile
|
.PHONY := all code550.bin
|
||
|
|
||
|
ifeq ($(Windows_NT), 1)
|
||
|
ZIP = zip/zip.exe
|
||
|
else
|
||
|
ZIP = zip
|
||
|
endif
|
||
|
|
||
|
HAXCHI_S = haxchi.s
|
||
|
ROP_S = haxchi_rop.s
|
||
|
ROP_BIN = haxchi_rop.bin
|
||
|
|
||
|
|
||
|
all: setup brainage rom.zip
|
||
|
|
||
|
brainage: setup_brainage brainage.nds
|
||
|
|
||
|
setup:
|
||
|
@cd hbl_loader && make && cd ..
|
||
|
|
||
|
setup_brainage:
|
||
|
@rm -f defines.s $(ROP_BIN) haxchi_rop_hook.bin
|
||
|
@cp -f brainage_defs.s defines.s
|
||
|
|
||
|
brainage.nds:
|
||
|
@armips $(ROP_S)
|
||
|
@armips $(HAXCHI_S)
|
||
|
@mv rom.nds brainage.nds
|
||
|
|
||
|
rom.zip:
|
||
|
$(ZIP) -JXjq9 rom.zip brainage.nds
|
||
|
|
||
|
clean:
|
||
|
@rm -f *.bin *.zip *.nds defines.s
|
||
|
@cd hbl_loader && make clean && cd ..
|
||
|
@echo "all cleaned up !"
|