diff Makefile @ 18:0b66213eb422

Added WAV support.
author Ryan C. Gordon <icculus@icculus.org>
date Wed, 19 Sep 2001 08:24:22 +0000
parents 3f214fe4a82f
children ba49bdd9ea33
line wrap: on
line diff
--- 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)"