From 7527805847f26f32910b78fe3ae7557d9782827c Mon Sep 17 00:00:00 2001 From: Michael Jerris Date: Mon, 19 Mar 2007 12:38:08 +0000 Subject: [PATCH] fix amr build git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4653 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- src/mod/codecs/mod_amr/Makefile | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/mod/codecs/mod_amr/Makefile b/src/mod/codecs/mod_amr/Makefile index 2690cf38fc..1aed9ca458 100644 --- a/src/mod/codecs/mod_amr/Makefile +++ b/src/mod/codecs/mod_amr/Makefile @@ -1,6 +1,10 @@ BASE=../../../.. -LOCAL_INSERT_CFLAGS=if test -d $(BASE)/libs/amr; then echo "-I$(PREFIX)/include/amr" ; else echo "-DAMR_PASSTHROUGH" ; fi ; -LOCAL_INSERT_LDFLAGS=test ! -d $(BASE)/libs/amp || echo "-lamr" +AMR_DIR=$(BASE)/libs/amr +AMR_A=$(AMR_DIR)/libamr.a + +LOCAL_INSERT_CFLAGS=if test -d $(AMR_DIR); then echo "-I$(AMR_DIR)" ; else echo "-DAMR_PASSTHROUGH" ; fi ; +LOCAL_INSERT_LDFLAGS=test ! -d $(AMR_DIR) || echo "$(AMR_A)"; + include $(BASE)/build/modmake.rules