aboutsummaryrefslogtreecommitdiff
path: root/backends/platform/sdl/module.mk
diff options
context:
space:
mode:
Diffstat (limited to 'backends/platform/sdl/module.mk')
-rw-r--r--backends/platform/sdl/module.mk16
1 files changed, 12 insertions, 4 deletions
diff --git a/backends/platform/sdl/module.mk b/backends/platform/sdl/module.mk
index a22d97ce91..d4a003f574 100644
--- a/backends/platform/sdl/module.mk
+++ b/backends/platform/sdl/module.mk
@@ -1,16 +1,24 @@
MODULE := backends/platform/sdl
MODULE_OBJS := \
- macosx/macosx-main.o \
- macosx/macosx.o \
posix/posix-main.o \
posix/posix.o \
- win32/win32-main.o \
- win32/win32.o \
hardwarekeys.o \
main.o \
sdl.o
+ifdef MACOSX
+MODULE_OBJS += \
+ macosx/macosx-main.o \
+ macosx/macosx.o
+endif
+
+ifdef WIN32
+MODULE_OBJS += \
+ win32/win32-main.o \
+ win32/win32.o
+endif
+
MODULE_DIRS += \
backends/platform/sdl/