aboutsummaryrefslogtreecommitdiff
path: root/Makefile.common
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile.common')
-rw-r--r--Makefile.common6
1 files changed, 4 insertions, 2 deletions
diff --git a/Makefile.common b/Makefile.common
index 02c3408684..41a3245b76 100644
--- a/Makefile.common
+++ b/Makefile.common
@@ -16,7 +16,9 @@ all: $(EXECUTABLE) plugins
PLUGINS :=
MODULES := test devtools base $(MODULES)
--include $(srcdir)/engines/engines.mk
+ENGINE_SUBDIRS_MK := $(wildcard $(srcdir)/engines/*/engine.mk)
+# Include the build instructions for all engines
+-include $(ENGINE_SUBDIRS_MK)
# After the game specific modules follow the shared modules
MODULES += \
@@ -147,7 +149,7 @@ endif
# recreate them (which it can't), and in particular from looking for potential
# source files. This can save quite a bit of disk access time.
.PHONY: $(wildcard $(addsuffix /*.d,$(DEPDIRS))) $(addprefix $(srcdir)/, $(addsuffix /module.mk,$(MODULES))) \
- $(srcdir)/$(port_mk) $(srcdir)/rules.mk $(srcdir)/engines/engines.mk
+ $(srcdir)/$(port_mk) $(srcdir)/rules.mk $ENGINE_SUBDIRS_MK
######################################################################
# Get the current version information