mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-02-24 18:41:57 +00:00
25 lines
1.1 KiB
Makefile
25 lines
1.1 KiB
Makefile
include $(top_srcdir)/build/modmake.rulesam
|
|
MODNAME=mod_gsmopen
|
|
|
|
TIFF_DIR=$(switch_srcdir)/libs/tiff-4.0.2
|
|
TIFF_BUILDDIR=$(switch_builddir)/libs/tiff-4.0.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) -I$(SPANDSP_DIR)/src -I$(TIFF_DIR)/libtiff -I$(SPANDSP_BUILDDIR)/src -I$(TIFF_BUILDDIR)/libtiff -I. -DGSMOPEN_C_VER=\"`git log -1 --format="%h" gsmopen_protocol.cpp`\" -DMODGSMOPEN_C_VER=\"`git log -1 --format="%h" mod_gsmopen.cpp`\"
|
|
mod_gsmopen_la_LIBADD = $(switch_builddir)/libfreeswitch.la $(SPANDSP_LA) $(TIFF_LA)
|
|
mod_gsmopen_la_LDFLAGS = -avoid-version -module -no-undefined -lctb-0.16 -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)
|