aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--backends/sdl/module.mk11
-rwxr-xr-xconfigure2
2 files changed, 11 insertions, 2 deletions
diff --git a/backends/sdl/module.mk b/backends/sdl/module.mk
new file mode 100644
index 0000000000..aa92b2035d
--- /dev/null
+++ b/backends/sdl/module.mk
@@ -0,0 +1,11 @@
+MODULE := backends/sdl
+
+MODULE_OBJS := \
+ backends/sdl/sdl.o \
+ backends/sdl/sdl-common.o
+
+MODULE_DIRS += \
+ backend/sdl
+
+# We don't use the common.rules here on purpose
+OBJS := $(MODULE_OBJS) $(OBJS)
diff --git a/configure b/configure
index c6add9b362..f105a0aec5 100755
--- a/configure
+++ b/configure
@@ -794,9 +794,7 @@ case $_backend in
find_sdlconfig
INCLUDES="$INCLUDES `$_sdlconfig --cflags`"
LIBS="$LIBS `$_sdlconfig --libs`"
- OBJS="$OBJS backends/sdl/sdl-common.o backends/sdl/sdl.o"
MODULES="$MODULES backends/sdl"
- MODULE_DIRS="$MODULE_DIRS backends/sdl"
;;
x11)
INCLUDES="$INCLUDES -I/usr/X11R6/include"