mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-11-15 13:58:32 +00:00
move applications to use automake
This commit is contained in:
1 parent
07272e864e
commit
bcd9f49fbe
234 files changed
+1729
-2421
No files matched your search
@@ -1 +0,0 @@
|
||||
include ../../../../build/modmake.rules
|
||||
@@ -0,0 +1,8 @@
|
||||
include $(top_srcdir)/build/modmake.rulesam
|
||||
MODNAME=mod_cdr_csv
|
||||
|
||||
mod_LTLIBRARIES = mod_cdr_csv.la
|
||||
mod_cdr_csv_la_SOURCES = mod_cdr_csv.c
|
||||
mod_cdr_csv_la_CFLAGS = $(AM_CFLAGS)
|
||||
mod_cdr_csv_la_LIBADD = $(switch_builddir)/libfreeswitch.la
|
||||
mod_cdr_csv_la_LDFLAGS = -avoid-version -module -no-undefined -shared
|
||||
@@ -26,8 +26,8 @@
|
||||
* mod_cdr_csv.c -- Asterisk Compatible CDR Module
|
||||
*
|
||||
*/
|
||||
#include <sys/stat.h>
|
||||
#include <switch.h>
|
||||
#include <sys/stat.h>
|
||||
|
||||
typedef enum {
|
||||
CDR_LEG_A = (1 << 0),
|
||||
|
||||
@@ -1,9 +0,0 @@
|
||||
include ../../../../build/modmake.rules
|
||||
|
||||
MONGODB_DRIVER=./driver/src
|
||||
LOCAL_CFLAGS=-I$(MONGODB_DRIVER)
|
||||
LOCAL_OBJS=$(MONGODB_DRIVER)/encoding.o $(MONGODB_DRIVER)/env_posix.o \
|
||||
$(MONGODB_DRIVER)/bson.o $(MONGODB_DRIVER)/md5.o \
|
||||
$(MONGODB_DRIVER)/mongo.o $(MONGODB_DRIVER)/numbers.o
|
||||
|
||||
local_depend: $(LOCAL_OBJS)
|
||||
@@ -0,0 +1,9 @@
|
||||
include $(top_srcdir)/build/modmake.rulesam
|
||||
MODNAME=mod_cdr_mongodb
|
||||
MONGODB_DRIVER=./driver/src
|
||||
mod_LTLIBRARIES = mod_cdr_mongodb.la
|
||||
mod_cdr_mongodb_la_SOURCES = mod_cdr_mongodb.c $(MONGODB_DRIVER)/encoding.c $(MONGODB_DRIVER)/env_posix.c $(MONGODB_DRIVER)/bson.c $(MONGODB_DRIVER)/md5.c $(MONGODB_DRIVER)/mongo.c $(MONGODB_DRIVER)/numbers.c
|
||||
mod_cdr_mongodb_la_CFLAGS = $(AM_CFLAGS)
|
||||
mod_cdr_mongodb_la_CPPFLAGS = -I$(MONGODB_DRIVER) -I$(switch_srcdir)/libs/stfu/ -I$(switch_srcdir)/libs/libteletone/src/ -D_GNU_SOURCE
|
||||
mod_cdr_mongodb_la_LIBADD = $(switch_builddir)/libfreeswitch.la
|
||||
mod_cdr_mongodb_la_LDFLAGS = -avoid-version -module -no-undefined -shared
|
||||
@@ -1,14 +0,0 @@
|
||||
UNAME := $(shell uname -s)
|
||||
ifeq ($(UNAME),SunOS)
|
||||
ISA64 := $(shell isainfo -n)
|
||||
LOCAL_CFLAGS=-I/usr/postgres/8.3/include
|
||||
ifneq (,$(findstring m64,$(CFLAGS)))
|
||||
LOCAL_LDFLAGS=-L/usr/postgres/8.3/lib/$(ISA64) -R/usr/postgres/8.3/lib/$(ISA64) -lpq -static
|
||||
else
|
||||
LOCAL_LDFLAGS=-L/usr/postgres/8.3/lib -R/usr/postgres/8.3/lib -lpq -static
|
||||
endif
|
||||
else
|
||||
LOCAL_CFLAGS=-I/usr/include/postgresql
|
||||
LOCAL_LDFLAGS=-lpq -static
|
||||
endif
|
||||
include ../../../../build/modmake.rules
|
||||
@@ -0,0 +1,8 @@
|
||||
include $(top_srcdir)/build/modmake.rulesam
|
||||
MODNAME=mod_cdr_pg_csv
|
||||
|
||||
mod_LTLIBRARIES = mod_cdr_pg_csv.la
|
||||
mod_cdr_pg_csv_la_SOURCES = mod_cdr_pg_csv.c
|
||||
mod_cdr_pg_csv_la_CFLAGS = $(AM_CFLAGS) $(SWITCH_AM_CXXFLAGS)
|
||||
mod_cdr_pg_csv_la_LIBADD = $(switch_builddir)/libfreeswitch.la
|
||||
mod_cdr_pg_csv_la_LDFLAGS = -avoid-version -module -no-undefined -shared -lpq $(SWITCH_AM_LDFLAGS)
|
||||
@@ -35,8 +35,8 @@
|
||||
*
|
||||
*/
|
||||
|
||||
#include <sys/stat.h>
|
||||
#include <switch.h>
|
||||
#include <sys/stat.h>
|
||||
#include <libpq-fe.h>
|
||||
|
||||
SWITCH_MODULE_LOAD_FUNCTION(mod_cdr_pg_csv_load);
|
||||
|
||||
@@ -1 +0,0 @@
|
||||
include ../../../../build/modmake.rules
|
||||
@@ -0,0 +1,8 @@
|
||||
include $(top_srcdir)/build/modmake.rulesam
|
||||
MODNAME=mod_cdr_sqlite
|
||||
|
||||
mod_LTLIBRARIES = mod_cdr_sqlite.la
|
||||
mod_cdr_sqlite_la_SOURCES = mod_cdr_sqlite.c
|
||||
mod_cdr_sqlite_la_CFLAGS = $(AM_CFLAGS)
|
||||
mod_cdr_sqlite_la_LIBADD = $(switch_builddir)/libfreeswitch.la
|
||||
mod_cdr_sqlite_la_LDFLAGS = -avoid-version -module -no-undefined -shared
|
||||
@@ -0,0 +1,7 @@
|
||||
include $(top_srcdir)/build/modmake.rulesam
|
||||
MODNAME=mod_erlang_event
|
||||
mod_LTLIBRARIES = mod_erlang_event.la
|
||||
mod_erlang_event_la_SOURCES = mod_erlang_event.c handle_msg.c ei_helpers.c
|
||||
mod_erlang_event_la_CFLAGS = $(AM_CFLAGS) @ERLANG_CFLAGS@ -D_REENTRANT
|
||||
mod_erlang_event_la_LIBADD = $(switch_builddir)/libfreeswitch.la
|
||||
mod_erlang_event_la_LDFLAGS = -avoid-version -module -no-undefined -shared @ERLANG_LDFLAGS@
|
||||
@@ -1,9 +0,0 @@
|
||||
LOCAL_SOURCES=handle_msg.c ei_helpers.c
|
||||
LOCAL_OBJS=handle_msg.o ei_helpers.o
|
||||
LOCAL_CFLAGS= @ERLANG_CFLAGS@ -D_REENTRANT
|
||||
LOCAL_LDFLAGS= @ERLANG_LDFLAGS@
|
||||
|
||||
include ../../../../build/modmake.rules
|
||||
|
||||
|
||||
|
||||
@@ -1,5 +0,0 @@
|
||||
|
||||
LOCAL_CFLAGS= $(OPENSSL_CFLAGS)
|
||||
LOCAL_LDLAGS= $(OPENSSL_LIBS)
|
||||
|
||||
include ../../../../build/modmake.rules
|
||||
@@ -0,0 +1,8 @@
|
||||
include $(top_srcdir)/build/modmake.rulesam
|
||||
MODNAME=mod_event_multicast
|
||||
|
||||
mod_LTLIBRARIES = mod_event_multicast.la
|
||||
mod_event_multicast_la_SOURCES = mod_event_multicast.c
|
||||
mod_event_multicast_la_CFLAGS = $(AM_CFLAGS) $(OPENSSL_CFLAGS)
|
||||
mod_event_multicast_la_LIBADD = $(switch_builddir)/libfreeswitch.la
|
||||
mod_event_multicast_la_LDFLAGS = -avoid-version -module -no-undefined -shared $(OPENSSL_LIBS)
|
||||
@@ -29,10 +29,10 @@
|
||||
* mod_event_multicast.c -- Multicast Events
|
||||
*
|
||||
*/
|
||||
#include <switch.h>
|
||||
#ifdef HAVE_OPENSSL
|
||||
#include <openssl/evp.h>
|
||||
#endif
|
||||
#include <switch.h>
|
||||
|
||||
#define MULTICAST_BUFFSIZE 65536
|
||||
|
||||
|
||||
@@ -0,0 +1,8 @@
|
||||
include $(top_srcdir)/build/modmake.rulesam
|
||||
MODNAME=mod_event_socket
|
||||
|
||||
mod_LTLIBRARIES = mod_event_socket.la
|
||||
mod_event_socket_la_SOURCES = mod_event_socket.c
|
||||
mod_event_socket_la_CFLAGS = $(AM_CFLAGS)
|
||||
mod_event_socket_la_LIBADD = $(switch_builddir)/libfreeswitch.la
|
||||
mod_event_socket_la_LDFLAGS = -avoid-version -module -no-undefined -shared
|
||||
@@ -0,0 +1,8 @@
|
||||
include $(top_srcdir)/build/modmake.rulesam
|
||||
MODNAME=mod_event_test
|
||||
|
||||
mod_LTLIBRARIES = mod_event_test.la
|
||||
mod_event_test_la_SOURCES = mod_event_test.c
|
||||
mod_event_test_la_CFLAGS = $(AM_CFLAGS)
|
||||
mod_event_test_la_LIBADD = $(switch_builddir)/libfreeswitch.la
|
||||
mod_event_test_la_LDFLAGS = -avoid-version -module -no-undefined -shared
|
||||
+10
-5
@@ -1,5 +1,5 @@
|
||||
BASE=../../../..
|
||||
|
||||
include $(top_srcdir)/build/modmake.rulesam
|
||||
MODNAME=mod_event_zmq
|
||||
ZMQ=zeromq-2.1.9
|
||||
|
||||
ZMQ_BASEURL=http://download.zeromq.org
|
||||
@@ -7,11 +7,16 @@ ZMQ_BASEURL_ALT=http://download.zeromq.org/historic
|
||||
|
||||
ZMQ_DIR=$(switch_srcdir)/libs/$(ZMQ)
|
||||
ZMQ_BUILDDIR=$(switch_builddir)/libs/$(ZMQ)
|
||||
LOCAL_CFLAGS=-I$(ZMQ_DIR)/include
|
||||
ZMQ_LA=$(ZMQ_BUILDDIR)/src/libzmq.la
|
||||
LOCAL_LIBADD=$(ZMQ_LA)
|
||||
|
||||
include $(BASE)/build/modmake.rules
|
||||
mod_LTLIBRARIES = mod_event_zmq.la
|
||||
mod_event_zmq_la_SOURCES = mod_event_zmq.cpp
|
||||
mod_event_zmq_la_CFLAGS = $(AM_CFLAGS)
|
||||
mod_event_zmq_la_CPPFLAGS = -I$(ZMQ_DIR)/include -I$(switch_srcdir)/libs/stfu/ -I$(switch_srcdir)/libs/libteletone/src/
|
||||
mod_event_zmq_la_LIBADD = $(switch_builddir)/libfreeswitch.la $(ZMQ_LA)
|
||||
mod_event_zmq_la_LDFLAGS = -avoid-version -module -no-undefined -shared
|
||||
|
||||
BUILT_SOURCES=$(ZMQ_LA)
|
||||
|
||||
$(ZMQ_DIR):
|
||||
$(GETLIB) $(ZMQ_BASEURL) $(ZMQ).tar.gz || $(GETLIB) $(ZMQ_BASEURL_ALT) $(ZMQ).tar.gz
|
||||
@@ -1 +0,0 @@
|
||||
include ../../../../build/modmake.rules
|
||||
@@ -0,0 +1,8 @@
|
||||
include $(top_srcdir)/build/modmake.rulesam
|
||||
MODNAME=mod_format_cdr
|
||||
|
||||
mod_LTLIBRARIES = mod_format_cdr.la
|
||||
mod_format_cdr_la_SOURCES = mod_format_cdr.c
|
||||
mod_format_cdr_la_CFLAGS = $(AM_CFLAGS)
|
||||
mod_format_cdr_la_LIBADD = $(switch_builddir)/libfreeswitch.la
|
||||
mod_format_cdr_la_LDFLAGS = -avoid-version -module -no-undefined -shared
|
||||
@@ -30,8 +30,8 @@
|
||||
* mod_format_cdr.c -- XML CDR Module to files or curl
|
||||
*
|
||||
*/
|
||||
#include <sys/stat.h>
|
||||
#include <switch.h>
|
||||
#include <sys/stat.h>
|
||||
#include <switch_curl.h>
|
||||
#define MAX_URLS 20
|
||||
#define MAX_ERR_DIRS 20
|
||||
|
||||
@@ -1,4 +0,0 @@
|
||||
BASE=../../../..
|
||||
|
||||
include $(BASE)/build/modmake.rules
|
||||
|
||||
@@ -0,0 +1,8 @@
|
||||
include $(top_srcdir)/build/modmake.rulesam
|
||||
MODNAME=mod_json_cdr
|
||||
|
||||
mod_LTLIBRARIES = mod_json_cdr.la
|
||||
mod_json_cdr_la_SOURCES = mod_json_cdr.c
|
||||
mod_json_cdr_la_CFLAGS = $(AM_CFLAGS)
|
||||
mod_json_cdr_la_LIBADD = $(switch_builddir)/libfreeswitch.la
|
||||
mod_json_cdr_la_LDFLAGS = -avoid-version -module -no-undefined -shared
|
||||
@@ -30,8 +30,8 @@
|
||||
* mod_json_cdr.c -- JSON CDR Module to files or curl
|
||||
*
|
||||
*/
|
||||
#include <sys/stat.h>
|
||||
#include <switch.h>
|
||||
#include <sys/stat.h>
|
||||
#include <switch_curl.h>
|
||||
|
||||
#define MAX_URLS 20
|
||||
|
||||
+9
-5
@@ -1,3 +1,6 @@
|
||||
include $(top_srcdir)/build/modmake.rulesam
|
||||
MODNAME=mod_radius_cdr
|
||||
|
||||
RADCLIENT_VERSION=1.1.6
|
||||
RADCLIENT=freeradius-client-$(RADCLIENT_VERSION)
|
||||
RADCLIENT_DIR=$(switch_srcdir)/libs/$(RADCLIENT)
|
||||
@@ -5,11 +8,12 @@ RADCLIENT_BUILDDIR=$(switch_builddir)/libs/$(RADCLIENT)
|
||||
RADCLIENT_LIBDIR=$(RADCLIENT_BUILDDIR)/lib
|
||||
RADCLIENT_LA=${RADCLIENT_LIBDIR}/libfreeradius-client.la
|
||||
|
||||
LOCAL_CFLAGS=-I$(RADCLIENT_DIR)/include
|
||||
LOCAL_LIBADD=$(RADCLIENT_LA)
|
||||
|
||||
BASE=../../../..
|
||||
include $(BASE)/build/modmake.rules
|
||||
mod_LTLIBRARIES = mod_radius_cdr.la
|
||||
mod_radius_cdr_la_SOURCES = mod_radius_cdr.c
|
||||
mod_radius_cdr_la_CFLAGS = $(AM_CFLAGS) -I$(RADCLIENT_DIR)/include
|
||||
mod_radius_cdr_la_LIBADD = $(switch_builddir)/libfreeswitch.la $(RADCLIENT_LA)
|
||||
mod_radius_cdr_la_LDFLAGS = -avoid-version -module -no-undefined -shared
|
||||
BUILT_SOURCES=$(RADCLIENT_LA)
|
||||
|
||||
$(RADCLIENT_DIR):
|
||||
$(GETLIB) $(RADCLIENT).tar.gz
|
||||
@@ -1,47 +0,0 @@
|
||||
BASE=../../../..
|
||||
|
||||
IKS_DIR=$(BASE)/libs/iksemel
|
||||
PCRE_DIR=$(BASE)/libs/pcre
|
||||
IKS_LA=$(IKS_DIR)/src/libiksemel.la
|
||||
PCRE_LA=$(PCRE_DIR)/libpcre.la
|
||||
LOCAL_CFLAGS += -I$(BASE)/libs/iksemel/include -I$(BASE)/libs/pcre
|
||||
LOCAL_OBJS= $(IKS_LA) \
|
||||
$(PCRE_LA) \
|
||||
iks_helpers.o \
|
||||
nlsml.o \
|
||||
rayo_components.o \
|
||||
rayo_cpa_component.o \
|
||||
rayo_cpa_detector.o \
|
||||
rayo_elements.o \
|
||||
rayo_fax_components.o \
|
||||
rayo_input_component.o \
|
||||
rayo_output_component.o \
|
||||
rayo_prompt_component.o \
|
||||
rayo_record_component.o \
|
||||
sasl.o \
|
||||
srgs.o \
|
||||
xmpp_streams.o
|
||||
LOCAL_SOURCES= \
|
||||
iks_helpers.c \
|
||||
nlsml.c \
|
||||
rayo_components.c \
|
||||
rayo_cpa_component.c \
|
||||
rayo_cpa_detector.c \
|
||||
rayo_elements.c \
|
||||
rayo_fax_components.c \
|
||||
rayo_input_component.c \
|
||||
rayo_output_component.c \
|
||||
rayo_prompt_component.c \
|
||||
rayo_record_component.c \
|
||||
sasl.c \
|
||||
srgs.c \
|
||||
xmpp_streams.c
|
||||
include $(BASE)/build/modmake.rules
|
||||
|
||||
$(IKS_LA): $(IKS_DIR) $(IKS_DIR)/.update
|
||||
@cd $(IKS_DIR) && $(MAKE)
|
||||
@$(TOUCH_TARGET)
|
||||
|
||||
$(PCRE_LA): $(PCRE_DIR) $(PCRE_DIR)/.update
|
||||
@cd $(PCRE_DIR) && $(MAKE)
|
||||
@$(TOUCH_TARGET)
|
||||
@@ -0,0 +1,24 @@
|
||||
include $(top_srcdir)/build/modmake.rulesam
|
||||
MODNAME=mod_rayo
|
||||
|
||||
IKS_DIR=$(switch_srcdir)/libs/iksemel
|
||||
PCRE_DIR=$(switch_srcdir)/libs/pcre
|
||||
IKS_LA=$(IKS_DIR)/src/libiksemel.la
|
||||
PCRE_LA=$(PCRE_DIR)/libpcre.la
|
||||
|
||||
mod_LTLIBRARIES = mod_rayo.la
|
||||
mod_rayo_la_SOURCES = mod_rayo.c iks_helpers.c nlsml.c rayo_components.c rayo_cpa_component.c rayo_cpa_detector.c rayo_elements.c rayo_fax_components.c
|
||||
mod_rayo_la_SOURCES += rayo_input_component.c rayo_output_component.c rayo_prompt_component.c rayo_record_component.c sasl.c srgs.c xmpp_streams.c
|
||||
mod_rayo_la_CFLAGS = $(AM_CFLAGS) -I$(switch_srcdir)/libs/iksemel/include -I$(switch_srcdir)/libs/pcre
|
||||
mod_rayo_la_LIBADD = $(switch_builddir)/libfreeswitch.la $(IKS_LA) $(PCRE_LA)
|
||||
mod_rayo_la_LDFLAGS = -avoid-version -module -no-undefined -shared
|
||||
|
||||
BUILT_SOURCES=$(IKS_LA) $(PCRE_LA)
|
||||
|
||||
$(IKS_LA): $(IKS_DIR) $(IKS_DIR)/.update
|
||||
@cd $(IKS_DIR) && $(MAKE)
|
||||
@$(TOUCH_TARGET)
|
||||
|
||||
$(PCRE_LA): $(PCRE_DIR) $(PCRE_DIR)/.update
|
||||
@cd $(PCRE_DIR) && $(MAKE)
|
||||
@$(TOUCH_TARGET)
|
||||
@@ -1,18 +0,0 @@
|
||||
BASE=../../../../..
|
||||
|
||||
IKS_DIR=$(BASE)/libs/iksemel
|
||||
IKS_LA=$(IKS_DIR)/src/libiksemel.la
|
||||
LOCAL_CFLAGS += -I../ -I$(BASE)/libs/iksemel/include
|
||||
LOCAL_OBJS= $(PCRE_LA) $(IKS_LA) main.o ../iks_helpers.o
|
||||
LOCAL_SOURCES= main.c
|
||||
include $(BASE)/build/modmake.rules
|
||||
|
||||
$(IKS_LA): $(IKS_DIR) $(IKS_DIR)/.update
|
||||
@cd $(IKS_DIR) && $(MAKE)
|
||||
@$(TOUCH_TARGET)
|
||||
|
||||
local_all:
|
||||
libtool --mode=link gcc main.o ../iks_helpers.o -o test test_iks.la
|
||||
|
||||
local_clean:
|
||||
-rm test
|
||||
@@ -1,18 +0,0 @@
|
||||
BASE=../../../../..
|
||||
|
||||
IKS_DIR=$(BASE)/libs/iksemel
|
||||
IKS_LA=$(IKS_DIR)/src/libiksemel.la
|
||||
LOCAL_CFLAGS += -I../ -I$(BASE)/libs/iksemel/include
|
||||
LOCAL_OBJS= $(PCRE_LA) $(IKS_LA) main.o ../nlsml.o
|
||||
LOCAL_SOURCES= main.c
|
||||
include $(BASE)/build/modmake.rules
|
||||
|
||||
$(IKS_LA): $(IKS_DIR) $(IKS_DIR)/.update
|
||||
@cd $(IKS_DIR) && $(MAKE)
|
||||
@$(TOUCH_TARGET)
|
||||
|
||||
local_all:
|
||||
libtool --mode=link gcc main.o ../nlsml.o -o test test_nlsml.la
|
||||
|
||||
local_clean:
|
||||
-rm test
|
||||
@@ -1,24 +0,0 @@
|
||||
BASE=../../../../..
|
||||
|
||||
IKS_DIR=$(BASE)/libs/iksemel
|
||||
PCRE_DIR=$(BASE)/libs/pcre
|
||||
IKS_LA=$(IKS_DIR)/src/libiksemel.la
|
||||
PCRE_LA=$(PCRE_DIR)/libpcre.la
|
||||
LOCAL_CFLAGS += -I../ -I$(BASE)/libs/iksemel/include -I$(BASE)/libs/pcre/include
|
||||
LOCAL_OBJS= $(PCRE_LA) $(IKS_LA) main.o ../srgs.o
|
||||
LOCAL_SOURCES= main.c
|
||||
include $(BASE)/build/modmake.rules
|
||||
|
||||
$(IKS_LA): $(IKS_DIR) $(IKS_DIR)/.update
|
||||
@cd $(IKS_DIR) && $(MAKE)
|
||||
@$(TOUCH_TARGET)
|
||||
|
||||
$(PCRE_LA): $(PCRE_DIR) $(PCRE_DIR)/.update
|
||||
@cd $(PCRE_DIR) && $(MAKE)
|
||||
@$(TOUCH_TARGET)
|
||||
|
||||
local_all:
|
||||
libtool --mode=link gcc main.o ../srgs.o -o test test_srgs.la
|
||||
|
||||
local_clean:
|
||||
-rm test
|
||||
@@ -1,7 +0,0 @@
|
||||
include ../../../../build/modmake.rules
|
||||
|
||||
LOCAL_CFLAGS=`net-snmp-config --cflags`
|
||||
LOCAL_LDFLAGS=`net-snmp-config --agent-libs`
|
||||
LOCAL_OBJS=subagent.o
|
||||
|
||||
local_depend: $(LOCAL_OBJS)
|
||||
@@ -0,0 +1,8 @@
|
||||
include $(top_srcdir)/build/modmake.rulesam
|
||||
MODNAME=mod_snmp
|
||||
|
||||
mod_LTLIBRARIES = mod_snmp.la
|
||||
mod_snmp_la_SOURCES = mod_snmp.c subagent.c
|
||||
mod_snmp_la_CFLAGS = $(AM_CFLAGS) `net-snmp-config --cflags`
|
||||
mod_snmp_la_LIBADD = $(switch_builddir)/libfreeswitch.la
|
||||
mod_snmp_la_LDFLAGS = -avoid-version -module -no-undefined -shared `net-snmp-config --agent-libs`
|
||||
Reference in new issue
Block a user