From 3b5bbad65098d422a2fb8dbf63392529f4f5403d Mon Sep 17 00:00:00 2001 From: Jan Lindemann Date: Sun, 6 Oct 2002 15:48:05 +0000 Subject: [PATCH] $(TOPDIR), make: Add support for mpatrol --- Makefile | 1 + make/cfg_dev.mk | 1 + make/cfg_dist.mk | 1 + make/defs.mk | 6 ++++++ 4 files changed, 9 insertions(+) diff --git a/Makefile b/Makefile index 032e9826..663fb0cc 100644 --- a/Makefile +++ b/Makefile @@ -4,6 +4,7 @@ MODDIR=. SUBDIRS = inst/pre \ make \ doc \ + contrib \ debug misc slog platform \ devutil \ hash \ diff --git a/make/cfg_dev.mk b/make/cfg_dev.mk index 0cb0a311..baafc452 100644 --- a/make/cfg_dev.mk +++ b/make/cfg_dev.mk @@ -50,6 +50,7 @@ COMPILE_DEBUG_CODE = true USE_DMALLOC = true #USE_MEMWATCH = true #USE_EFENCE = true +USE_MPATROL = true USE_COMPILER_DEBUG_OPTS = true #USE_COMPILER_OPTIMIZATION = true USE_TRACING = true diff --git a/make/cfg_dist.mk b/make/cfg_dist.mk index 580aa4fb..5cd63333 100644 --- a/make/cfg_dist.mk +++ b/make/cfg_dist.mk @@ -48,6 +48,7 @@ LIBTYPE = shared #USE_DMALLOC = true #USE_MEMWATCH = true #USE_EFENCE = true +#USE_MPATROL = true #USE_COMPILER_DEBUG_OPTS = true #USE_COMPILER_OPTIMIZATION = true #USE_TRACING = true diff --git a/make/defs.mk b/make/defs.mk index f375daa1..4e34dd25 100644 --- a/make/defs.mk +++ b/make/defs.mk @@ -182,6 +182,12 @@ CPPFLAGS += -fprofile-arcs -ftest-coverage LDFLAGS += -fprofile-arcs -ftest-coverage endif +ifeq ($(USE_MPATROL),true) + PROJECT_CFLAGS += -include $(MODDIR)/include/mpatrol.h + #PROJECT_CPPFLAGS += -include $(MODDIR)/include/mpatrol.h + PROJECT_LDFLAGS += -lmpatrolmt +endif + ifeq ($(USE_TIMER),true) CFLAGS += -D_USE_TIMER_ CPPFLAGS += -D_USE_TIMER_