[Scummvm-cvs-logs] SF.net SVN: scummvm:[51474] scummvm/trunk/backends/platform/ds/ds.mk

fingolfin at users.sourceforge.net fingolfin at users.sourceforge.net
Thu Jul 29 18:24:25 CEST 2010


Revision: 51474
          http://scummvm.svn.sourceforge.net/scummvm/?rev=51474&view=rev
Author:   fingolfin
Date:     2010-07-29 16:24:25 +0000 (Thu, 29 Jul 2010)

Log Message:
-----------
DS: Add WRAP_MALLOC support to ds.mk, update comments

Modified Paths:
--------------
    scummvm/trunk/backends/platform/ds/ds.mk

Modified: scummvm/trunk/backends/platform/ds/ds.mk
===================================================================
--- scummvm/trunk/backends/platform/ds/ds.mk	2010-07-29 16:24:08 UTC (rev 51473)
+++ scummvm/trunk/backends/platform/ds/ds.mk	2010-07-29 16:24:25 UTC (rev 51474)
@@ -12,6 +12,11 @@
 # build I:  --enable-made --disable-mad
 # build K:  --enable-cruise --disable-mad
 #
+# However, this could be automated using a simple script, which generates
+# subdirs for each build, and runs configure in those subdirs with the right
+# parameters (all builds would still share the same set of source code files,
+# thanks to our "out of tree" building support).
+#
 # This does not currently take care of some things:
 # * It does not #define DS_BUILD_A etc. -- most uses of that should be
 #   eliminated, though. Only usage should be for selecting the default config
@@ -21,6 +26,9 @@
 #   too; we need to investigate those.
 # * It does not currently adjust the logo. Ideally, if we ever get real plugin
 #   support, that should be necessary anymore anyway.
+# * No support for USE_DEBUGGER and USE_PROFILER yet. I envision that we would
+#  integrate them with the --enable-debug and --enable-profiling configure options,
+#  I simply haven't gotten around to do that yet.
 # * ...
 
 # Set location of ndsdir so that we can easily refer to files in it
@@ -59,7 +67,13 @@
 # folder.
 
 
+ifdef WRAP_MALLOC
+	LDFLAGS += -Wl,--wrap,malloc
+	DEFINES += -DWRAP_MALLOC
+endif
 
+
+
 # Compiler options for files which should be optimised for speed
 OPT_SPEED := -O3
 


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.




More information about the Scummvm-git-logs mailing list