summaryrefslogtreecommitdiffstatshomepage
path: root/src/osd/sdl/sdl.mak
diff options
context:
space:
mode:
Diffstat (limited to 'src/osd/sdl/sdl.mak')
-rw-r--r--src/osd/sdl/sdl.mak8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/osd/sdl/sdl.mak b/src/osd/sdl/sdl.mak
index d4c06138821..fd7055f71ad 100644
--- a/src/osd/sdl/sdl.mak
+++ b/src/osd/sdl/sdl.mak
@@ -58,9 +58,6 @@ USE_DISPATCH_GL = 1
# There is no need to play with this option unless you are doing
# active development on sdlmame or SDL.
-# uncomment the next line to compile and link against SDL2.0
-# SDL_LIBVER = sdl2
-
# uncomment the next line to use couriersud's multi-keyboard patch for SDL 2.1? (this API was removed prior to the 2.0 release)
# SDL2_MULTIAPI = 1
@@ -86,6 +83,11 @@ SDL_FRAMEWORK_PATH = /Library/Frameworks/
OSDSRC = $(SRC)/osd
OSDOBJ = $(OBJ)/osd
+# auto-select SDL2 for non-OS/2 builds now
+ifneq ($(TARGETOS),os2)
+SDL_LIBVER = sdl2
+endif
+
ifndef NO_USE_QTDEBUG
OBJDIRS += $(OSDOBJ)/modules/debugger/qt
endif