aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFilippos Karapetis2010-10-13 17:05:44 +0000
committerFilippos Karapetis2010-10-13 17:05:44 +0000
commit737c2dd0ba9c5fb609b443da5ec25d520e710129 (patch)
tree465ad9adc3b24b1739493ab2f86758ce600b4318
parent9755c63292cfa3ede160f30d45b28e6dfe8b53e7 (diff)
downloadscummvm-rg350-737c2dd0ba9c5fb609b443da5ec25d520e710129.tar.gz
scummvm-rg350-737c2dd0ba9c5fb609b443da5ec25d520e710129.tar.bz2
scummvm-rg350-737c2dd0ba9c5fb609b443da5ec25d520e710129.zip
SWORD25: Partially revert commit #53389 and add the custom rule for C files
again, so that LUA can be compiled. It's a hack but at least it allows compilation of C files for now svn-id: r53437
-rw-r--r--engines/sword25/module.mk5
1 files changed, 5 insertions, 0 deletions
diff --git a/engines/sword25/module.mk b/engines/sword25/module.mk
index 1f5374e353..6efc378c0f 100644
--- a/engines/sword25/module.mk
+++ b/engines/sword25/module.mk
@@ -103,6 +103,11 @@ MODULE_OBJS += \
fmv/yuvtorgba.o
endif
+# HACK. Use proper CC compiler here
+%.o: %.c
+ $(QUIET)$(MKDIR) $(*D)/$(DEPDIR)
+ $(QUIET_CXX)gcc $(CXX_UPDATE_DEP_FLAG) $(CXXFLAGS) $(CPPFLAGS) -c $(<) -o $*.o
+
# This module can be built as a plugin
ifeq ($(ENABLE_SWORD25), DYNAMIC_PLUGIN)
PLUGIN := 1