[Scummvm-cvs-logs] CVS: scummvm Makefile.common,1.59,1.60
Max Horn
fingolfin at users.sourceforge.net
Mon Sep 8 18:57:14 CEST 2003
Update of /cvsroot/scummvm/scummvm
In directory sc8-pr-cvs1:/tmp/cvs-serv18009
Modified Files:
Makefile.common
Log Message:
adding some comments, reordering some stuff
Index: Makefile.common
===================================================================
RCS file: /cvsroot/scummvm/scummvm/Makefile.common,v
retrieving revision 1.59
retrieving revision 1.60
diff -u -d -r1.59 -r1.60
--- Makefile.common 13 Aug 2003 18:14:42 -0000 1.59
+++ Makefile.common 8 Sep 2003 15:33:26 -0000 1.60
@@ -2,9 +2,16 @@
# This file is used by Makefile and Makefile.mingw and declares common build rules,
# a list of common object files etc.
+######################################################################
# The defaul build target: just build the scummvm executable
+######################################################################
all: scummvm$(EXEEXT)
+
+######################################################################
+# Various minor settings
+######################################################################
+
# Files that are to be included in the archive built by "make dist"
DISTFILES := \
Makefile Makefile.common Makefile.mingw \
@@ -19,10 +26,24 @@
# The name for the directory used for depenency tracking
DEPDIR := .deps
-# List of all sub modules (note: order is important, don't mess with it)
-# 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.
+
+######################################################################
+# Plugin settings
+######################################################################
+
+# For now we only support "static" plugins
+STATIC_PLUGINS := 1
+
+# Plugin prefix. Typically "lib" on Unix, and nothing everywhere else
+PLUGIN_PREFIX := lib
+# Plugin suffix. For static/shared libs this is typically ".so"/".a" on Unix,
+# ".dll"/".lib" on Windows, ".bundle"/".a" on OS X, etc.
+PLUGIN_SUFFIX := .a
+
+
+######################################################################
+# Module settings
+######################################################################
ifdef DISABLE_SCUMM
DEFINES += -DDISABLE_SCUMM
@@ -48,6 +69,7 @@
MODULES += bs2 bs2/driver
endif
+# After the game specific modules follow the shared modules
MODULES += \
common \
gui \
@@ -58,6 +80,12 @@
backends/fs/windows \
backends/midi
+
+######################################################################
+# The build rules follow - normally you should have no need to
+# touch whatever comes after here.
+######################################################################
+
# Concat DEFINES and INCLUDES to form the CPPFLAGS
CPPFLAGS:= $(DEFINES) $(INCLUDES)
@@ -80,15 +108,14 @@
.PHONY: all clean dist distclean
-# Default (dumb) compile & dependcy rules
+DEPDIRS = $(addsuffix /$(DEPDIR),$(MODULES))
+DEPFILES = $(wildcard $(addsuffix /*.d,$(DEPDIRS)))
+
+# Old (dumb) compile & dependcy rules
#INCS = scumm/scumm.h common/scummsys.h common/stdafx.h
#.cpp.o:
# $(CXX) $(CXXFLAGS) $(CPPFLAGS) -c $(<) -o $*.o
#$(OBJS): $(INCS)
-
-
-DEPDIRS = $(addsuffix /$(DEPDIR),$(MODULES))
-DEPFILES = $(wildcard $(addsuffix /*.d,$(DEPDIRS)))
ifndef HAVE_GCC3
# If you use GCC, disable the above and enable this for intelligent
More information about the Scummvm-git-logs
mailing list