aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorkpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b>2005-08-23 15:08:55 +0000
committerkpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b>2005-08-23 15:08:55 +0000
commitbd6bd308992f078f9568422383d15969d8c467e6 (patch)
treee4a85170c74e7bbe3bda2dc7638351b2eb9802f3 /Makefile
parentb6e0f58f648815eff1c4504dd01144fd3b3b6ade (diff)
make MALLOC_DEBUG build work properly (issue #4970 with additional changes)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6379 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'Makefile')
-rwxr-xr-xMakefile5
1 files changed, 5 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index d2227b9bb..206b801e2 100755
--- a/Makefile
+++ b/Makefile
@@ -204,6 +204,11 @@ GREP=/usr/xpg4/bin/grep
M4=/usr/local/bin/m4
endif
+# if doing a recursive make, don't double-up CFLAGS
+ifeq ($(MAKECMDGOALS),ast_expr.a)
+CFLAGS=
+endif
+
INCLUDE=-Iinclude -I../include
CFLAGS+=-pipe -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations $(DEBUG) $(INCLUDE) -D_REENTRANT -D_GNU_SOURCE #-DMAKE_VALGRIND_HAPPY
CFLAGS+=$(OPTIMIZE)