to tell the code about this linkage, openSUSE 10.3 does not include
libmodplug.so so this is sadly necessary
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@7794
d7cf8633-e32d-0410-b094-
e92efae38249
ifeq ($(DP_SOUND_API), OSS)
OBJ_SOUND=$(OBJ_SND_OSS)
LIB_SOUND=$(LIB_SND_OSS)
+ ifneq ($(shell [ -e /usr/lib64/libmodplug.a ] || [ -e /usr/lib/libmodplug.a ]), false)
+ LIB_SOUND+=-lmodplug -lstdc++
+ endif
endif
# ALSA: Advanced Linux Sound Architecture
ifeq ($(DP_SOUND_API), ALSA)
OBJ_SOUND=$(OBJ_SND_ALSA)
LIB_SOUND=$(LIB_SND_ALSA)
+ ifneq ($(shell [ -e /usr/lib64/libmodplug.a ] || [ -e /usr/lib/libmodplug.a ]), false)
+ LIB_SOUND+=-lmodplug -lstdc++
+ endif
endif
# COREAUDIO: Core Audio
LDFLAGS="$(LDFLAGS_RELEASE) $(LDFLAGS_COMMON)"
$(STRIP) $(EXE)
+snd_modplug.o: snd_modplug.c
+ if [ -e /usr/lib64/libmodplug.a ] || [ -e /usr/lib/libmodplug.a ] ; then $(DO_CC) -DSND_MODPLUG_STATIC ; else $(DO_CC) ; fi
+
vid_glx.o: vid_glx.c
$(DO_CC) -I/usr/X11R6/include