2009-06-17 23:36:00 +00:00
|
|
|
WII_EXE_STRIPPED := scummvm_stripped$(EXEEXT)
|
2009-03-19 18:56:54 +00:00
|
|
|
|
2009-09-27 15:06:35 +00:00
|
|
|
all: $(WII_EXE_STRIPPED)
|
|
|
|
|
|
|
|
$(WII_EXE_STRIPPED): $(EXECUTABLE)
|
2009-06-17 23:36:00 +00:00
|
|
|
$(STRIP) $< -o $@
|
2009-03-19 18:56:54 +00:00
|
|
|
|
|
|
|
clean: wiiclean
|
|
|
|
|
|
|
|
wiiclean:
|
2009-06-17 23:36:00 +00:00
|
|
|
$(RM) $(WII_EXE_STRIPPED)
|
2009-03-19 18:56:54 +00:00
|
|
|
|
2009-06-17 23:36:00 +00:00
|
|
|
wiiload: $(WII_EXE_STRIPPED)
|
|
|
|
$(DEVKITPPC)/bin/wiiload $<
|
2009-03-19 18:56:54 +00:00
|
|
|
|
2009-06-17 23:36:00 +00:00
|
|
|
geckoupload: $(WII_EXE_STRIPPED)
|
|
|
|
$(DEVKITPPC)/bin/geckoupload $<
|
2009-03-19 18:56:54 +00:00
|
|
|
|
|
|
|
wiigdb:
|
2009-09-27 15:06:35 +00:00
|
|
|
$(DEVKITPPC)/bin/powerpc-gekko-gdb -n $(EXECUTABLE)
|
2009-03-19 18:56:54 +00:00
|
|
|
|
|
|
|
wiidebug:
|
2009-09-27 15:06:35 +00:00
|
|
|
$(DEVKITPPC)/bin/powerpc-gekko-gdb -n $(EXECUTABLE) -x $(srcdir)/backends/platform/wii/gdb.txt
|
2009-06-17 23:36:00 +00:00
|
|
|
|
2009-09-25 11:22:29 +00:00
|
|
|
# target to create a Wii snapshot
|
2009-09-27 15:06:35 +00:00
|
|
|
wiidist: all
|
2009-09-25 11:22:29 +00:00
|
|
|
$(MKDIR) wiidist/scummvm
|
|
|
|
ifeq ($(GAMECUBE),1)
|
|
|
|
$(DEVKITPPC)/bin/elf2dol $(EXECUTABLE) wiidist/scummvm/scummvm.dol
|
|
|
|
else
|
|
|
|
$(STRIP) $(EXECUTABLE) -o wiidist/scummvm/boot.elf
|
|
|
|
$(CP) $(srcdir)/dists/wii/icon.png wiidist/scummvm/
|
|
|
|
sed "s/@REVISION@/$(VER_SVNREV)/;s/@TIMESTAMP@/`date +%Y%m%d%H%M%S`/" < $(srcdir)/dists/wii/meta.xml > wiidist/scummvm/meta.xml
|
|
|
|
endif
|
|
|
|
sed 's/$$/\r/' < $(srcdir)/dists/wii/READMII > wiidist/scummvm/READMII.txt
|
|
|
|
for i in $(DIST_FILES_DOCS); do sed 's/$$/\r/' < $$i > wiidist/scummvm/`basename $$i`.txt; done
|
|
|
|
$(CP) $(DIST_FILES_THEMES) wiidist/scummvm/
|
|
|
|
ifneq ($(DIST_FILES_ENGINEDATA),)
|
|
|
|
$(CP) $(DIST_FILES_ENGINEDATA) wiidist/scummvm/
|
|
|
|
endif
|
|
|
|
$(CP) $(srcdir)/backends/vkeybd/packs/vkeybd_default.zip wiidist/scummvm/
|
|
|
|
|
2010-09-05 00:36:27 +00:00
|
|
|
wiiloaddist: wiidist
|
|
|
|
cd wiidist && zip -9r scummvm.zip scummvm/
|
|
|
|
$(DEVKITPPC)/bin/wiiload wiidist/scummvm.zip
|
2009-09-25 11:22:29 +00:00
|
|
|
|
2010-09-05 00:36:27 +00:00
|
|
|
.PHONY: wiiclean wiiload geckoupload wiigdb wiidebug wiidist wiiloaddist
|
2009-03-19 18:56:54 +00:00
|
|
|
|