]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
gsmopen: FS-351
authorGiovanni Maruzzelli <gmaruzz@gmail.com>
Tue, 3 May 2011 15:17:28 +0000 (10:17 -0500)
committerGiovanni Maruzzelli <gmaruzz@gmail.com>
Tue, 3 May 2011 15:17:28 +0000 (10:17 -0500)
src/mod/endpoints/mod_gsmopen/Makefile.am

index bde175df8fefda9d6b28c20d42a07f3189ffe6e5..8879a4616d8f2aeff971ecb73503aa4e5f67bee0 100644 (file)
@@ -1,7 +1,24 @@
 include $(top_srcdir)/build/modmake.rulesam
 MODNAME=mod_gsmopen
+
+TIFF_DIR=$(switch_srcdir)/libs/tiff-3.8.2
+TIFF_BUILDDIR=$(switch_builddir)/libs/tiff-3.8.2
+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
+
 mod_LTLIBRARIES = mod_gsmopen.la
 mod_gsmopen_la_SOURCES  = mod_gsmopen.cpp gsmopen_protocol.cpp 
-mod_gsmopen_la_CFLAGS   = $(AM_CFLAGS) -DGSMOPEN_SVN_VERSION=\"`cat $(switch_builddir)/.version`\"
-mod_gsmopen_la_LIBADD   = $(switch_builddir)/libfreeswitch.la
-mod_gsmopen_la_LDFLAGS  = -avoid-version -module -no-undefined -lasound -lgsmme -lspandsp
+mod_gsmopen_la_CFLAGS   = $(AM_CFLAGS) -I$(SPANDSP_DIR)/src -I$(TIFF_DIR)/libtiff -I$(SPANDSP_BUILDDIR)/src -I$(TIFF_BUILDDIR)/libtiff -I. -DGSMOPEN_SVN_VERSION=\"`cat $(switch_builddir)/.version`\"
+mod_gsmopen_la_LIBADD   = $(switch_builddir)/libfreeswitch.la $(SPANDSP_LA) $(TIFF_LA)
+mod_gsmopen_la_LDFLAGS  = -avoid-version -module -no-undefined -lasound -lgsmme
+
+$(SPANDSP_LA): $(TIFF_LA) $(SPANDSP_DIR) $(SPANDSP_DIR)/.update
+       cd $(SPANDSP_BUILDDIR) && $(MAKE) -j1
+       $(TOUCH_TARGET)
+
+$(TIFF_LA): $(TIFF_DIR) $(TIFF_DIR)/.update
+       cd $(TIFF_BUILDDIR) && $(MAKE) -j1
+       $(TOUCH_TARGET)