summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorMark Spencer <markster@digium.com>2003-04-28 19:58:43 +0000
committerMark Spencer <markster@digium.com>2003-04-28 19:58:43 +0000
commit209a6d00f3d3007589c18d8e361e20bd3ce964b9 (patch)
tree231c2b4a80176683c909285164d9ec0c8e8d58e5 /Makefile
parent5526000ecea9f6df4444818ba633a0d27ab673e5 (diff)
Fix pbx_wilcalu from occupying 100% CPU now that it's nonblocking, and add malloc debug
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@927 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'Makefile')
-rwxr-xr-xMakefile14
1 files changed, 12 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 9b90917c4..2f352862d 100755
--- a/Makefile
+++ b/Makefile
@@ -24,12 +24,13 @@ PROC=i686
ifeq (${OSARCH},Linux)
PROC=$(shell uname -m)
endif
+PWD=$(shell pwd)
######### More GSM codec optimization
######### Uncomment to enable MMXTM optimizations for x86 architecture CPU's
######### which support MMX instructions. This should be newer pentiums,
######### ppro's, etc, as well as the AMD K6 and K7.
-K6OPT = #-DK6OPT
+K6OPT = -DK6OPT
#Tell gcc to optimize the asterisk's code
OPTIMIZE=-O6
@@ -43,6 +44,13 @@ DEBUG_THREADS = #-DDO_CRASH -DDEBUG_THREADS
# Uncomment next one to enable ast_frame tracing (for debugging)
TRACE_FRAMES = #-DTRACE_FRAMES
+# Uncomment next one to enable malloc debugging
+# You can view malloc debugging with:
+# *CLI> show memory allocations [filename]
+# *CLI> show memory summary [filename]
+#
+MALLOC_DEBUG = #-include $(PWD)/include/asterisk/astmm.h
+
# Where to install asterisk after compiling
# Default -> leave empty
INSTALL_PREFIX=
@@ -90,6 +98,7 @@ CFLAGS+=-DASTAGIDIR=\"$(AGI_DIR)\"
CFLAGS+= $(DEBUG_THREADS)
CFLAGS+= $(TRACE_FRAMES)
+CFLAGS+= $(MALLOC_DEBUG)
CFLAGS+=# -fomit-frame-pointer
SUBDIRS=res channels pbx apps codecs formats agi cdr astman
ifeq (${OSARCH},Linux)
@@ -100,7 +109,8 @@ OBJS=io.o sched.o logger.o frame.o loader.o config.o channel.o \
translate.o file.o say.o pbx.o cli.o md5.o term.o \
ulaw.o alaw.o callerid.o fskmodem.o image.o app.o \
cdr.o tdd.o acl.o rtp.o manager.o asterisk.o ast_expr.o \
- dsp.o chanvars.o indications.o autoservice.o db.o privacy.o
+ dsp.o chanvars.o indications.o autoservice.o db.o privacy.o \
+ astmm.o
CC=gcc
INSTALL=install