aboutsummaryrefslogtreecommitdiff
path: root/backends/platform/linuxmoto
diff options
context:
space:
mode:
authorMax Horn2010-07-29 13:03:21 +0000
committerMax Horn2010-07-29 13:03:21 +0000
commitd22ebd358dec75762c97f30d8a2fa8630e4268c2 (patch)
tree32b2dadd28e717f938695efe8392a8cef2c6ce74 /backends/platform/linuxmoto
parent2692e55208d8945b24d9a6c451a61856ed601a94 (diff)
downloadscummvm-rg350-d22ebd358dec75762c97f30d8a2fa8630e4268c2.tar.gz
scummvm-rg350-d22ebd358dec75762c97f30d8a2fa8630e4268c2.tar.bz2
scummvm-rg350-d22ebd358dec75762c97f30d8a2fa8630e4268c2.zip
BUILD: Unify how MODULE_DIRS is computed for backends
This should help avoid situations where MODULE_DIRS is not set to a complete list of build dirs (which causes troubles with the automatic header dependency detection logic). On the long run, we should replace the relevant code by a macro or also use rules.mk for this (with yet another if/else case add to it). svn-id: r51467
Diffstat (limited to 'backends/platform/linuxmoto')
-rw-r--r--backends/platform/linuxmoto/module.mk9
1 files changed, 4 insertions, 5 deletions
diff --git a/backends/platform/linuxmoto/module.mk b/backends/platform/linuxmoto/module.mk
index 8123d6e2ac..316ecbf78e 100644
--- a/backends/platform/linuxmoto/module.mk
+++ b/backends/platform/linuxmoto/module.mk
@@ -7,11 +7,10 @@ MODULE_OBJS := \
linuxmoto-sdl.o \
hardwarekeys.o
-MODULE_DIRS += \
- backends/platform/linuxmoto/
-
-# We don't use the rules.mk here on purpose
-OBJS := $(addprefix $(MODULE)/, $(MODULE_OBJS)) $(OBJS)
+# We don't use rules.mk but rather manually update OBJS and MODULE_DIRS.
+MODULE_OBJS := $(addprefix $(MODULE)/, $(MODULE_OBJS))
+OBJS := $(MODULE_OBJS) $(OBJS)
+MODULE_DIRS += $(sort $(dir $(MODULE_OBJS)))
# HACK: The linuxmoto backend is based on the SDL one, so we load that, too.
include $(srcdir)/backends/platform/sdl/module.mk