mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-02-24 18:41:57 +00:00
29 lines
734 B
Makefile
29 lines
734 B
Makefile
|
BASE=../../../..
|
||
|
|
||
|
OPUS=opus-0.9.0
|
||
|
|
||
|
OPUS_DIR=$(switch_srcdir)/libs/$(OPUS)
|
||
|
OPUS_BUILDDIR=$(switch_builddir)/libs/$(OPUS)
|
||
|
LOCAL_CFLAGS=-I$(OPUS_DIR)/src -g -O2
|
||
|
|
||
|
IETF_LA=$(OPUS_BUILDDIR)/src/.libs/libietfcodec.a
|
||
|
CELT_LA=$(OPUS_BUILDDIR)/celt/libcelt/.libs/libcelt0.a
|
||
|
SILK_LA=$(OPUS_BUILDDIR)/silk/.libs/libSKP_SILK_SDK.a
|
||
|
|
||
|
LOCAL_LIBADD=$(IETF_LA) $(CELT_LA) $(SILK_LA) -lm -lz
|
||
|
|
||
|
include $(BASE)/build/modmake.rules
|
||
|
|
||
|
$(OPUS_DIR):
|
||
|
$(GETLIB) $(OPUS).tar.gz
|
||
|
|
||
|
$(OPUS_BUILDDIR)/Makefile: $(OPUS_DIR)
|
||
|
mkdir -p $(OPUS_BUILDDIR)
|
||
|
cd $(OPUS_BUILDDIR) && $(DEFAULT_VARS) $(OPUS_DIR)/configure --disable-shared --with-pic --srcdir=$(OPUS_DIR)
|
||
|
$(TOUCH_TARGET)
|
||
|
|
||
|
$(IETF_LA): $(OPUS_BUILDDIR)/Makefile
|
||
|
cd $(OPUS_BUILDDIR) && $(MAKE)
|
||
|
$(TOUCH_TARGET)
|
||
|
|