summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorTim Angus <tim@ngus.net>2013-01-17 13:31:30 +0000
committerTim Angus <tim@ngus.net>2014-08-28 10:58:28 +0100
commitaf45b9f4614d7018146e68832de3bccb1c73f7e7 (patch)
treef563cc4f23e453d7d1fa13e6c71ffcb7e8ec7bcd /Makefile
parent7426441a5bc9c4eaf28a7f64a22df8bdaa71162c (diff)
Use SDL 2 instead of SDL 1.2
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile10
1 files changed, 5 insertions, 5 deletions
diff --git a/Makefile b/Makefile
index d43ead79..d23a27d2 100644
--- a/Makefile
+++ b/Makefile
@@ -258,15 +258,15 @@ ifneq ($(BUILD_CLIENT),0)
CURL_LIBS=$(shell pkg-config --silence-errors --libs libcurl)
OPENAL_CFLAGS=$(shell pkg-config --silence-errors --cflags openal)
OPENAL_LIBS=$(shell pkg-config --silence-errors --libs openal)
- SDL_CFLAGS=$(shell pkg-config --silence-errors --cflags sdl|sed 's/-Dmain=SDL_main//')
- SDL_LIBS=$(shell pkg-config --silence-errors --libs sdl)
+ SDL_CFLAGS=$(shell pkg-config --silence-errors --cflags sdl2|sed 's/-Dmain=SDL_main//')
+ SDL_LIBS=$(shell pkg-config --silence-errors --libs sdl2)
FREETYPE_CFLAGS=$(shell pkg-config --silence-errors --cflags freetype2)
endif
# Use sdl-config if all else fails
ifeq ($(SDL_CFLAGS),)
- ifneq ($(call bin_path, sdl-config),)
- SDL_CFLAGS=$(shell sdl-config --cflags)
- SDL_LIBS=$(shell sdl-config --libs)
+ ifneq ($(call bin_path, sdl2-config),)
+ SDL_CFLAGS=$(shell sdl2-config --cflags)
+ SDL_LIBS=$(shell sdl2-config --libs)
endif
endif
endif