[quake3-commits] r1648 - trunk

DONOTREPLY at icculus.org DONOTREPLY at icculus.org
Thu Oct 8 15:21:43 EDT 2009


Author: thilo
Date: 2009-10-08 15:21:42 -0400 (Thu, 08 Oct 2009)
New Revision: 1648

Modified:
   trunk/Makefile
Log:
Don't set SDL variables if we don't build the client -> removes error messages when building on a server without SDL installed.


Modified: trunk/Makefile
===================================================================
--- trunk/Makefile	2009-10-06 17:56:36 UTC (rev 1647)
+++ trunk/Makefile	2009-10-08 19:21:42 UTC (rev 1648)
@@ -181,23 +181,26 @@
 LIBSDIR=$(MOUNT_DIR)/libs
 TEMPDIR=/tmp
 
-# set PKG_CONFIG_PATH to influence this, e.g.
-# PKG_CONFIG_PATH=/opt/cross/i386-mingw32msvc/lib/pkgconfig
-ifeq ($(shell which pkg-config > /dev/null; echo $$?),0)
-  CURL_CFLAGS=$(shell pkg-config --cflags libcurl)
-  CURL_LIBS=$(shell pkg-config --libs libcurl)
-  OPENAL_CFLAGS=$(shell pkg-config --cflags openal)
-  OPENAL_LIBS=$(shell pkg-config --libs openal)
-  # FIXME: introduce CLIENT_CFLAGS
-  SDL_CFLAGS=$(shell pkg-config --cflags sdl|sed 's/-Dmain=SDL_main//')
-  SDL_LIBS=$(shell pkg-config --libs sdl)
-endif
-# Use sdl-config if all else fails
-ifeq ($(SDL_CFLAGS),)
-  ifeq ($(shell which sdl-config > /dev/null; echo $$?),0)
-    SDL_CFLAGS=$(shell sdl-config --cflags)
-    SDL_LIBS=$(shell sdl-config --libs)
+# We won't need this if we want to build the client
+ifneq ($(BUILD_CLIENT),0)
+  # set PKG_CONFIG_PATH to influence this, e.g.
+  # PKG_CONFIG_PATH=/opt/cross/i386-mingw32msvc/lib/pkgconfig
+  ifeq ($(shell which pkg-config > /dev/null; echo $$?),0)
+    CURL_CFLAGS=$(shell pkg-config --cflags libcurl)
+    CURL_LIBS=$(shell pkg-config --libs libcurl)
+    OPENAL_CFLAGS=$(shell pkg-config --cflags openal)
+    OPENAL_LIBS=$(shell pkg-config --libs openal)
+    # FIXME: introduce CLIENT_CFLAGS
+    SDL_CFLAGS=$(shell pkg-config --cflags sdl|sed 's/-Dmain=SDL_main//')
+    SDL_LIBS=$(shell pkg-config --libs sdl)
   endif
+  # Use sdl-config if all else fails
+  ifeq ($(SDL_CFLAGS),)
+    ifeq ($(shell which sdl-config > /dev/null; echo $$?),0)
+      SDL_CFLAGS=$(shell sdl-config --cflags)
+      SDL_LIBS=$(shell sdl-config --libs)
+    endif
+  endif
 endif
 
 # version info



More information about the quake3-commits mailing list