[Gamecube/Wii] modified Makefiles to directly use bin2s tool instead of bin2o script (fixes build issues with latest devkitPPC releases producing refactored/incompatible bin2s tool outputs)

This commit is contained in:
ekeeke 2020-09-18 01:44:14 +02:00
parent a8d15733fb
commit 54b946cd55
2 changed files with 11 additions and 12 deletions

View File

@ -20,8 +20,7 @@ BUILD := build_cube
SOURCES := core core/m68k core/z80 core/sound core/tremor core/ntsc core/input_hw core/cd_hw core/cart_hw core/cart_hw/svp \
gx gx/utils gx/gui gx/fileio gx/images gx/sounds
INCLUDES := core core/m68k core/z80 core/sound core/tremor core/ntsc core/input_hw core/cd_hw core/cart_hw core/cart_hw/svp \
gx gx/utils gx/gui gx/fileio gx/images gx/sounds \
$(BUILD)
gx gx/utils gx/gui gx/fileio gx/images gx/sounds
#---------------------------------------------------------------------------------
# options for code generation
@ -127,19 +126,20 @@ $(OUTPUT).elf: $(OFILES)
#---------------------------------------------------------------------------------
%.jpg.o : %.jpg
@echo $(notdir $<)
$(bin2o)
bin2s -a 32 $< | $(AS) -o $(@)
%.png.o : %.png
@echo $(notdir $<)
$(bin2o)
bin2s -a 32 $< | $(AS) -o $(@)
%.pcm.o : %.pcm
@echo $(notdir $<)
$(bin2o)
bin2s -a 32 $< | $(AS) -o $(@)
%.ogg.o : %.ogg
@echo $(notdir $<)
$(bin2o)
bin2s -a 32 $< | $(AS) -o $(@)
-include $(DEPENDS)

View File

@ -24,8 +24,7 @@ SOURCES := core core/m68k core/z80 core/sound core/tremor core/ntsc core/input_
gx gx/utils gx/utils/wiidrc gx/gui gx/fileio gx/images gx/sounds
INCLUDES := core core/m68k core/z80 core/sound core/tremor core/ntsc core/input_hw core/cd_hw core/cart_hw core/cart_hw/svp \
$(CHDLIBDIR)/src $(CHDLIBDIR)/deps/libFLAC/include $(CHDLIBDIR)/deps/lzma \
gx gx/utils gx/utils/wiidrc gx/gui gx/fileio gx/images gx/sounds \
$(BUILD)
gx gx/utils gx/utils/wiidrc gx/gui gx/fileio gx/images gx/sounds
#---------------------------------------------------------------------------------
# options for code generation
@ -131,19 +130,19 @@ $(OUTPUT).elf: $(OFILES)
#---------------------------------------------------------------------------------
%.jpg.o : %.jpg
@echo $(notdir $<)
$(bin2o)
bin2s -a 32 $< | $(AS) -o $(@)
%.png.o : %.png
@echo $(notdir $<)
$(bin2o)
bin2s -a 32 $< | $(AS) -o $(@)
%.pcm.o : %.pcm
@echo $(notdir $<)
$(bin2o)
bin2s -a 32 $< | $(AS) -o $(@)
%.ogg.o : %.ogg
@echo $(notdir $<)
$(bin2o)
bin2s -a 32 $< | $(AS) -o $(@)
-include $(DEPENDS)