updated the darwin makefile after music streaming changes. it probably needs

further updating, though...

git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@380 af15c1b1-3010-417e-b628-4374ebc0bcbd
This commit is contained in:
Ozkan Sezer 2011-01-05 23:05:17 +00:00
parent 63e9db8355
commit 810141f297

View file

@ -19,6 +19,11 @@ check_gcc = $(shell if echo | $(CC) $(1) -S -o /dev/null -xc - > /dev/null 2>&1;
# ============================================================================ # ============================================================================
# Enable/disable codecs for streaming music support:
USE_CODEC_WAVE=yes
USE_CODEC_MP3=yes
USE_CODEC_VORBIS=yes
DEBUG ?= 0 DEBUG ?= 0
SDLNET ?= 0 SDLNET ?= 0
@ -116,10 +121,25 @@ else
NET_LIBS := NET_LIBS :=
endif endif
# FIXME: The codec libs stuff are copied over from the unix makefile
# They might need adaptations for Darwin
CODECLIBS :=
ifeq ($(USE_CODEC_WAVE),yes)
CFLAGS+= -DUSE_CODEC_WAVE
endif
ifeq ($(USE_CODEC_VORBIS),yes)
CFLAGS+= -DUSE_CODEC_VORBIS
CODECLIBS+= -lvorbis -lvorbisfile -logg
endif
ifeq ($(USE_CODEC_MP3),yes)
CFLAGS+= -DUSE_CODEC_MP3
CODECLIBS+= -lmad
endif
COMMON_LIBS = -Wl,-framework,OpenGL COMMON_LIBS = -Wl,-framework,OpenGL
#LIBS := $(patsubst %,-l%,$(COMMON_LIBS) $(NET_LIBS)) #LIBS := $(patsubst %,-l%,$(COMMON_LIBS) $(NET_LIBS))
LIBS = $(COMMON_LIBS) $(NET_LIBS) LIBS = $(COMMON_LIBS) $(NET_LIBS) $(CODECLIBS)
# --------------------------- # ---------------------------
# targets # targets
@ -140,7 +160,12 @@ DEFAULT_TARGET := quakespasm
# objects # objects
# ---------------------------------------------------------------------------- # ----------------------------------------------------------------------------
COMOBJ_SND := snd_dma.o snd_mix.o snd_mem.o MUSIC_OBJS:= bgmusic.o \
snd_codec.o \
snd_wave.o \
snd_vorbis.o \
snd_mp3.o
COMOBJ_SND := snd_dma.o snd_mix.o snd_mem.o $(MUSIC_OBJS)
SYSOBJ_SND := snd_sdl.o SYSOBJ_SND := snd_sdl.o
SYSOBJ_CDA := cd_sdl.o SYSOBJ_CDA := cd_sdl.o
SYSOBJ_INPUT := in_sdl.o SYSOBJ_INPUT := in_sdl.o