2010-03-30 05:59:43 +00:00
|
|
|
include $(top_srcdir)/build/modmake.rulesam
|
|
|
|
MODNAME=mod_gsmopen
|
2011-05-03 10:17:28 -05:00
|
|
|
|
2012-09-01 23:37:46 +08:00
|
|
|
TIFF_DIR=$(switch_srcdir)/libs/tiff-4.0.2
|
|
|
|
TIFF_BUILDDIR=$(switch_builddir)/libs/tiff-4.0.2
|
2011-05-03 10:17:28 -05:00
|
|
|
TIFF_LA=$(TIFF_BUILDDIR)/libtiff/libtiff.la
|
|
|
|
|
|
|
|
SPANDSP_DIR=$(switch_srcdir)/libs/spandsp
|
|
|
|
SPANDSP_BUILDDIR=$(switch_builddir)/libs/spandsp
|
|
|
|
SPANDSP_LA=$(SPANDSP_BUILDDIR)/src/libspandsp.la
|
|
|
|
|
2010-03-30 05:59:43 +00:00
|
|
|
mod_LTLIBRARIES = mod_gsmopen.la
|
|
|
|
mod_gsmopen_la_SOURCES = mod_gsmopen.cpp gsmopen_protocol.cpp
|
2014-03-19 08:33:47 -04:00
|
|
|
mod_gsmopen_la_CXXFLAGS = $(SWITCH_AM_CXXFLAGS)
|
2014-03-18 19:36:26 -04:00
|
|
|
mod_gsmopen_la_CPPFLAGS = -I$(SPANDSP_DIR)/src -I$(TIFF_DIR)/libtiff -I$(SPANDSP_BUILDDIR)/src -I$(TIFF_BUILDDIR)/libtiff -I.
|
2011-05-03 10:17:28 -05:00
|
|
|
mod_gsmopen_la_LIBADD = $(switch_builddir)/libfreeswitch.la $(SPANDSP_LA) $(TIFF_LA)
|
2012-04-20 09:32:05 +02:00
|
|
|
mod_gsmopen_la_LDFLAGS = -avoid-version -module -no-undefined -lctb-0.16 -lgsmme
|
2011-05-03 10:17:28 -05:00
|
|
|
|
2014-03-18 19:32:02 -04:00
|
|
|
BUILT_SOURCES = $(TIFF_LA) $(SPANDSP_LA)
|
|
|
|
|
2011-05-03 10:17:28 -05:00
|
|
|
$(SPANDSP_LA): $(TIFF_LA) $(SPANDSP_DIR) $(SPANDSP_DIR)/.update
|
2014-03-18 19:11:16 -04:00
|
|
|
cd $(SPANDSP_BUILDDIR) && $(MAKE) -j1 CFLAGS="$(CFLAGS) -I$(TIFF_BUILDDIR)/libtiff -I$(TIFF_DIR)/libtiff"
|
2011-05-03 10:17:28 -05:00
|
|
|
$(TOUCH_TARGET)
|
|
|
|
|
|
|
|
$(TIFF_LA): $(TIFF_DIR) $(TIFF_DIR)/.update
|
|
|
|
cd $(TIFF_BUILDDIR) && $(MAKE) -j1
|
|
|
|
$(TOUCH_TARGET)
|