2012-12-31 18:37:27 +01:00
|
|
|
all:
|
2013-01-01 11:55:43 +01:00
|
|
|
@echo either use "make dist" or "make dist_vwii"
|
2012-04-17 23:11:54 +02:00
|
|
|
|
2012-12-16 18:17:17 +01:00
|
|
|
REV=$(shell grep define svnrev/svnrev.c | gawk '{print $$3}')
|
|
|
|
|
2013-01-03 22:25:30 +01:00
|
|
|
full_dist: dist dist_vwii pack_forwarder
|
2013-01-01 12:27:03 +01:00
|
|
|
|
2013-01-01 12:13:59 +01:00
|
|
|
dist: compile_installer compile_stboot
|
2014-01-20 19:58:56 +01:00
|
|
|
@tar cfj dist/HomebrewFilter-rev$(REV).tar.bz2 dist/HomebrewFilter/
|
|
|
|
@tar cfj dist/HomebrewFilter-Standalone-rev$(REV).tar.bz2 dist/HomebrewFilter.Standalone/
|
2012-12-16 18:17:17 +01:00
|
|
|
|
2013-01-01 12:13:59 +01:00
|
|
|
dist_vwii: compile_installer_vwii compile_stboot_vwii
|
2014-01-20 19:58:56 +01:00
|
|
|
@tar cfj dist/HomebrewFilter-vWii-rev$(REV).tar.bz2 dist/HomebrewFilter.vWii/
|
|
|
|
@tar cfj dist/HomebrewFilter-vWii-Standalone-rev$(REV).tar.bz2 dist/HomebrewFilter.vWii.Standalone/
|
2012-12-31 18:37:27 +01:00
|
|
|
|
2013-01-03 22:35:05 +01:00
|
|
|
compile_forwarder:
|
|
|
|
@make -C forwarder
|
|
|
|
@cp forwarder/forwarder.dol forwarder/wad/00000001.app
|
|
|
|
@cp forwarder/forwarder.dol forwarder/wad.vwii/00000001.app
|
|
|
|
|
|
|
|
pack_forwarder: compile_forwarder
|
2014-01-20 19:58:56 +01:00
|
|
|
@tools/WadMii.exe -input "Z:$(PWD)\forwarder\wad" -output "Z:$(PWD)\dist\HBF0.wad" || wine tools/WadMii.exe -input "Z:$(PWD)\forwarder\wad" -output "Z:$(PWD)\dist\HBF0.wad"
|
|
|
|
@tools/WadMii.exe -input "Z:$(PWD)\forwarder\wad.vwii" -output "Z:$(PWD)\dist\HBF0.vWii.wad" || wine tools/WadMii.exe -input "Z:$(PWD)\forwarder\wad" -output "Z:$(PWD)\dist\HBF0.vWii.wad"
|
2013-01-03 22:25:30 +01:00
|
|
|
|
2013-01-05 18:49:27 +01:00
|
|
|
distclean: clean
|
2014-01-20 19:58:56 +01:00
|
|
|
@rm -f dist/HomebrewFilter*/boot.dol
|
|
|
|
@rm -f dist/HomebrewFilter*.tar.bz2
|
|
|
|
@rm -f dist/HBF0*.wad
|
2013-01-05 18:49:27 +01:00
|
|
|
|
2012-05-18 21:19:30 +02:00
|
|
|
clean:
|
|
|
|
@make -C main clean
|
|
|
|
@make -C boot clean
|
|
|
|
@make -C installer clean
|
2012-12-08 21:25:25 +01:00
|
|
|
@make -C nand-loader clean
|
2013-01-03 22:35:05 +01:00
|
|
|
@make -C forwarder clean
|
2012-12-31 18:37:27 +01:00
|
|
|
@make -C libruntimeiospatch clean
|
|
|
|
|
|
|
|
clean_vwii:
|
2013-01-01 12:49:15 +01:00
|
|
|
@make -C main clean
|
2012-12-31 18:37:27 +01:00
|
|
|
@make -C boot clean
|
|
|
|
@make -C installer clean
|
|
|
|
|
|
|
|
nand_loader:
|
|
|
|
@make -C nand-loader
|
|
|
|
|
|
|
|
libruntimeiospatch:
|
|
|
|
@make -C libruntimeiospatch
|
2012-05-18 21:19:30 +02:00
|
|
|
|
2013-01-01 12:13:59 +01:00
|
|
|
compile_stboot: clean
|
|
|
|
@echo "============================"
|
|
|
|
@echo "== HBF Standalone for Wii =="
|
|
|
|
@echo "============================"
|
2014-01-20 19:58:56 +01:00
|
|
|
@rm -f dist/HomebrewFilter.Standalone/boot.dol
|
2013-01-01 12:52:46 +01:00
|
|
|
@make -C main clean
|
2013-01-01 12:13:59 +01:00
|
|
|
@XFLAGS="-DSTBOOT" make -C main
|
|
|
|
@cp main/hbf.dol boot/source/hbf.dol
|
|
|
|
@make -C boot
|
2014-01-20 19:58:56 +01:00
|
|
|
@cp boot/hbf_boot.dol dist/HomebrewFilter.Standalone/boot.dol
|
2013-01-01 12:13:59 +01:00
|
|
|
|
|
|
|
compile_stboot_vwii: clean_vwii
|
|
|
|
@echo "============================="
|
|
|
|
@echo "== HBF Standalone for vWii =="
|
|
|
|
@echo "============================="
|
2014-01-20 19:58:56 +01:00
|
|
|
@rm -f dist/HomebrewFilter.vWii.Standalone/boot.dol
|
2013-01-01 12:52:46 +01:00
|
|
|
@make -C main clean
|
2013-01-01 12:13:59 +01:00
|
|
|
@XFLAGS="-DSTBOOTVWII -DVWII" make -C main
|
|
|
|
@cp main/hbf.dol boot/source/hbf.dol
|
|
|
|
@make -C boot
|
2014-01-20 19:58:56 +01:00
|
|
|
@cp boot/hbf_boot.dol dist/HomebrewFilter.vWii.Standalone/boot.dol
|
2013-01-01 12:13:59 +01:00
|
|
|
|
2012-12-31 18:37:27 +01:00
|
|
|
compile_hbf: clean
|
|
|
|
@echo "==========================="
|
2013-01-01 12:13:59 +01:00
|
|
|
@echo "== HBF Installer for Wii =="
|
2012-12-31 18:37:27 +01:00
|
|
|
@echo "==========================="
|
2014-01-20 19:58:56 +01:00
|
|
|
@rm -f dist/HomebrewFilter/boot.dol
|
2012-04-17 23:11:54 +02:00
|
|
|
@make -C main
|
|
|
|
@cp main/hbf.dol boot/source/hbf.dol
|
|
|
|
|
|
|
|
compile_boot: compile_hbf
|
|
|
|
@make -C boot
|
2012-04-19 20:44:19 +02:00
|
|
|
@cp boot/hbf_boot.dol installer/wad/00000001.app
|
2012-04-17 23:11:54 +02:00
|
|
|
|
2012-12-08 23:00:45 +01:00
|
|
|
compile_installer: compile_boot
|
2012-04-19 20:44:19 +02:00
|
|
|
@tools/WadMii.exe -input "Z:$(PWD)\installer\wad" -output "Z:$(PWD)\installer\data\install.wad" || wine tools/WadMii.exe -input "Z:$(PWD)\installer\wad" -output "Z:$(PWD)\installer\data\install.wad"
|
2012-04-17 23:11:54 +02:00
|
|
|
@make -C installer
|
2014-01-20 19:58:56 +01:00
|
|
|
@cp installer/installer.dol dist/HomebrewFilter/boot.dol
|
2012-12-31 18:37:27 +01:00
|
|
|
|
|
|
|
compile_hbf_vwii: clean_vwii
|
|
|
|
@echo "============================"
|
2013-01-01 12:13:59 +01:00
|
|
|
@echo "== HBF Installer for vWii =="
|
2012-12-31 18:37:27 +01:00
|
|
|
@echo "============================"
|
2014-01-20 19:58:56 +01:00
|
|
|
@rm -f dist/HomebrewFilter.vWii/boot.dol
|
2013-01-01 12:13:59 +01:00
|
|
|
@XFLAGS="-DVWII" make -C main
|
2013-01-01 12:01:13 +01:00
|
|
|
@cp main/hbf.dol boot/source/hbf.dol
|
2012-12-31 18:37:27 +01:00
|
|
|
|
|
|
|
compile_boot_vwii: compile_hbf_vwii
|
|
|
|
@make -C boot
|
2012-12-31 19:03:26 +01:00
|
|
|
@cp boot/hbf_boot.dol installer/wad.vwii/00000002.app
|
2012-12-31 18:37:27 +01:00
|
|
|
|
|
|
|
compile_installer_vwii: compile_boot_vwii
|
|
|
|
@tools/WadMii.exe -input "Z:$(PWD)\installer\wad.vwii" -output "Z:$(PWD)\installer\data\install.wad" || wine tools/WadMii.exe -input "Z:$(PWD)\installer\wad.vwii" -output "Z:$(PWD)\installer\data\install.wad"
|
|
|
|
@make -C installer
|
2014-01-20 19:58:56 +01:00
|
|
|
@cp installer/installer.dol dist/HomebrewFilter.vWii/boot.dol
|