# HG changeset patch # User Ryan C. Gordon # Date 1000887862 0 # Node ID 0b66213eb4224425ba178e068de6f82fc614cbdc # Parent 102cf61c0816b70857e80fc7557b1e705b6b0ac9 Added WAV support. diff -r 102cf61c0816 -r 0b66213eb422 Makefile --- a/Makefile Wed Sep 19 08:22:33 2001 +0000 +++ b/Makefile Wed Sep 19 08:24:22 2001 +0000 @@ -83,6 +83,7 @@ use_decoder_raw := true use_decoder_mp3 := false use_decoder_voc := true +use_decoder_wav := true #-----------------------------------------------------------------------------# # Set to "true" if you'd like to build a DLL. Set to "false" otherwise. @@ -196,7 +197,8 @@ BINDIR := bin SRCDIR := . -CFLAGS += $(use_asm) -I$(SRCDIR) -D_REENTRANT -fsigned-char -DPLATFORM_UNIX +CFLAGS := -I$(SRCDIR) $(CFLAGS) +CFLAGS += $(use_asm) -D_REENTRANT -fsigned-char -DPLATFORM_UNIX CFLAGS += -Wall -Werror -fno-exceptions -fno-rtti -ansi -pedantic LDFLAGS += -lm @@ -250,6 +252,11 @@ CFLAGS += -DSOUND_SUPPORTS_VOC endif +ifeq ($(strip $(use_decoder_wav)),true) + MAINSRCS += decoders/wav.c + CFLAGS += -DSOUND_SUPPORTS_WAV +endif + ifeq ($(strip $(need_extra_rwops)),true) MAINSRCS += extra_rwops.c endif @@ -355,6 +362,7 @@ @echo "SDL_sound version : $(VERFULL)" @echo "Building DLLs : $(build_dll)" @echo "Install prefix : $(install_prefix)" + @echo "Supports .WAV : $(use_decoder_wav)" @echo "Supports .RAW : $(use_decoder_raw)" @echo "Supports .MP3 : $(use_decoder_mp3)" @echo "Supports .VOC : $(use_decoder_voc)"