From 8e4169a75626f14e582ce7725928fcc96cabd4ea Mon Sep 17 00:00:00 2001 From: ludwig Date: Tue, 5 May 2009 18:19:34 +0000 Subject: 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 --- Makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 56172d3..32f4d1a 100644 --- a/Makefile +++ b/Makefile @@ -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) -- cgit v1.2.3