diff --git a/src/mod/codecs/mod_ilbc/Makefile b/src/mod/codecs/mod_ilbc/Makefile index fca877d9ec..520c7c6c40 100644 --- a/src/mod/codecs/mod_ilbc/Makefile +++ b/src/mod/codecs/mod_ilbc/Makefile @@ -1,11 +1,12 @@ BASE=../../../.. -ILBC_DIR=$(BASE)/libs/ilbc -ILBCLA=$(ILBC_DIR)/src/libilbc.la +ILBC_DIR=$(switch_srcdir)/libs/ilbc +ILBC_BUILDDIR=$(switch_builddir)/libs/ilbc +ILBCLA=$(ILBC_BUILDDIR)/src/libilbc.la LOCAL_CFLAGS=-I$(ILBC_DIR)/src LOCAL_LIBADD=$(ILBCLA) include $(BASE)/build/modmake.rules $(ILBCLA): $(ILBC_DIR) $(ILBC_DIR)/.update - cd $(ILBC_DIR) && $(MAKE) + cd $(ILBC_BUILDDIR) && $(MAKE) $(TOUCH_TARGET) diff --git a/src/mod/codecs/mod_siren/Makefile b/src/mod/codecs/mod_siren/Makefile index 9c5139ab13..bb044a449d 100644 --- a/src/mod/codecs/mod_siren/Makefile +++ b/src/mod/codecs/mod_siren/Makefile @@ -1,10 +1,11 @@ BASE=../../../.. -G722_1_DIR=$(BASE)/libs/libg722_1 +G722_1_DIR=$(switch_srcdir)/libs/libg722_1 +G722_1_BUILDDIR=$(switch_builddir)/libs/libg722_1 LOCAL_CFLAGS=-I$(G722_1_DIR)/src -G722_1_LA=$(G722_1_DIR)/src/.libs/libg722_1.la +G722_1_LA=$(G722_1_BUILDDIR)/src/.libs/libg722_1.la LOCAL_LIBADD=$(G722_1_LA) include $(BASE)/build/modmake.rules $(G722_1_LA): $(G722_1_DIR)/.update - cd $(G722_1_DIR) && $(MAKE) + cd $(G722_1_BUILDDIR) && $(MAKE) $(TOUCH_TARGET)