comparison Makefile @ 50:d7e118d8fede

Removed -DUSE_RWOPS for MOD, and readded -Werror.
author Ryan C. Gordon <icculus@icculus.org>
date Sat, 22 Sep 2001 16:29:17 +0000
parents f7a792fdf7a4
children 2d0873719c77
comparison
equal deleted inserted replaced
49:365b3be64aac 50:d7e118d8fede
79 #-----------------------------------------------------------------------------# 79 #-----------------------------------------------------------------------------#
80 # Set the decoder types you'd like to support. 80 # Set the decoder types you'd like to support.
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_mod := true 85 use_decoder_mod := true
86 use_decoder_voc := true 86 use_decoder_voc := true
87 use_decoder_wav := true 87 use_decoder_wav := true
88 use_decoder_aiff := true 88 use_decoder_aiff := true
89 use_decoder_ogg := true 89 use_decoder_ogg := true
220 BINDIR := bin 220 BINDIR := bin
221 SRCDIR := . 221 SRCDIR := .
222 222
223 CFLAGS := -I$(SRCDIR) $(CFLAGS) 223 CFLAGS := -I$(SRCDIR) $(CFLAGS)
224 CFLAGS += $(use_asm) -D_REENTRANT -fsigned-char -DPLATFORM_UNIX 224 CFLAGS += $(use_asm) -D_REENTRANT -fsigned-char -DPLATFORM_UNIX
225 CFLAGS += -Wall -fno-exceptions -fno-rtti -ansi -pedantic 225 CFLAGS += -Wall -Werror -fno-exceptions -fno-rtti -ansi -pedantic
226 226
227 LDFLAGS += -lm 227 LDFLAGS += -lm
228 228
229 ifeq ($(strip $(debugging)),true) 229 ifeq ($(strip $(debugging)),true)
230 CFLAGS += -DDEBUG -g -fno-omit-frame-pointer 230 CFLAGS += -DDEBUG -g -fno-omit-frame-pointer
270 LDFLAGS += $(shell smpeg-config --libs) 270 LDFLAGS += $(shell smpeg-config --libs)
271 endif 271 endif
272 272
273 ifeq ($(strip $(use_decoder_mod)),true) 273 ifeq ($(strip $(use_decoder_mod)),true)
274 MAINSRCS += decoders/mod.c 274 MAINSRCS += decoders/mod.c
275 CFLAGS += -DSOUND_SUPPORTS_MOD -DUSE_RWOPS 275 CFLAGS += -DSOUND_SUPPORTS_MOD
276 LDFLAGS += -lmikmod 276 LDFLAGS += -lmikmod
277 endif 277 endif
278 278
279 ifeq ($(strip $(use_decoder_voc)),true) 279 ifeq ($(strip $(use_decoder_voc)),true)
280 MAINSRCS += decoders/voc.c 280 MAINSRCS += decoders/voc.c