From a57b566c0b76f13f648bf08869134a5815068aa6 Mon Sep 17 00:00:00 2001 From: helixhorned Date: Thu, 12 Jan 2012 20:49:34 +0000 Subject: [PATCH] Add Makefile option to use the DMALLOC (debug malloc) library. I didn't have much success in finding bugs using it, but it works out-of-the-box on my setup, so it may be useful in the future. git-svn-id: https://svn.eduke32.com/eduke32@2254 1a8010ca-5511-0410-912e-c29ae57300e0 --- polymer/eduke32/Makefile.common | 5 +++++ polymer/eduke32/build/include/compat.h | 2 ++ 2 files changed, 7 insertions(+) diff --git a/polymer/eduke32/Makefile.common b/polymer/eduke32/Makefile.common index d970fc466..3c5a9c554 100644 --- a/polymer/eduke32/Makefile.common +++ b/polymer/eduke32/Makefile.common @@ -44,6 +44,7 @@ RELEASE?=1 DEBUGANYWAY?=0 KRANDDEBUG?=0 EFENCE?=0 +DMALLOC?=0 OPTLEVEL?=2 PROFILER?=0 MUDFLAP?=0 @@ -145,6 +146,10 @@ ifneq (0,$(EFENCE)) LIBS+= -lefence BASECFLAGS+= -DEFENCE endif +ifneq (0,$(DMALLOC)) + LIBS+= -ldmalloc + BASECFLAGS+= -DDMALLOC +endif BASECXXFLAGS= -fno-exceptions -fno-rtti BASEASFLAGS=-s #-g diff --git a/polymer/eduke32/build/include/compat.h b/polymer/eduke32/build/include/compat.h index d7cbc86e8..34ebe599c 100644 --- a/polymer/eduke32/build/include/compat.h +++ b/polymer/eduke32/build/include/compat.h @@ -93,6 +93,8 @@ #ifdef EFENCE # include +#elif defined DMALLOC +# include #endif #if defined(_MSC_VER)