summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile19
1 files changed, 12 insertions, 7 deletions
diff --git a/Makefile b/Makefile
index 820b6ea0..563b1801 100644
--- a/Makefile
+++ b/Makefile
@@ -337,7 +337,8 @@ ifneq (,$(findstring "$(PLATFORM)", "linux" "gnu_kfreebsd" "kfreebsd-gnu"))
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)
@@ -601,7 +602,8 @@ ifeq ($(PLATFORM),freebsd)
CLIENT_LIBS =
- CLIENT_LIBS += $(SDL_LIBS) -lGL
+ CLIENT_LIBS += $(SDL_LIBS)
+ RENDERER_LIBS = -lGL
# optional features/libraries
ifeq ($(USE_OPENAL),1)
@@ -681,7 +683,8 @@ ifeq ($(PLATFORM),openbsd)
CLIENT_LIBS =
- CLIENT_LIBS += $(SDL_LIBS) -lGL
+ CLIENT_LIBS += $(SDL_LIBS)
+ RENDERER_LIBS = -lGL
ifeq ($(USE_OPENAL),1)
ifneq ($(USE_OPENAL_DLOPEN),1)
@@ -752,8 +755,9 @@ ifeq ($(PLATFORM),irix64)
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
@@ -819,7 +823,8 @@ ifeq ($(PLATFORM),sunos)
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
@@ -1597,12 +1602,12 @@ $(B)/tremulous$(FULLBINEXT): $(Q3OBJ) $(LIBSDLMAIN)
$(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)/tremulous$(FULLBINEXT): $(Q3OBJ) $(Q3ROBJ) $(Q3POBJ) $(LIBSDLMAIN)
$(echo_cmd) "LD $@"