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)