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)