mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-10-28 22:24:16 +00:00
FS-6293: srcdir builds, most of the built in mods work now
This commit is contained in:
1 parent
e911986a72
commit
048ce8d1f3
6 files changed
+13
-16
No files matched your search
@@ -4,11 +4,7 @@ MODNAME=mod_hash
|
||||
ESL_DIR=$(switch_srcdir)/libs/esl
|
||||
|
||||
mod_LTLIBRARIES = mod_hash.la
|
||||
mod_hash_la_DEPENDENCIES = $(ESL_DIR)/libesl.so
|
||||
mod_hash_la_SOURCES = mod_hash.c
|
||||
mod_hash_la_SOURCES = mod_hash.c ../../../../libs/esl/src/esl.c ../../../../libs/esl/src/esl_json.c ../../../../libs/esl/src/esl_event.c ../../../../libs/esl/src/esl_threadmutex.c ../../../../libs/esl/src/esl_config.c ../../../../libs/esl/src/esl_buffer.c
|
||||
mod_hash_la_CFLAGS = $(AM_CFLAGS) -I$(ESL_DIR)/src/include
|
||||
mod_hash_la_LIBADD = $(switch_builddir)/libfreeswitch.la
|
||||
mod_hash_la_LDFLAGS = -avoid-version -module -no-undefined -shared -L$(ESL_DIR) -lesl
|
||||
|
||||
$(ESL_DIR)/libesl.so:
|
||||
cd $(ESL_DIR) && $(MAKE) -j1
|
||||
mod_hash_la_LDFLAGS = -avoid-version -module -no-undefined -shared
|
||||
@@ -11,12 +11,12 @@ SPANDSP_LA=$(SPANDSP_BUILDDIR)/src/libspandsp.la
|
||||
|
||||
mod_LTLIBRARIES = mod_spandsp.la
|
||||
mod_spandsp_la_SOURCES = mod_spandsp.c udptl.c mod_spandsp_fax.c mod_spandsp_dsp.c mod_spandsp_codecs.c mod_spandsp_modem.c
|
||||
mod_spandsp_la_CFLAGS = $(BUILD_CFLAGS) $(AM_CFLAGS) -I$(SPANDSP_DIR)/src -I$(TIFF_DIR)/libtiff -I$(SPANDSP_BUILDDIR)/src -I$(TIFF_BUILDDIR)/libtiff -I.
|
||||
mod_spandsp_la_CFLAGS = $(BUILD_CFLAGS) $(AM_CFLAGS) -I$(SPANDSP_DIR)/src -I$(TIFF_DIR)/libtiff -I$(TIFF_BUILDDIR)/libtiff -I$(SPANDSP_BUILDDIR)/src -I$(TIFF_BUILDDIR)/libtiff -I.
|
||||
mod_spandsp_la_LIBADD = $(switch_builddir)/libfreeswitch.la $(SPANDSP_LA) $(TIFF_LA) $(SPANDSP_LA_JBIG) $(SPANDSP_LA_LZMA) -ljpeg -lz -lutil
|
||||
mod_spandsp_la_LDFLAGS = -avoid-version -module -no-undefined -shared
|
||||
|
||||
$(SPANDSP_LA): $(TIFF_LA) $(SPANDSP_DIR) $(SPANDSP_DIR)/.update
|
||||
cd $(SPANDSP_BUILDDIR) && $(MAKE) -j1
|
||||
cd $(SPANDSP_BUILDDIR) && $(MAKE) -j1 CFLAGS="-I$(TIFF_BUILDDIR)/libtiff"
|
||||
$(TOUCH_TARGET)
|
||||
|
||||
$(TIFF_LA): $(TIFF_DIR) $(TIFF_DIR)/.update
|
||||
|
||||
@@ -3,12 +3,13 @@ include $(top_srcdir)/build/modmake.rulesam
|
||||
|
||||
MODNAME=mod_lua
|
||||
|
||||
LIBLUA_A=lua/liblua.a
|
||||
LUA_DIR=$(switch_srcdir)/src/mod/languages/mod_lua/lua
|
||||
LIBLUA_A=$(LUA_DIR)/liblua.a
|
||||
|
||||
AM_CFLAGS += $(CFLAGS) -D_GNU_SOURCE
|
||||
mod_LTLIBRARIES = mod_lua.la
|
||||
mod_lua_la_SOURCES = mod_lua.cpp freeswitch_lua.cpp mod_lua_wrap.cpp
|
||||
mod_lua_la_CXXFLAGS = -Ilua $(AM_CPPFLAGS)
|
||||
mod_lua_la_CXXFLAGS = -I$(LUA_DIR) $(AM_CPPFLAGS)
|
||||
mod_lua_la_LIBADD = $(switch_builddir)/libfreeswitch.la
|
||||
mod_lua_la_LDFLAGS = -avoid-version -module -no-undefined -shared -lm $(AM_LDFLAGS) $(LIBLUA_A) $(SOLINK)
|
||||
|
||||
@@ -16,12 +17,12 @@ BUILT_SOURCES = $(LIBLUA_A)
|
||||
$(mod_lua_la_SOURCES) : $(BUILT_SOURCES)
|
||||
|
||||
$(LIBLUA_A):
|
||||
cd lua && $(MAKE) CC="$(CC)" AR="$(AR) rcu" CFLAGS="$(AM_CFLAGS) -DLUA_USE_LINUX -w" liblua.a
|
||||
cd $(LUA_DIR) && $(MAKE) CC="$(CC)" AR="$(AR) rcu" CFLAGS="$(AM_CFLAGS) -DLUA_USE_LINUX -w" liblua.a
|
||||
|
||||
reswig: swigclean lua_wrap
|
||||
|
||||
luaclean:
|
||||
cd lua && $(MAKE) clean
|
||||
cd $(LUA_DIR) && $(MAKE) clean
|
||||
|
||||
allclean: clean luaclean
|
||||
|
||||
|
||||
Reference in new issue
Block a user