asterisk-1.8.x-mod: Makefile: Added place holders for more easy configuring of make options DEBUG and OPTIMIZE

This commit is contained in:
Patrik Stridvall 2016-03-21 14:03:39 +01:00
parent 8564f68eff
commit 009f1fc76a

View file

@ -413,11 +413,16 @@ ifeq ($(CONFIG_DEBUG),y)
#MENUSELECT_ARGS+= \
# --enable STATIC_BUILD
DEBUG:=
OPTIMIZE:=
#CONFIGURE_ARGS+= \
# --enable-coverage
else
MENUSELECT_ARGS+= \
--enable LOW_MEMORY
DEBUG:=
OPTIMIZE:=
endif
define Build/Prepare
@ -449,8 +454,8 @@ define Build/Compile
ASTKEYDIR="/usr/lib/asterisk" \
ASTDBDIR="/usr/lib/asterisk" \
NOISY_BUILD="1" \
DEBUG="" \
OPTIMIZE="" \
DEBUG="$(DEBUG)" \
OPTIMIZE="$(OPTIMIZE)" \
DESTDIR="$(PKG_INSTALL_DIR)" \
all install samples
endef