freeswitch/src/mod/codecs/mod_opus/Makefile.am

29 lines
870 B
Makefile
Raw Normal View History

2014-02-27 19:16:54 +00:00
include $(top_srcdir)/build/modmake.rulesam
MODNAME=mod_opus
OPUS=opus-1.1-p2
2011-02-04 21:33:28 +00:00
OPUS_DIR=$(switch_srcdir)/libs/$(OPUS)
OPUS_BUILDDIR=$(switch_builddir)/libs/$(OPUS)
OPUS_LA=$(OPUS_BUILDDIR)/.libs/libopus.la
2011-02-04 21:33:28 +00:00
2014-02-27 19:16:54 +00: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 21:33:28 +00:00
2014-02-27 19:16:54 +00:00
BUILT_SOURCES=$(OPUS_LA)
$(OPUS_DIR)/configure:
2011-02-04 21:33:28 +00:00
$(GETLIB) $(OPUS).tar.gz
$(OPUS_BUILDDIR)/Makefile: $(OPUS_DIR)/configure
2014-03-18 21:38:02 +00:00
mkdir -p $(OPUS_BUILDDIR)
2011-02-04 21:33:28 +00:00
cd $(OPUS_BUILDDIR) && $(DEFAULT_VARS) $(OPUS_DIR)/configure --disable-shared --with-pic --srcdir=$(OPUS_DIR)
$(TOUCH_TARGET)
2014-03-18 21:38:02 +00:00
$(OPUS_LA): $(OPUS_BUILDDIR)/Makefile
2011-02-04 21:33:28 +00:00
cd $(OPUS_BUILDDIR) && $(MAKE)
2014-03-18 21:38:02 +00:00
$(TOUCH_TARGET)
2011-02-04 21:33:28 +00:00
2012-09-13 16:27:50 +00:00
$(MODNAME).lo: $(OPUS_LA)