diff options
author | ludwig <ludwig@edf5b092-35ff-0310-97b2-ce42778d08ea> | 2009-05-05 18:19:34 +0000 |
---|---|---|
committer | ludwig <ludwig@edf5b092-35ff-0310-97b2-ce42778d08ea> | 2009-05-05 18:19:34 +0000 |
commit | 8e4169a75626f14e582ce7725928fcc96cabd4ea (patch) | |
tree | 3acd1fceebef870b342b55d89c5d806fe43a4cd9 /Makefile | |
parent | 574672e3a5f79887d6fed5e1e5e14e645b8eff72 (diff) | |
download | ioquake3-aero-8e4169a75626f14e582ce7725928fcc96cabd4ea.tar.gz ioquake3-aero-8e4169a75626f14e582ce7725928fcc96cabd4ea.zip |
fall back to sdl-config if SDL_CFLAGS are empty
works around buggy Solaris installations where pkg-config is
installed but can't find the SDL config file
git-svn-id: svn://svn.icculus.org/quake3/trunk@1540 edf5b092-35ff-0310-97b2-ce42778d08ea
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -187,7 +187,9 @@ ifeq ($(shell which pkg-config > /dev/null; echo $$?),0) # FIXME: introduce CLIENT_CFLAGS SDL_CFLAGS=$(shell pkg-config --cflags sdl|sed 's/-Dmain=SDL_main//') SDL_LIBS=$(shell pkg-config --libs sdl) -else +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) |