diff options
author | Max Horn | 2003-04-26 11:44:13 +0000 |
---|---|---|
committer | Max Horn | 2003-04-26 11:44:13 +0000 |
commit | 5626e42f5bf50ae7fdde587047d48cf6986d61e8 (patch) | |
tree | a7519fcefd64326a6c4e2a4e6cac0241c6fce89d /Makefile.common | |
parent | 846034328709d13a2d7af332fef346ad9558d0c3 (diff) | |
download | scummvm-rg350-5626e42f5bf50ae7fdde587047d48cf6986d61e8.tar.gz scummvm-rg350-5626e42f5bf50ae7fdde587047d48cf6986d61e8.tar.bz2 scummvm-rg350-5626e42f5bf50ae7fdde587047d48cf6986d61e8.zip |
Make it possible to disable some/all of our three game modules (scumm/simon/sky) with three flags in the Makefile
svn-id: r7131
Diffstat (limited to 'Makefile.common')
-rw-r--r-- | Makefile.common | 31 |
1 files changed, 25 insertions, 6 deletions
diff --git a/Makefile.common b/Makefile.common index 0ef447dcd2..5a596dea58 100644 --- a/Makefile.common +++ b/Makefile.common @@ -22,10 +22,26 @@ DEPDIR := .deps # TODO - the nested ones (scumm/smush, backends/...) should be handled from the # module.mk of their parents. In fact the only reason they are listed here is to ensure the # DEPDIRS directive works correctly. + +ifdef DISABLE_SCUMM +DEFINES += -DDISABLE_SCUMM +else +MODULES += scumm +endif + +ifdef DISABLE_SIMON +DEFINES += -DDISABLE_SIMON +else +MODULES += simon +endif + +ifdef DISABLE_SKY +DEFINES += -DDISABLE_SKY +else +MODULES += sky +endif + MODULES += \ - scumm \ - simon \ - sky \ common \ gui \ backends \ @@ -36,8 +52,11 @@ MODULES += \ backends/fs/windows \ backends/midi +# Concat DEFINES and INCLUDES to form the CPPFLAGS +CPPFLAGS:= $(DEFINES) $(INCLUDES) + # Include the build instructions for all modules --include $(patsubst %,%/module.mk,$(MODULES)) +-include $(addsuffix /module.mk,$(MODULES)) # HACK temporary fix to get compilation on OS X (and possibly others) working again OBJS:=common/engine.o $(OBJS) @@ -59,8 +78,8 @@ clean: # If you use GCC, disable the above and enable this for intelligent # dependency tracking. -DEPDIRS = $(patsubst %,%/$(DEPDIR),$(MODULES)) -DEPFILES = $(wildcard $(patsubst %,%/*.d,$(DEPDIRS))) +DEPDIRS = $(addsuffix /$(DEPDIR),$(MODULES)) +DEPFILES = $(wildcard $(addsuffix /*.d,$(DEPDIRS))) .cpp.o: $(MKDIR) $(*D)/$(DEPDIR) |