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.mak9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/osd/sdl/sdl.mak b/src/osd/sdl/sdl.mak
index e738fa8b523..21dd81472cc 100644
--- a/src/osd/sdl/sdl.mak
+++ b/src/osd/sdl/sdl.mak
@@ -83,13 +83,17 @@ SDL_FRAMEWORK_PATH = /Library/Frameworks/
OSDSRC = $(SRC)/osd
OSDOBJ = $(OBJ)/osd
-# default to SDL2 for non-OS/2 builds now
+# default to SDL2 for non-OS/2, non-Emscripten builds now
ifndef SDL_LIBVER
ifneq ($(TARGETOS),os2)
+ifneq ($(TARGETOS),emscripten)
SDL_LIBVER = sdl2
else
SDL_LIBVER = sdl
endif
+else
+SDL_LIBVER = sdl
+endif
endif
ifndef NO_USE_QTDEBUG
@@ -258,6 +262,7 @@ NO_X11 = 1
NO_USE_XINPUT = 1
NO_USE_MIDI = 1
NO_USE_QTDEBUG = 1
+DONT_USE_NETWORK = 1
endif
ifeq ($(TARGETOS),macosx)
@@ -779,6 +784,8 @@ ifneq ($(TARGETOS),win32)
LIBS += -lpcap
endif
endif
+else
+OSDOBJS += $(SDLOBJ)/netdev.o
endif
#-------------------------------------------------