@ -37,22 +37,6 @@ PWD=$(shell pwd)
# Remember the MAKELEVEL at the top
MAKETOPLEVEL ?= $( MAKELEVEL)
i f e q ( $( findstring dont -optimize ,$ ( MAKECMDGOALS ) ) , )
# 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
# Tell gcc to optimize the code
OPTIMIZE += -O6
e l s e
# Stack backtraces, while useful for debugging, are incompatible with optimizations
ifeq ( ${ OSARCH } ,Linux)
CFLAGS += -DSTACK_BACKTRACES
endif
e n d i f
# Overwite config files on "make samples"
OVERWRITE = y
@ -147,6 +131,29 @@ TOPDIR_CFLAGS=-include include/autoconfig.h -Iinclude
MOD_SUBDIR_CFLAGS = -include ../include/autoconfig.h -I../include -I..
OTHER_SUBDIR_CFLAGS = -include ../include/autoconfig.h -I../include -I..
i f e q ( $( findstring dont -optimize ,$ ( MAKECMDGOALS ) ) , )
ifeq ( $( findstring DONT_OPTIMIZE,$( MENUSELECT_CFLAGS) ) ,)
# 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
# Tell gcc to optimize the code
OPTIMIZE += -O6
else
# Stack backtraces, while useful for debugging, are incompatible with optimizations
ifeq ( ${ OSARCH } ,Linux)
CFLAGS += -DSTACK_BACKTRACES
endif
endif
e l s e
# Stack backtraces, while useful for debugging, are incompatible with optimizations
ifeq ( ${ OSARCH } ,Linux)
CFLAGS += -DSTACK_BACKTRACES
endif
e n d i f
# *CLI> show memory allocations [filename]
# *CLI> show memory summary [filename]
i f n e q ( $( findstring MALLOC_DEBUG ,$ ( MENUSELECT_CFLAGS ) ) , )