From 598894f503e6e60133c3fd974d21be939b36c8eb Mon Sep 17 00:00:00 2001 From: dborth Date: Tue, 7 Apr 2009 03:00:54 +0000 Subject: [PATCH] update makefiles --- Makefile.gc | 7 ++++--- Makefile.wii | 14 ++++++++++++-- 2 files changed, 16 insertions(+), 5 deletions(-) diff --git a/Makefile.gc b/Makefile.gc index 8e84824..c48be87 100644 --- a/Makefile.gc +++ b/Makefile.gc @@ -29,7 +29,7 @@ INCLUDES := source/vba source/ngc source/unzip #--------------------------------------------------------------------------------- CFLAGS = -g -O3 -Wall $(MACHDEP) $(INCLUDE) \ - -DNGC -DUSE_VM -DWORDS_BIGENDIAN \ + -DNGC -DNO_SOUND -DUSE_VM -DWORDS_BIGENDIAN \ -DC_CORE -D__ppc__ -D__POWERPC__ -DFINAL_VERSION \ -DSDL -DNO_PNG -DHAVE_ZUTIL_H \ -D_SZ_ONE_DIRECTORY -D_LZMA_IN_CB -D_LZMA_OUT_READ \ @@ -72,6 +72,7 @@ sFILES := $(foreach dir,$(SOURCES),$(notdir $(wildcard $(dir)/*.s))) SFILES := $(foreach dir,$(SOURCES),$(notdir $(wildcard $(dir)/*.S))) TTFFILES := $(foreach dir,$(SOURCES),$(notdir $(wildcard $(dir)/*.ttf))) PNGFILES := $(foreach dir,$(SOURCES),$(notdir $(wildcard $(dir)/*.png))) +PCMFILES := $(foreach dir,$(SOURCES),$(notdir $(wildcard $(dir)/*.pcm))) #--------------------------------------------------------------------------------- # use CXX for linking C++ projects, CC for standard C @@ -84,8 +85,8 @@ endif export OFILES := $(addsuffix .o,$(BINFILES)) \ $(CPPFILES:.cpp=.o) $(CFILES:.c=.o) \ - $(TTFFILES:.ttf=.ttf.o) \ - $(PNGFILES:.png=.png.o) + $(TTFFILES:.ttf=.ttf.o) $(PNGFILES:.png=.png.o) \ + $(PCMFILES:.pcm=.pcm.o) #--------------------------------------------------------------------------------- # build a list of include paths diff --git a/Makefile.wii b/Makefile.wii index b5471ed..ba18297 100644 --- a/Makefile.wii +++ b/Makefile.wii @@ -72,6 +72,8 @@ sFILES := $(foreach dir,$(SOURCES),$(notdir $(wildcard $(dir)/*.s))) SFILES := $(foreach dir,$(SOURCES),$(notdir $(wildcard $(dir)/*.S))) TTFFILES := $(foreach dir,$(SOURCES),$(notdir $(wildcard $(dir)/*.ttf))) PNGFILES := $(foreach dir,$(SOURCES),$(notdir $(wildcard $(dir)/*.png))) +OGGFILES := $(foreach dir,$(SOURCES),$(notdir $(wildcard $(dir)/*.ogg))) +PCMFILES := $(foreach dir,$(SOURCES),$(notdir $(wildcard $(dir)/*.pcm))) #--------------------------------------------------------------------------------- # use CXX for linking C++ projects, CC for standard C @@ -84,8 +86,8 @@ endif export OFILES := $(addsuffix .o,$(BINFILES)) \ $(CPPFILES:.cpp=.o) $(CFILES:.c=.o) \ - $(TTFFILES:.ttf=.ttf.o) \ - $(PNGFILES:.png=.png.o) + $(TTFFILES:.ttf=.ttf.o) $(PNGFILES:.png=.png.o) \ + $(OGGFILES:.ogg=.ogg.o) $(PCMFILES:.pcm=.pcm.o) #--------------------------------------------------------------------------------- # build a list of include paths @@ -145,6 +147,14 @@ $(OUTPUT).elf: $(OFILES) %.png.o : %.png @echo $(notdir $<) $(bin2o) + +%.ogg.o : %.ogg + @echo $(notdir $<) + $(bin2o) + +%.pcm.o : %.pcm + @echo $(notdir $<) + $(bin2o) -include $(DEPENDS)