Mercurial > SDL_sound_CoreAudio
comparison Makefile @ 6:3f214fe4a82f
Added debugging_chatter flag, and VOC and MP3 decoders.
author | Ryan C. Gordon <icculus@icculus.org> |
---|---|
date | Tue, 18 Sep 2001 10:51:18 +0000 |
parents | 341cea3e13c6 |
children | 0b66213eb422 |
comparison
equal
deleted
inserted
replaced
5:b97da311bbe2 | 6:3f214fe4a82f |
---|---|
61 SDL_LIB_DIR := please_set_me_cygwin_users | 61 SDL_LIB_DIR := please_set_me_cygwin_users |
62 endif | 62 endif |
63 | 63 |
64 #-----------------------------------------------------------------------------# | 64 #-----------------------------------------------------------------------------# |
65 # Set this to true if you want to create a debug build. | 65 # Set this to true if you want to create a debug build. |
66 # (for generating debugging symbols, disabling optimizations, etc.) | |
66 #-----------------------------------------------------------------------------# | 67 #-----------------------------------------------------------------------------# |
67 #debugging := false | 68 #debugging := false |
68 debugging := true | 69 debugging := true |
69 | 70 |
70 #-----------------------------------------------------------------------------# | 71 #-----------------------------------------------------------------------------# |
72 # Set this to true if you want debugging output. This does a LOT of | |
73 # chattering to stdout, and can be used with out without the (debugging) | |
74 # option above. You do NOT want this in a release build! | |
75 #-----------------------------------------------------------------------------# | |
76 #debugging_chatter := false | |
77 debugging_chatter := true | |
78 | |
79 #-----------------------------------------------------------------------------# | |
71 # Set the decoder types you'd like to support. | 80 # Set the decoder types you'd like to support. |
72 # Note that various decoders may need external libraries. | 81 # Note that various decoders may need external libraries. |
73 #-----------------------------------------------------------------------------# | 82 #-----------------------------------------------------------------------------# |
74 use_decoder_raw := true | 83 use_decoder_raw := true |
75 use_decoder_voc := false | 84 use_decoder_mp3 := false |
85 use_decoder_voc := true | |
76 | 86 |
77 #-----------------------------------------------------------------------------# | 87 #-----------------------------------------------------------------------------# |
78 # Set to "true" if you'd like to build a DLL. Set to "false" otherwise. | 88 # Set to "true" if you'd like to build a DLL. Set to "false" otherwise. |
79 #-----------------------------------------------------------------------------# | 89 #-----------------------------------------------------------------------------# |
80 #build_dll := false | 90 #build_dll := false |
197 else | 207 else |
198 CFLAGS += -DNDEBUG -O2 -fomit-frame-pointer | 208 CFLAGS += -DNDEBUG -O2 -fomit-frame-pointer |
199 LDFLAGS += -O2 -fomit-frame-pointer | 209 LDFLAGS += -O2 -fomit-frame-pointer |
200 endif | 210 endif |
201 | 211 |
212 ifeq ($(strip $(debugging_chatter)),true) | |
213 CFLAGS += -DDEBUG_CHATTER | |
214 endif | |
215 | |
202 ASMFLAGS := -f $(ASMOBJFMT) $(ASMDEFS) | 216 ASMFLAGS := -f $(ASMOBJFMT) $(ASMDEFS) |
203 | 217 |
204 #-----------------------------------------------------------------------------# | 218 #-----------------------------------------------------------------------------# |
205 # Source and target names. | 219 # Source and target names. |
206 #-----------------------------------------------------------------------------# | 220 #-----------------------------------------------------------------------------# |
216 | 230 |
217 TESTSRCS := test/test_sdlsound.c | 231 TESTSRCS := test/test_sdlsound.c |
218 | 232 |
219 MAINSRCS := SDL_sound.c | 233 MAINSRCS := SDL_sound.c |
220 | 234 |
235 need_extra_rwops := false | |
221 ifeq ($(strip $(use_decoder_raw)),true) | 236 ifeq ($(strip $(use_decoder_raw)),true) |
222 MAINSRCS += decoders/raw.c | 237 MAINSRCS += decoders/raw.c |
223 CFLAGS += -DSOUND_SUPPORTS_RAW | 238 CFLAGS += -DSOUND_SUPPORTS_RAW |
224 endif | 239 endif |
225 | 240 |
241 ifeq ($(strip $(use_decoder_mp3)),true) | |
242 MAINSRCS += decoders/mp3.c | |
243 need_extra_rwops := true | |
244 CFLAGS += -DSOUND_SUPPORTS_MP3 $(shell smpeg-config --cflags) | |
245 LDFLAGS += $(shell smpeg-config --libs) | |
246 endif | |
247 | |
226 ifeq ($(strip $(use_decoder_voc)),true) | 248 ifeq ($(strip $(use_decoder_voc)),true) |
227 MAINSRCS += archivers/voc.c | 249 MAINSRCS += decoders/voc.c |
228 CFLAGS += -DSOUND_SUPPORTS_VOC | 250 CFLAGS += -DSOUND_SUPPORTS_VOC |
251 endif | |
252 | |
253 ifeq ($(strip $(need_extra_rwops)),true) | |
254 MAINSRCS += extra_rwops.c | |
229 endif | 255 endif |
230 | 256 |
231 #ifeq ($(strip $(cygwin)),true) | 257 #ifeq ($(strip $(cygwin)),true) |
232 # MAINSRCS += platform/win32.c | 258 # MAINSRCS += platform/win32.c |
233 # CFLAGS += -DWIN32 | 259 # CFLAGS += -DWIN32 |
322 | 348 |
323 showcfg: | 349 showcfg: |
324 @echo "Compiler : $(CC)" | 350 @echo "Compiler : $(CC)" |
325 @echo "Using CygWin : $(cygwin)" | 351 @echo "Using CygWin : $(cygwin)" |
326 @echo "Debugging : $(debugging)" | 352 @echo "Debugging : $(debugging)" |
353 @echo "Debugging chatter : $(debugging_chatter)" | |
327 @echo "ASM flag : $(use_asm)" | 354 @echo "ASM flag : $(use_asm)" |
328 @echo "SDL_sound version : $(VERFULL)" | 355 @echo "SDL_sound version : $(VERFULL)" |
329 @echo "Building DLLs : $(build_dll)" | 356 @echo "Building DLLs : $(build_dll)" |
330 @echo "Install prefix : $(install_prefix)" | 357 @echo "Install prefix : $(install_prefix)" |
331 @echo "Supports .RAW : $(use_decoder_raw)" | 358 @echo "Supports .RAW : $(use_decoder_raw)" |
359 @echo "Supports .MP3 : $(use_decoder_mp3)" | |
332 @echo "Supports .VOC : $(use_decoder_voc)" | 360 @echo "Supports .VOC : $(use_decoder_voc)" |
333 | 361 |
334 showflags: | 362 showflags: |
335 @echo 'CFLAGS : $(CFLAGS)' | 363 @echo 'CFLAGS : $(CFLAGS)' |
336 @echo 'LDFLAGS : $(LDFLAGS)' | 364 @echo 'LDFLAGS : $(LDFLAGS)' |