2014-02-27 14:16:54 -05:00
|
|
|
include $(top_srcdir)/build/modmake.rulesam
|
|
|
|
MODNAME=mod_opus
|
2014-02-18 22:10:54 -06:00
|
|
|
OPUS=opus-1.1-p2
|
2011-02-04 15:33:28 -06:00
|
|
|
OPUS_DIR=$(switch_srcdir)/libs/$(OPUS)
|
|
|
|
OPUS_BUILDDIR=$(switch_builddir)/libs/$(OPUS)
|
2012-09-13 10:32:00 -05:00
|
|
|
OPUS_LA=$(OPUS_BUILDDIR)/.libs/libopus.la
|
2011-02-04 15:33:28 -06:00
|
|
|
|
2014-02-27 14:16:54 -05:00
|
|
|
mod_LTLIBRARIES = mod_opus.la
|
|
|
|
mod_opus_la_SOURCES = mod_opus.c
|
|
|
|
mod_opus_la_CFLAGS = $(AM_CFLAGS) -I$(OPUS_DIR)/include
|
|
|
|
mod_opus_la_LIBADD = $(switch_builddir)/libfreeswitch.la $(OPUS_LA)
|
|
|
|
mod_opus_la_LDFLAGS = -avoid-version -module -no-undefined -shared -lm -lz
|
2011-02-04 15:33:28 -06:00
|
|
|
|
2014-10-02 19:25:43 -04:00
|
|
|
MY_DEFAULT_ARGS = --build=$(build) --host=$(host) --target=$(target) --prefix="$(prefix)" --exec_prefix="$(exec_prefix)" --libdir="$(libdir)" --disable-shared --with-pic --srcdir=$(OPUS_DIR)
|
|
|
|
|
2014-02-27 14:16:54 -05:00
|
|
|
BUILT_SOURCES=$(OPUS_LA)
|
2014-05-16 23:46:07 +00:00
|
|
|
$(OPUS_DIR)/configure:
|
2011-02-04 15:33:28 -06:00
|
|
|
$(GETLIB) $(OPUS).tar.gz
|
|
|
|
|
2014-05-16 23:46:07 +00:00
|
|
|
$(OPUS_BUILDDIR)/Makefile: $(OPUS_DIR)/configure
|
2014-03-18 17:38:02 -04:00
|
|
|
mkdir -p $(OPUS_BUILDDIR)
|
2014-10-02 19:25:43 -04:00
|
|
|
cd $(OPUS_BUILDDIR) && $(DEFAULT_VARS) $(OPUS_DIR)/configure $(MY_DEFAULT_ARGS)
|
2011-02-04 15:33:28 -06:00
|
|
|
$(TOUCH_TARGET)
|
|
|
|
|
2014-03-18 17:38:02 -04:00
|
|
|
$(OPUS_LA): $(OPUS_BUILDDIR)/Makefile
|
2011-02-04 15:33:28 -06:00
|
|
|
cd $(OPUS_BUILDDIR) && $(MAKE)
|
2014-03-18 17:38:02 -04:00
|
|
|
$(TOUCH_TARGET)
|
2011-02-04 15:33:28 -06:00
|
|
|
|
2012-09-13 11:27:50 -05:00
|
|
|
$(MODNAME).lo: $(OPUS_LA)
|
|
|
|
|