From 2d963757f0aa892d935c6afff42001b9638986ca Mon Sep 17 00:00:00 2001 From: Brian West Date: Sat, 20 Mar 2010 17:15:05 +0000 Subject: [PATCH] MODCODEC-18 git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@17059 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- src/mod/codecs/mod_silk/Makefile | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/src/mod/codecs/mod_silk/Makefile b/src/mod/codecs/mod_silk/Makefile index 480f781bb4..78458a4a7d 100644 --- a/src/mod/codecs/mod_silk/Makefile +++ b/src/mod/codecs/mod_silk/Makefile @@ -1,8 +1,11 @@ BASE=../../../.. - -A=../../../../libs/silk/libSKP_SILK_SDK.a - -LOCAL_INSERT_CFLAGS=if test -f $(A); then echo "-I../../../../libs/silk/interface" ; else echo "-DNOTFOUND" ; fi ; -LOCAL_INSERT_LDFLAGS=test ! -f $(A) || echo $(A) - +SILK_DIR=$(switch_srcdir)/libs/silk +SILK_BUILDDIR=$(switch_builddir)/libs/silk +LOCAL_CFLAGS=-I$(SILK_DIR)/src -I$(SILK_DIR)/interface +SILK_LA=$(SILK_BUILDDIR)/.libs/libSKP_SILK_SDK.la +LOCAL_LIBADD=$(SILK_LA) include $(BASE)/build/modmake.rules + +$(SILK_LA): $(SILK_DIR)/.update + cd $(SILK_BUILDDIR) && $(MAKE) + $(TOUCH_TARGET)