comparison 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
comparison
equal deleted inserted replaced
17:102cf61c0816 18:0b66213eb422
81 # Note that various decoders may need external libraries. 81 # Note that various decoders may need external libraries.
82 #-----------------------------------------------------------------------------# 82 #-----------------------------------------------------------------------------#
83 use_decoder_raw := true 83 use_decoder_raw := true
84 use_decoder_mp3 := false 84 use_decoder_mp3 := false
85 use_decoder_voc := true 85 use_decoder_voc := true
86 use_decoder_wav := true
86 87
87 #-----------------------------------------------------------------------------# 88 #-----------------------------------------------------------------------------#
88 # Set to "true" if you'd like to build a DLL. Set to "false" otherwise. 89 # Set to "true" if you'd like to build a DLL. Set to "false" otherwise.
89 #-----------------------------------------------------------------------------# 90 #-----------------------------------------------------------------------------#
90 #build_dll := false 91 #build_dll := false
194 #-----------------------------------------------------------------------------# 195 #-----------------------------------------------------------------------------#
195 196
196 BINDIR := bin 197 BINDIR := bin
197 SRCDIR := . 198 SRCDIR := .
198 199
199 CFLAGS += $(use_asm) -I$(SRCDIR) -D_REENTRANT -fsigned-char -DPLATFORM_UNIX 200 CFLAGS := -I$(SRCDIR) $(CFLAGS)
201 CFLAGS += $(use_asm) -D_REENTRANT -fsigned-char -DPLATFORM_UNIX
200 CFLAGS += -Wall -Werror -fno-exceptions -fno-rtti -ansi -pedantic 202 CFLAGS += -Wall -Werror -fno-exceptions -fno-rtti -ansi -pedantic
201 203
202 LDFLAGS += -lm 204 LDFLAGS += -lm
203 205
204 ifeq ($(strip $(debugging)),true) 206 ifeq ($(strip $(debugging)),true)
246 endif 248 endif
247 249
248 ifeq ($(strip $(use_decoder_voc)),true) 250 ifeq ($(strip $(use_decoder_voc)),true)
249 MAINSRCS += decoders/voc.c 251 MAINSRCS += decoders/voc.c
250 CFLAGS += -DSOUND_SUPPORTS_VOC 252 CFLAGS += -DSOUND_SUPPORTS_VOC
253 endif
254
255 ifeq ($(strip $(use_decoder_wav)),true)
256 MAINSRCS += decoders/wav.c
257 CFLAGS += -DSOUND_SUPPORTS_WAV
251 endif 258 endif
252 259
253 ifeq ($(strip $(need_extra_rwops)),true) 260 ifeq ($(strip $(need_extra_rwops)),true)
254 MAINSRCS += extra_rwops.c 261 MAINSRCS += extra_rwops.c
255 endif 262 endif
353 @echo "Debugging chatter : $(debugging_chatter)" 360 @echo "Debugging chatter : $(debugging_chatter)"
354 @echo "ASM flag : $(use_asm)" 361 @echo "ASM flag : $(use_asm)"
355 @echo "SDL_sound version : $(VERFULL)" 362 @echo "SDL_sound version : $(VERFULL)"
356 @echo "Building DLLs : $(build_dll)" 363 @echo "Building DLLs : $(build_dll)"
357 @echo "Install prefix : $(install_prefix)" 364 @echo "Install prefix : $(install_prefix)"
365 @echo "Supports .WAV : $(use_decoder_wav)"
358 @echo "Supports .RAW : $(use_decoder_raw)" 366 @echo "Supports .RAW : $(use_decoder_raw)"
359 @echo "Supports .MP3 : $(use_decoder_mp3)" 367 @echo "Supports .MP3 : $(use_decoder_mp3)"
360 @echo "Supports .VOC : $(use_decoder_voc)" 368 @echo "Supports .VOC : $(use_decoder_voc)"
361 369
362 showflags: 370 showflags: