aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorkpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b>2005-11-07 22:33:12 +0000
committerkpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b>2005-11-07 22:33:12 +0000
commit62fcf71b555f8a7e5e3cbf2ed623dedf40dda050 (patch)
tree185535125be4ffce63beefec61afb58236423c96 /Makefile
parent6881a2a5e71d2cc2ecfa5c377993c17ea4bcb1d3 (diff)
dont-optimize was broken...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6994 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'Makefile')
-rwxr-xr-xMakefile11
1 files changed, 6 insertions, 5 deletions
diff --git a/Makefile b/Makefile
index 3a010c014..c4e52ccca 100755
--- a/Makefile
+++ b/Makefile
@@ -36,17 +36,19 @@ endif
# Remember the MAKELEVEL at the top
MAKETOPLEVEL?=$(MAKELEVEL)
+ifneq ($(findstring dont-optimize,$(MAKECMDGOALS)),dont-optimize)
######### 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
-#Overwite config files on "make samples"
-OVERWRITE=y
-
#Tell gcc to optimize the code
OPTIMIZE+=-O6
+endif
+
+#Overwite config files on "make samples"
+OVERWRITE=y
#Include debug symbols in the executables (-g) and profiling info (-pg)
DEBUG=-g #-pg
@@ -815,8 +817,7 @@ config:
$(INSTALL) -m 755 init.asterisk /etc/init.d/asterisk; \
fi
-dont-optimize:
- $(MAKE) OPTIMIZE= K6OPT= install
+dont-optimize: install
valgrind: dont-optimize