aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMax Horn2011-05-03 23:55:41 +0200
committerMax Horn2011-05-03 23:58:33 +0200
commitfc74fb357dbc56c20aaa66a11a1f52e1a6415f75 (patch)
tree958156abdb7afec505fbc5a22e72bf5bfa794b07
parent971baf3585ebf6fc7a31bd8cf55da8c7540bdf5a (diff)
downloadscummvm-rg350-fc74fb357dbc56c20aaa66a11a1f52e1a6415f75.tar.gz
scummvm-rg350-fc74fb357dbc56c20aaa66a11a1f52e1a6415f75.tar.bz2
scummvm-rg350-fc74fb357dbc56c20aaa66a11a1f52e1a6415f75.zip
BUILD: Compile backend specific files only if their backend is selected
-rw-r--r--backends/module.mk51
1 files changed, 35 insertions, 16 deletions
diff --git a/backends/module.mk b/backends/module.mk
index e4abf49ba8..bcf2e62bf2 100644
--- a/backends/module.mk
+++ b/backends/module.mk
@@ -6,38 +6,24 @@ MODULE_OBJS := \
audiocd/default/default-audiocd.o \
audiocd/sdl/sdl-audiocd.o \
events/default/default-events.o \
- events/dinguxsdl/dinguxsdl-events.o \
events/gp2xsdl/gp2xsdl-events.o \
events/gph/gph-events.o \
- events/linuxmotosdl/linuxmotosdl-events.o \
- events/openpandora/op-events.o \
- events/samsungtvsdl/samsungtvsdl-events.o \
events/sdl/sdl-events.o \
- events/symbiansdl/symbiansdl-events.o \
- events/webossdl/webossdl-events.o \
- events/wincesdl/wincesdl-events.o \
fs/abstract-fs.o \
fs/stdiostream.o \
fs/amigaos4/amigaos4-fs.o \
fs/amigaos4/amigaos4-fs-factory.o \
fs/posix/posix-fs.o \
fs/posix/posix-fs-factory.o \
- fs/symbian/symbian-fs.o \
- fs/symbian/symbian-fs-factory.o \
fs/windows/windows-fs.o \
fs/windows/windows-fs-factory.o \
- graphics/dinguxsdl/dinguxsdl-graphics.o \
graphics/gp2xsdl/gp2xsdl-graphics.o \
graphics/gph/gph-graphics.o \
- graphics/linuxmotosdl/linuxmotosdl-graphics.o \
graphics/opengl/glerrorcheck.o \
graphics/opengl/gltexture.o \
graphics/opengl/opengl-graphics.o \
graphics/openglsdl/openglsdl-graphics.o \
- graphics/openpandora/op-graphics.o \
graphics/sdl/sdl-graphics.o \
- graphics/symbiansdl/symbiansdl-graphics.o \
- graphics/wincesdl/wincesdl-graphics.o \
keymapper/action.o \
keymapper/keymap.o \
keymapper/keymapper.o \
@@ -54,8 +40,6 @@ MODULE_OBJS := \
midi/windows.o \
mixer/doublebuffersdl/doublebuffersdl-mixer.o \
mixer/sdl/sdl-mixer.o \
- mixer/symbiansdl/symbiansdl-mixer.o \
- mixer/wincesdl/wincesdl-mixer.o \
mutex/sdl/sdl-mutex.o \
plugins/elf/elf-loader.o \
plugins/elf/mips-loader.o \
@@ -86,6 +70,18 @@ MODULE_OBJS += \
plugins/ds/ds-provider.o
endif
+ifeq ($(BACKEND),dingux)
+MODULE_OBJS += \
+ events/dinguxsdl/dinguxsdl-events.o \
+ graphics/dinguxsdl/dinguxsdl-graphics.o
+endif
+
+ifeq ($(BACKEND),linuxmoto)
+MODULE_OBJS += \
+ events/linuxmotosdl/linuxmotosdl-events.o \
+ graphics/linuxmotosdl/linuxmotosdl-graphics.o
+endif
+
ifeq ($(BACKEND),n64)
MODULE_OBJS += \
fs/n64/n64-fs.o \
@@ -93,6 +89,12 @@ MODULE_OBJS += \
fs/n64/romfsstream.o
endif
+ifeq ($(BACKEND),openpandora)
+MODULE_OBJS += \
+ events/openpandora/op-events.o \
+ graphics/openpandora/op-graphics.o
+endif
+
ifeq ($(BACKEND),ps2)
MODULE_OBJS += \
fs/ps2/ps2-fs.o \
@@ -110,6 +112,23 @@ MODULE_OBJS += \
timer/psp/timer.o
endif
+ifeq ($(BACKEND),samsungstv)
+MODULE_OBJS += \
+ events/samsungtvsdl/samsungtvsdl-events.o
+endif
+
+ifeq ($(BACKEND),webos)
+MODULE_OBJS += \
+ events/webossdl/webossdl-events.o
+endif
+
+ifeq ($(BACKEND),wince)
+MODULE_OBJS += \
+ events/wincesdl/wincesdl-events.o \
+ graphics/wincesdl/wincesdl-graphics.o \
+ mixer/wincesdl/wincesdl-mixer.o
+endif
+
ifeq ($(BACKEND),wii)
MODULE_OBJS += \
fs/wii/wii-fs.o \