summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile5
1 files changed, 4 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 6200c2b6c..214fdee53 100644
--- a/Makefile
+++ b/Makefile
@@ -687,10 +687,13 @@ C_SOURCES += water_cmd.c
C_SOURCES += waypoint.c
C_SOURCES += widget.c
C_SOURCES += window.c
-C_SOURCES += sdl.c
CXX_SOURCES =
+ifdef WITH_SDL
+C_SOURCES += sdl.c
+endif
+
ifdef WIN32
C_SOURCES += win32.c w32dm.c
else