mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-10-26 21:24:16 +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,8 +0,0 @@
|
||||
BASE=../../../..
|
||||
|
||||
LOCAL_CFLAGS=-I. -I$(PA_DIR)/include -D__EXTENSION__=1
|
||||
LOCAL_LDFLAGS=-lasound
|
||||
|
||||
include $(BASE)/build/modmake.rules
|
||||
|
||||
|
||||
@@ -0,0 +1,8 @@
|
||||
include $(top_srcdir)/build/modmake.rulesam
|
||||
MODNAME=mod_alsa
|
||||
|
||||
mod_LTLIBRARIES = mod_alsa.la
|
||||
mod_alsa_la_SOURCES = mod_alsa.c
|
||||
mod_alsa_la_CFLAGS = $(AM_CFLAGS) -I. -D__EXTENSION__=1
|
||||
mod_alsa_la_LIBADD = $(switch_builddir)/libfreeswitch.la
|
||||
mod_alsa_la_LDFLAGS = -avoid-version -module -no-undefined -shared -lasound
|
||||
@@ -1,23 +0,0 @@
|
||||
BASE=../../../..
|
||||
|
||||
LOCAL_CFLAGS = `$(BASE)/libs/apr/apr-1-config --cflags --cppflags --includes`
|
||||
LOCAL_CFLAGS += `$(BASE)/libs/apr-util/apu-1-config --includes`
|
||||
#LOCAL_CFLAGS += -w
|
||||
|
||||
IKS_DIR=$(BASE)/libs/iksemel
|
||||
IKS_LA=$(IKS_DIR)/src/libiksemel.la
|
||||
DING_DIR=$(BASE)/libs/libdingaling
|
||||
LOCAL_CFLAGS += -I$(DING_DIR)/src -I$(BASE)/libs/iksemel/include
|
||||
LOCAL_OBJS=$(DING_DIR)/src/libdingaling.o $(DING_DIR)/src/sha1.o $(IKS_LA)
|
||||
LOCAL_SOURCES=$(DING_DIR)/src/libdingaling.c $(DING_DIR)/src/sha1.c $(DING_DIR)/src/libdingaling.h
|
||||
LOCAL_LDFLAGS=$(LIBGNUTLS_LIBS)
|
||||
include $(BASE)/build/modmake.rules
|
||||
|
||||
|
||||
$(IKS_LA): $(IKS_DIR) $(IKS_DIR)/.update
|
||||
@cd $(IKS_DIR) && $(MAKE)
|
||||
@$(TOUCH_TARGET)
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -0,0 +1,21 @@
|
||||
include $(top_srcdir)/build/modmake.rulesam
|
||||
MODNAME=mod_dingaling
|
||||
IKS_DIR=$(switch_srcdir)/libs/iksemel
|
||||
IKS_BUILDDIR=$(switch_builddir)/libs/iksemel
|
||||
IKS_LA=$(IKS_BUILDDIR)/src/libiksemel.la
|
||||
DING_DIR=$(switch_srcdir)/libs/libdingaling
|
||||
|
||||
mod_LTLIBRARIES = mod_dingaling.la
|
||||
mod_dingaling_la_SOURCES = mod_dingaling.c $(DING_DIR)/src/libdingaling.c $(DING_DIR)/src/sha1.c
|
||||
mod_dingaling_la_CFLAGS = $(AM_CFLAGS)
|
||||
mod_dingaling_la_CFLAGS += `$(switch_srcdir)/libs/apr/apr-1-config --cflags --cppflags --includes`
|
||||
mod_dingaling_la_CFLAGS += `$(switch_srcdir)/libs/apr-util/apu-1-config --includes`
|
||||
mod_dingaling_la_CFLAGS += -I$(DING_DIR)/src -I$(IKS_DIR)/include
|
||||
mod_dingaling_la_LIBADD = $(switch_builddir)/libfreeswitch.la $(IKS_LA)
|
||||
mod_dingaling_la_LDFLAGS = -avoid-version -module -no-undefined -shared
|
||||
|
||||
BUILT_SOURCES=$(IKS_LA)
|
||||
|
||||
$(IKS_LA): $(IKS_DIR) $(IKS_DIR)/.update
|
||||
@cd $(IKS_DIR) && $(MAKE)
|
||||
@$(TOUCH_TARGET)
|
||||
@@ -1,11 +0,0 @@
|
||||
BASE=../../../..
|
||||
|
||||
export PTLIBDIR = $(shell /usr/bin/ptlib-config --ptlibdir)
|
||||
LOCAL_CFLAGS+=-g -I$PTLIBDIR -I/usr/include/openh323 -I. -DPTRACING=1 -D_REENTRANT -fno-exceptions
|
||||
LOCAL_LDFLAGS= -L/usr/lib -lopenh323 -lpt -lrt
|
||||
|
||||
ifeq ($(shell uname -m),x86_64)
|
||||
LOCAL_CFLAGS+=-DP_64BIT
|
||||
endif
|
||||
|
||||
include $(BASE)/build/modmake.rules
|
||||
@@ -0,0 +1,14 @@
|
||||
include $(top_srcdir)/build/modmake.rulesam
|
||||
MODNAME=mod_h323
|
||||
|
||||
PTLIBDIR = `/usr/bin/ptlib-config --ptlibdir`
|
||||
|
||||
mod_LTLIBRARIES = mod_h323.la
|
||||
mod_h323_la_SOURCES = mod_h323.c
|
||||
mod_h323_la_CFLAGS = $(AM_CFLAGS) -I$(PTLIBDIR) -I/usr/include/openh323 -I. -DPTRACING=1 -D_REENTRANT -fno-exceptions
|
||||
mod_h323_la_LIBADD = $(switch_builddir)/libfreeswitch.la
|
||||
mod_h323_la_LDFLAGS = -avoid-version -module -no-undefined -shared -L/usr/lib -lopenh323 -lpt -lrt
|
||||
|
||||
if IS64BITLINUX
|
||||
mod_h323_la_CFLAGS += -DP_64BIT
|
||||
endif
|
||||
@@ -1,57 +0,0 @@
|
||||
MODNAME := mod_khomp
|
||||
VERBOSE := 1
|
||||
|
||||
#FreeSWITCH source PATH is needed:
|
||||
# Set FREESWITCH_PATH
|
||||
|
||||
ifeq ($(strip $(FREESWITCH_PATH)),)
|
||||
BASE := ../../../../
|
||||
else
|
||||
BASE := $(FREESWITCH_PATH)
|
||||
endif
|
||||
|
||||
curr_dir := $(shell pwd)
|
||||
|
||||
versions := -DFS_VERSION_MAJOR=$(shell bash $(curr_dir)/tools/getversion.sh "SWITCH_VERSION_MAJOR" $(BASE)) -DFS_VERSION_MINOR=$(shell bash $(curr_dir)/tools/getversion.sh "SWITCH_VERSION_MINOR" $(BASE)) -DFS_VERSION_MICRO=$(shell bash $(curr_dir)/tools/getversion.sh "SWITCH_VERSION_MICRO" $(BASE))
|
||||
|
||||
LOCAL_CFLAGS = -I./ -I./include -I./commons -I./commons/base -I./support -D_REENTRANT -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -DK3L_HOSTSYSTEM -DCOMMONS_LIBRARY_USING_FREESWITCH -g -ggdb #-DDEBUG_FLAGS
|
||||
LOCAL_CFLAGS += $(versions)
|
||||
|
||||
LOCAL_LDFLAGS = -lk3l
|
||||
|
||||
LOCAL_OBJS = ./commons/base/k3lapi.o ./commons/base/k3lutil.o ./commons/base/config_options.o ./commons/base/format.o ./commons/base/strings.o ./commons/base/ringbuffer.o ./commons/base/verbose.o ./commons/base/saved_condition.o ./commons/base/regex.o ./commons/base/timer.o ./commons/base/configurator/configfile.o ./commons/base/configurator/option.o ./commons/base/configurator/section.o ./commons/base/configurator/restriction.o ./commons/base/verbose_traits.o
|
||||
LOCAL_OBJS += ./support/klog-config.o ./support/klog-options.o ./support/config_defaults.o
|
||||
LOCAL_OBJS += ./src/globals.o ./src/opt.o ./src/frame.o ./src/utils.o ./src/lock.o ./src/spec.o ./src/applications.o ./src/khomp_pvt_fxo.o ./src/khomp_pvt_gsm.o ./src/khomp_pvt_kxe1.o ./src/khomp_pvt_passive.o ./src/khomp_pvt.o ./src/logger.o ./src/cli.o
|
||||
|
||||
conf_file_name := khomp.conf.xml
|
||||
conf_file_dir := $(curr_dir)/Install/files
|
||||
conf_file_dir_alt := $(curr_dir)/conf
|
||||
conf_file_install = $(sysconfdir)/autoload_configs
|
||||
|
||||
include $(BASE)/build/modmake.rules
|
||||
|
||||
local_depend:
|
||||
@if test ! -f $(curr_dir)/commons/base/verbose_traits.hpp || test ! -f $(curr_dir)/commons/base/verbose_traits.cpp ; then \
|
||||
echo "Generating verbose_traits" ;\
|
||||
bash $(curr_dir)/commons/tools/generate-verbose-headers.sh commons/base/ include/k3l.h ;\
|
||||
fi;
|
||||
|
||||
depend_install:
|
||||
@if test "w`kserver --version 2>/dev/null | grep 2.1`" == "w" ; then \
|
||||
echo "###############################################################################" ;\
|
||||
echo "Install k3l from KHOMP." ;\
|
||||
echo "Run: $(curr_dir)/tools/getk3l.sh" ;\
|
||||
echo "###############################################################################" ;\
|
||||
exit 1;\
|
||||
fi;
|
||||
@echo "Copy $(conf_file_name)"
|
||||
@if test -d $(conf_file_install) ; then \
|
||||
if test -f $(conf_file_dir)/$(conf_file_name) ; then \
|
||||
cp $(conf_file_dir)/$(conf_file_name) $(conf_file_install)/$(conf_file_name).new ;\
|
||||
else \
|
||||
cp $(conf_file_dir_alt)/$(conf_file_name) $(conf_file_install)/$(conf_file_name).new ;\
|
||||
fi; \
|
||||
if test ! -f "$(conf_file_install)/$(conf_file_name)" ; then \
|
||||
mv $(conf_file_install)/$(conf_file_name).new $(conf_file_install)/$(conf_file_name) ;\
|
||||
fi; \
|
||||
fi;
|
||||
@@ -0,0 +1,50 @@
|
||||
include $(top_srcdir)/build/modmake.rulesam
|
||||
MODNAME=mod_khomp
|
||||
mod_LTLIBRARIES = mod_khomp.la
|
||||
mod_khomp_la_SOURCES = mod_khomp.c
|
||||
mod_khomp_la_CFLAGS = $(AM_CFLAGS)
|
||||
mod_khomp_la_CFLAGS += -I./ -I./include -I./commons -I./commons/base -I./support
|
||||
mod_khomp_la_CFLAGS += -D_REENTRANT -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -DK3L_HOSTSYSTEM -DCOMMONS_LIBRARY_USING_FREESWITCH
|
||||
mod_khomp_la_CFLAGS += -DFS_VERSION_MAJOR=`./tools/getversion.sh "SWITCH_VERSION_MAJOR" $(switch_srcdir)`
|
||||
mod_khomp_la_CFLAGS += -DFS_VERSION_MINOR=`./tools/getversion.sh "SWITCH_VERSION_MINOR" $(switch_srcdir)`
|
||||
mod_khomp_la_CFLAGS += -DFS_VERSION_MICRO=`./tools/getversion.sh "SWITCH_VERSION_MICRO" $(switch_srcdir)`
|
||||
mod_khomp_la_LIBADD = $(switch_builddir)/libfreeswitch.la
|
||||
mod_khomp_la_LDFLAGS = -avoid-version -module -no-undefined -shared -lk3l
|
||||
|
||||
|
||||
mod_khomp_la_SOURCES += ./commons/base/k3lapi.cpp ./commons/base/k3lutil.cpp ./commons/base/config_options.cpp ./commons/base/format.cpp ./commons/base/strings.cpp ./commons/base/ringbuffer.cpp ./commons/base/verbose.cpp ./commons/base/saved_condition.cpp ./commons/base/regex.cpp ./commons/base/timer.cpp ./commons/base/configurator/configfile.cpp ./commons/base/configurator/option.cpp ./commons/base/configurator/section.cpp ./commons/base/configurator/restriction.cpp ./commons/base/verbose_traits.cpp
|
||||
mod_khomp_la_SOURCES += ./support/klog-config.cpp ./support/klog-options.cpp ./support/config_defaults.cpp
|
||||
mod_khomp_la_SOURCES += ./src/globals.cpp ./src/opt.cpp ./src/frame.cpp ./src/utils.cpp ./src/lock.cpp ./src/spec.cpp ./src/applications.cpp ./src/khomp_pvt_fxo.cpp ./src/khomp_pvt_gsm.cpp ./src/khomp_pvt_kxe1.cpp ./src/khomp_pvt_passive.cpp ./src/khomp_pvt.cpp ./src/logger.cpp ./src/cli.cpp
|
||||
|
||||
conf_file_name = khomp.conf.xml
|
||||
conf_file_dir = ./Install/files
|
||||
conf_file_dir_alt = ./conf
|
||||
conf_file_install = $(sysconfdir)/autoload_configs
|
||||
|
||||
BUILT_SOURCES=verbose_traits.hpp verbose_traits.cpp
|
||||
|
||||
verbose_traits.hpp verbose_traits.cpp:
|
||||
@if test ! -f ./commons/base/verbose_traits.hpp || test ! -f ./commons/base/verbose_traits.cpp ; then \
|
||||
echo "Generating verbose_traits" ;\
|
||||
bash ./commons/tools/generate-verbose-headers.sh commons/base/ include/k3l.h ;\
|
||||
fi;
|
||||
|
||||
install:
|
||||
@if test "w`kserver --version 2>/dev/null | grep 2.1`" == "w" ; then \
|
||||
echo "###############################################################################" ;\
|
||||
echo "Install k3l from KHOMP." ;\
|
||||
echo "Run: ./tools/getk3l.sh" ;\
|
||||
echo "###############################################################################" ;\
|
||||
exit 1;\
|
||||
fi;
|
||||
@echo "Copy $(conf_file_name)"
|
||||
@if test -d $(conf_file_install) ; then \
|
||||
if test -f $(conf_file_dir)/$(conf_file_name) ; then \
|
||||
cp $(conf_file_dir)/$(conf_file_name) $(conf_file_install)/$(conf_file_name).new ;\
|
||||
else \
|
||||
cp $(conf_file_dir_alt)/$(conf_file_name) $(conf_file_install)/$(conf_file_name).new ;\
|
||||
fi; \
|
||||
if test ! -f "$(conf_file_install)/$(conf_file_name)" ; then \
|
||||
mv $(conf_file_install)/$(conf_file_name).new $(conf_file_install)/$(conf_file_name) ;\
|
||||
fi; \
|
||||
fi;
|
||||
@@ -1,2 +0,0 @@
|
||||
BASE=../../../..
|
||||
include $(BASE)/build/modmake.rules
|
||||
@@ -0,0 +1,8 @@
|
||||
include $(top_srcdir)/build/modmake.rulesam
|
||||
MODNAME=mod_loopback
|
||||
|
||||
mod_LTLIBRARIES = mod_loopback.la
|
||||
mod_loopback_la_SOURCES = mod_loopback.c
|
||||
mod_loopback_la_CFLAGS = $(AM_CFLAGS)
|
||||
mod_loopback_la_LIBADD = $(switch_builddir)/libfreeswitch.la
|
||||
mod_loopback_la_LDFLAGS = -avoid-version -module -no-undefined -shared
|
||||
@@ -1,20 +0,0 @@
|
||||
BASE=../../../..
|
||||
|
||||
PKG_DIR:=/usr/local/lib/pkgconfig
|
||||
ifeq ($(PKG_CONFIG_PATH),)
|
||||
export PKG_CONFIG_PATH:=$(PKG_DIR)
|
||||
else
|
||||
ifeq ($(findstring $(PKG_DIR),$(PKG_CONFIG_PATH)),)
|
||||
export PKG_CONFIG_PATH:=$(PKG_CONFIG_PATH):$(PKG_DIR)
|
||||
endif
|
||||
endif
|
||||
|
||||
#DEBUG_SUFFIX:=--define-variable=suffix=_d
|
||||
|
||||
LOCAL_INSERT_CFLAGS= pkg-config opal $(DEBUG_SUFFIX) --cflags
|
||||
LOCAL_CFLAGS+=-g -ggdb
|
||||
LOCAL_INSERT_LDFLAGS= pkg-config opal $(DEBUG_SUFFIX) --libs
|
||||
|
||||
include $(BASE)/build/modmake.rules
|
||||
|
||||
|
||||
@@ -0,0 +1,11 @@
|
||||
include $(top_srcdir)/build/modmake.rulesam
|
||||
MODNAME=mod_opal
|
||||
|
||||
PKG_DIR=/usr/local/lib/pkgconfig
|
||||
|
||||
#DEBUG_SUFFIX:=--define-variable=suffix=_d
|
||||
mod_LTLIBRARIES = mod_opal.la
|
||||
mod_opal_la_SOURCES = mod_opal.c
|
||||
mod_opal_la_CFLAGS = $(AM_CFLAGS) `PKG_CONFIG_PATH=$(PKG_CONFIG_PATH):$(PKG_DIR) pkg-config opal $(DEBUG_SUFFIX) --cflags`
|
||||
mod_opal_la_LIBADD = $(switch_builddir)/libfreeswitch.la
|
||||
mod_opal_la_LDFLAGS = -avoid-version -module -no-undefined -shared `pkg-config opal $(DEBUG_SUFFIX) --libs`
|
||||
@@ -1,2 +0,0 @@
|
||||
MODNAME=mod_conference
|
||||
include ../../../../build/modmake.rules
|
||||
@@ -0,0 +1,8 @@
|
||||
include $(top_srcdir)/build/modmake.rulesam
|
||||
MODNAME=mod_reference
|
||||
|
||||
mod_LTLIBRARIES = mod_reference.la
|
||||
mod_reference_la_SOURCES = mod_reference.c
|
||||
mod_reference_la_CFLAGS = $(AM_CFLAGS)
|
||||
mod_reference_la_LIBADD = $(switch_builddir)/libfreeswitch.la
|
||||
mod_reference_la_LDFLAGS = -avoid-version -module -no-undefined -shared
|
||||
@@ -1,7 +0,0 @@
|
||||
BASE=../../../..
|
||||
|
||||
LIBAMF_OBJS=libamf/src/amf0.o libamf/src/hash.o libamf/src/io.o libamf/src/ptrarray.o libamf/src/types.o
|
||||
LOCAL_OBJS=rtmp_sig.o rtmp.o rtmp_tcp.o $(LIBAMF_OBJS)
|
||||
LOCAL_CFLAGS=-Ilibamf/src
|
||||
|
||||
include $(BASE)/build/modmake.rules
|
||||
@@ -0,0 +1,8 @@
|
||||
include $(top_srcdir)/build/modmake.rulesam
|
||||
MODNAME=mod_rtmp
|
||||
mod_LTLIBRARIES = mod_rtmp.la
|
||||
mod_rtmp_la_SOURCES = mod_rtmp.c rtmp_sig.c rtmp.c rtmp_tcp.c
|
||||
mod_rtmp_la_SOURCES += libamf/src/amf0.c libamf/src/hash.c libamf/src/io.c libamf/src/ptrarray.c libamf/src/types.c
|
||||
mod_rtmp_la_CFLAGS = $(AM_CFLAGS) -Ilibamf/src
|
||||
mod_rtmp_la_LIBADD = $(switch_builddir)/libfreeswitch.la
|
||||
mod_rtmp_la_LDFLAGS = -avoid-version -module -no-undefined -shared
|
||||
@@ -1,6 +1,7 @@
|
||||
#include "amf0.h"
|
||||
|
||||
#include <string.h>
|
||||
|
||||
#include "amf0.h"
|
||||
#include "io.h"
|
||||
#include "types.h"
|
||||
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
#ifndef __AMF0_H__
|
||||
#define __AMF0_H__
|
||||
|
||||
#include "amf.h"
|
||||
|
||||
#include <stdio.h>
|
||||
#include <time.h>
|
||||
|
||||
#include "amf.h"
|
||||
|
||||
/* AMF data types */
|
||||
#define AMF0_TYPE_NUMBER 0x00
|
||||
#define AMF0_TYPE_BOOLEAN 0x01
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
#include "io.h"
|
||||
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
|
||||
#include "io.h"
|
||||
|
||||
/* callback function to mimic fread using a memory buffer */
|
||||
size_t buffer_read(void * out_buffer, size_t size, void * user_data) {
|
||||
buffer_context * ctxt = (buffer_context *)user_data;
|
||||
|
||||
@@ -0,0 +1,8 @@
|
||||
include $(top_srcdir)/build/modmake.rulesam
|
||||
MODNAME=mod_unicall
|
||||
|
||||
mod_LTLIBRARIES = mod_unicall.la
|
||||
mod_unicall_la_SOURCES = mod_unicall.c
|
||||
mod_unicall_la_CFLAGS = $(AM_CFLAGS)
|
||||
mod_unicall_la_LIBADD = $(switch_builddir)/libfreeswitch.la
|
||||
mod_unicall_la_LDFLAGS = -avoid-version -module -no-undefined -shared
|
||||
Reference in new issue
Block a user