aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authortma <tma@edf5b092-35ff-0310-97b2-ce42778d08ea>2008-05-10 18:51:02 +0000
committertma <tma@edf5b092-35ff-0310-97b2-ce42778d08ea>2008-05-10 18:51:02 +0000
commit0105de5aeed6816adc5383c14db47a909308be09 (patch)
tree68b08547fa62f2358310535a7e32d509e348a269 /Makefile
parentea58233e3370adf79d2830003b9c736716622b9b (diff)
downloadioquake3-aero-0105de5aeed6816adc5383c14db47a909308be09.tar.gz
ioquake3-aero-0105de5aeed6816adc5383c14db47a909308be09.zip
* Fix a bunch of compile warnings
* Only call pkg-config if it exists * Remove cl_consoleHistory from README git-svn-id: svn://svn.icculus.org/quake3/trunk@1342 edf5b092-35ff-0310-97b2-ce42778d08ea
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile22
1 files changed, 12 insertions, 10 deletions
diff --git a/Makefile b/Makefile
index 7a8d932..f1005e3 100644
--- a/Makefile
+++ b/Makefile
@@ -160,13 +160,15 @@ TEMPDIR=/tmp
# set PKG_CONFIG_PATH to influence this, e.g.
# PKG_CONFIG_PATH=/opt/cross/i386-mingw32msvc/lib/pkgconfig
-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)
+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
# version info
VERSION=1.35
@@ -383,9 +385,9 @@ else # ifeq darwin
ifeq ($(PLATFORM),mingw32)
-ifndef WINDRES
-WINDRES=windres
-endif
+ ifndef WINDRES
+ WINDRES=windres
+ endif
ARCH=x86