[quake3-commits] r2117 - trunk
DONOTREPLY at icculus.org
DONOTREPLY at icculus.org
Mon Aug 1 07:54:00 EDT 2011
Author: thilo
Date: 2011-08-01 07:53:59 -0400 (Mon, 01 Aug 2011)
New Revision: 2117
Modified:
trunk/Makefile
Log:
Remove unneeded library dependencies with new modular renderer
Modified: trunk/Makefile
===================================================================
--- trunk/Makefile 2011-08-01 11:39:33 UTC (rev 2116)
+++ trunk/Makefile 2011-08-01 11:53:59 UTC (rev 2117)
@@ -348,7 +348,8 @@
THREAD_LIBS=-lpthread
LIBS=-ldl -lm
- CLIENT_LIBS=$(SDL_LIBS) -lGL
+ CLIENT_LIBS=$(SDL_LIBS)
+ RENDERER_LIBS=-lGL
ifeq ($(USE_OPENAL),1)
ifneq ($(USE_OPENAL_DLOPEN),1)
@@ -612,7 +613,8 @@
CLIENT_LIBS =
- CLIENT_LIBS += $(SDL_LIBS) -lGL
+ CLIENT_LIBS += $(SDL_LIBS)
+ RENDERER_LIBS = -lGL
# optional features/libraries
ifeq ($(USE_OPENAL),1)
@@ -692,7 +694,8 @@
CLIENT_LIBS =
- CLIENT_LIBS += $(SDL_LIBS) -lGL
+ CLIENT_LIBS += $(SDL_LIBS)
+ RENDERER_LIBS = -lGL
ifeq ($(USE_OPENAL),1)
ifneq ($(USE_OPENAL_DLOPEN),1)
@@ -763,8 +766,9 @@
LIBS=-ldl -lm -lgen
# FIXME: The X libraries probably aren't necessary?
- CLIENT_LIBS=-L/usr/X11/$(LIB) $(SDL_LIBS) -lGL \
+ CLIENT_LIBS=-L/usr/X11/$(LIB) $(SDL_LIBS) \
-lX11 -lXext -lm
+ RENDERER_LIBS = -lGL
else # ifeq IRIX
@@ -830,7 +834,8 @@
BOTCFLAGS=-O0
- CLIENT_LIBS +=$(SDL_LIBS) -lGL -lX11 -lXext -liconv -lm
+ CLIENT_LIBS +=$(SDL_LIBS) -lX11 -lXext -liconv -lm
+ RENDERER_LIBS = -lGL
else # ifeq sunos
@@ -1708,12 +1713,12 @@
$(B)/renderer_opengl1_$(SHLIBNAME): $(Q3ROBJ) $(Q3POBJ)
$(echo_cmd) "LD $@"
$(Q)$(CC) $(CFLAGS) $(SHLIBLDFLAGS) -o $@ $(Q3ROBJ) $(Q3POBJ) \
- $(THREAD_LIBS) $(LIBSDLMAIN) $(CLIENT_LIBS) $(LIBS)
+ $(THREAD_LIBS) $(LIBSDLMAIN) $(RENDERER_LIBS) $(LIBS)
$(B)/renderer_opengl1_smp_$(SHLIBNAME): $(Q3ROBJ) $(Q3POBJ_SMP)
$(echo_cmd) "LD $@"
$(Q)$(CC) $(CFLAGS) $(SHLIBLDFLAGS) -o $@ $(Q3ROBJ) $(Q3POBJ_SMP) \
- $(THREAD_LIBS) $(LIBSDLMAIN) $(CLIENT_LIBS) $(LIBS)
+ $(THREAD_LIBS) $(LIBSDLMAIN) $(RENDERER_LIBS) $(LIBS)
else
$(B)/ioquake3$(FULLBINEXT): $(Q3OBJ) $(Q3ROBJ) $(Q3POBJ) $(LIBSDLMAIN)
$(echo_cmd) "LD $@"
More information about the quake3-commits
mailing list