2005-11-12 16:27:19 -05:00
|
|
|
EXTRA_DIST =
|
2009-12-17 14:14:47 -05:00
|
|
|
SUBDIRS = . src
|
2011-11-04 09:12:13 -04:00
|
|
|
AUTOMAKE_OPTIONS = foreign
|
2010-01-11 15:26:14 -05:00
|
|
|
NAME = freeswitch
|
2006-12-16 18:22:45 -05:00
|
|
|
|
2009-12-01 17:19:07 -05:00
|
|
|
AM_CFLAGS = $(SWITCH_AM_CFLAGS) $(SWITCH_ANSI_CFLAGS)
|
2007-03-12 00:21:54 -04:00
|
|
|
AM_CPPFLAGS = $(SWITCH_AM_CXXFLAGS)
|
2007-03-10 23:02:10 -05:00
|
|
|
AM_LDFLAGS = $(SWITCH_AM_LDFLAGS)
|
2007-03-11 01:36:04 -05:00
|
|
|
|
2007-12-10 18:38:42 -05:00
|
|
|
DEFAULT_SOUNDS=en-us-callie-8000
|
|
|
|
|
2009-12-10 17:27:36 -05:00
|
|
|
.DEFAULT: $(switch_builddir)/modules.conf
|
2007-10-21 21:47:02 -04:00
|
|
|
@target=`echo $@ | sed -e 's|^.*-||'`; \
|
2007-12-10 18:38:42 -05:00
|
|
|
target_prefix=`echo $@ | sed -e 's|-.*$$||'`; \
|
|
|
|
sound_perfix=`echo $@ | sed -e 's|-.*||'`; \
|
2009-11-18 14:48:09 -05:00
|
|
|
moh_version=`cat $(switch_srcdir)/build/moh_version.txt`;\
|
2007-12-10 19:11:43 -05:00
|
|
|
full_sound_dir=`echo $@ | sed -e 's|^sounds||' | sed -e 's|^-||' | sed -e 's|-install$$||'`; \
|
|
|
|
test ! -z $$full_sound_dir || full_sound_dir=`echo $(DEFAULT_SOUNDS)`; \
|
2009-12-03 14:43:38 -05:00
|
|
|
base_sound_dir=`echo $$full_sound_dir | sed -e 's|-[^-]*000$$||' ` ;\
|
|
|
|
sounds_version=`grep $$base_sound_dir $(switch_srcdir)/build/sounds_version.txt | cut -d ' ' -f2`;\
|
2009-04-20 21:11:12 -04:00
|
|
|
soundfile=`echo freeswitch-sounds-$$full_sound_dir-$$moh_version.tar.gz`; \
|
|
|
|
echo $$full_sound_dir | grep music >/dev/null || soundfile=`echo freeswitch-sounds-$$full_sound_dir-$$sounds_version.tar.gz`; \
|
2007-12-10 18:38:42 -05:00
|
|
|
if test "$$target_prefix" = "sounds"; then \
|
2012-05-21 15:47:30 -04:00
|
|
|
if test "$$target" = "install"; then \
|
|
|
|
$(GETSOUNDS) $$soundfile $(DESTDIR)$(soundsdir)/;\
|
|
|
|
else \
|
|
|
|
$(GETSOUNDS) $$soundfile ; \
|
|
|
|
fi; \
|
2007-12-10 18:38:42 -05:00
|
|
|
else \
|
2012-05-21 15:47:30 -04:00
|
|
|
if test "$$target" = "install"; then \
|
|
|
|
$(MAKE) $(AM_MAKEFLAGS) core_install && cd src/mod && $(MAKE) $(AM_MAKEFLAGS) $@ ; \
|
|
|
|
else \
|
|
|
|
$(MAKE) $(AM_MAKEFLAGS) core && cd src/mod && $(MAKE) $(AM_MAKEFLAGS) $@ ;\
|
|
|
|
fi; \
|
2007-12-10 18:38:42 -05:00
|
|
|
fi
|
2007-04-09 10:40:03 -04:00
|
|
|
|
2008-01-12 17:37:03 -05:00
|
|
|
sounds: sounds-en-us-callie-8000
|
|
|
|
sounds-install: sounds-en-us-callie-8000-install
|
2009-07-01 15:58:40 -04:00
|
|
|
sounds-ru: sounds-ru-RU-elena-8000
|
|
|
|
sounds-ru-install: sounds-ru-RU-elena-8000-install
|
2008-02-17 02:46:20 -05:00
|
|
|
moh: sounds-music-8000
|
|
|
|
moh-install: sounds-music-8000-install
|
2008-01-12 17:37:03 -05:00
|
|
|
|
2009-01-12 17:38:52 -05:00
|
|
|
hd-sounds: sounds sounds-en-us-callie-16000
|
|
|
|
hd-sounds-install: sounds-install sounds-en-us-callie-16000-install
|
2009-07-01 15:58:40 -04:00
|
|
|
hd-sounds-ru: sounds-ru sounds-ru-RU-elena-16000
|
|
|
|
hd-sounds-ru-install: sounds-ru-install sounds-ru-RU-elena-16000-install
|
2009-01-12 17:38:52 -05:00
|
|
|
hd-moh: moh sounds-music-16000
|
|
|
|
hd-moh-install: moh-install sounds-music-16000-install
|
2008-03-25 15:58:24 -04:00
|
|
|
|
2009-01-12 17:38:52 -05:00
|
|
|
uhd-sounds: hd-sounds sounds-en-us-callie-32000
|
|
|
|
uhd-sounds-install: hd-sounds-install sounds-en-us-callie-32000-install
|
2009-07-01 15:58:40 -04:00
|
|
|
uhd-sounds-ru: hd-sounds-ru sounds-ru-RU-elena-32000
|
|
|
|
uhd-sounds-ru-install: hd-sounds-ru-install sounds-ru-RU-elena-32000-install
|
2009-01-12 17:38:52 -05:00
|
|
|
uhd-moh: hd-moh sounds-music-32000
|
|
|
|
uhd-moh-install: hd-moh-install sounds-music-32000-install
|
|
|
|
|
|
|
|
cd-sounds: uhd-sounds sounds-en-us-callie-48000
|
|
|
|
cd-sounds-install: uhd-sounds-install sounds-en-us-callie-48000-install
|
2009-07-01 15:58:40 -04:00
|
|
|
cd-sounds-ru: uhd-sounds-ru sounds-ru-RU-elena-48000
|
|
|
|
cd-sounds-ru-install: uhd-sounds-ru-install sounds-ru-RU-elena-48000-install
|
2009-01-12 17:38:52 -05:00
|
|
|
cd-moh: uhd-moh sounds-music-48000
|
|
|
|
cd-moh-install: uhd-moh-install sounds-music-48000-install
|
2008-03-25 15:58:24 -04:00
|
|
|
|
2009-12-17 14:14:47 -05:00
|
|
|
# This directory's subdirectories are mostly independent; you can cd
|
|
|
|
# into them and run `make' without going through this Makefile.
|
|
|
|
# To change the values of `make' variables: instead of editing Makefiles,
|
|
|
|
# (1) if the variable is set in `config.status', edit `config.status'
|
|
|
|
# (which will cause the Makefiles to be regenerated when you run `make');
|
|
|
|
# (2) otherwise, pass the desired values on the `make' command line.
|
2009-12-28 11:01:48 -05:00
|
|
|
all-recursive: libfreeswitch.la
|
|
|
|
clean-recusive: clean_core
|
2010-01-11 16:27:41 -05:00
|
|
|
install-recursive: install-libLTLIBRARIES install-binPROGRAMS
|
2012-04-16 17:38:48 -04:00
|
|
|
$(RECURSIVE_TARGETS): freeswitch
|
2009-12-17 14:14:47 -05:00
|
|
|
@failcom='exit 1'; \
|
|
|
|
for f in x $$MAKEFLAGS; do \
|
|
|
|
case $$f in \
|
|
|
|
*=* | --[!k]*);; \
|
|
|
|
*k*) failcom='fail=yes';; \
|
|
|
|
esac; \
|
|
|
|
done; \
|
|
|
|
dot_seen=no; \
|
|
|
|
target=`echo $@ | sed s/-recursive//`; \
|
|
|
|
list='$(SUBDIRS)'; for subdir in $$list; do \
|
|
|
|
echo "Making $$target in $$subdir"; \
|
|
|
|
if test "$$subdir" = "."; then \
|
|
|
|
dot_seen=yes; \
|
|
|
|
local_target="$$target-am"; \
|
|
|
|
else \
|
|
|
|
local_target="$$target"; \
|
|
|
|
fi; \
|
|
|
|
(cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
|
|
|
|
|| eval $$failcom; \
|
|
|
|
done; \
|
|
|
|
if test "$$dot_seen" = "no"; then \
|
|
|
|
$(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \
|
|
|
|
fi; \
|
|
|
|
if test -z "$$fail" ; then \
|
|
|
|
cd $(top_builddir)/build && $(MAKE) $(AM_MAKEFLAGS) $$target || exit 1; \
|
2010-12-08 12:36:26 -05:00
|
|
|
else \
|
|
|
|
exit 1; \
|
2009-12-17 14:14:47 -05:00
|
|
|
fi ;
|
2009-12-17 11:53:25 -05:00
|
|
|
|
2010-01-11 15:26:14 -05:00
|
|
|
CORE_CFLAGS = `$(switch_builddir)/libs/apr/apr-1-config --cflags --cppflags --includes`
|
|
|
|
CORE_CFLAGS += `$(switch_builddir)/libs/apr-util/apu-1-config --includes`
|
2012-09-13 16:01:01 -04:00
|
|
|
CORE_CFLAGS += -I$(switch_srcdir)/libs/libtpl-1.5/src
|
2010-01-11 15:26:14 -05:00
|
|
|
CORE_CFLAGS += -I$(switch_srcdir)/libs/stfu
|
|
|
|
CORE_CFLAGS += -I$(switch_builddir)/libs/sqlite
|
|
|
|
CORE_CFLAGS += -I$(switch_srcdir)/libs/pcre
|
|
|
|
CORE_CFLAGS += -I$(switch_srcdir)/libs/speex/include -Ilibs/speex/include
|
|
|
|
CORE_CFLAGS += -I$(switch_srcdir)/libs/srtp/include
|
|
|
|
CORE_CFLAGS += -I$(switch_srcdir)/libs/srtp/crypto/include -Ilibs/srtp/crypto/include
|
2012-09-01 11:37:46 -04:00
|
|
|
CORE_CFLAGS += -I$(switch_srcdir)/libs/spandsp/src -I$(switch_srcdir)/libs/tiff-4.0.2/libtiff
|
2010-01-11 15:26:14 -05:00
|
|
|
|
|
|
|
CORE_LIBS = libs/apr-util/libaprutil-1.la libs/apr/libapr-1.la
|
|
|
|
CORE_LIBS += libs/sqlite/libsqlite3.la libs/pcre/libpcre.la libs/speex/libspeex/libspeexdsp.la
|
2011-11-29 14:35:16 -05:00
|
|
|
|
2011-05-02 12:34:13 -04:00
|
|
|
if ENABLE_SRTP
|
|
|
|
CORE_CFLAGS += -DENABLE_SRTP
|
2010-01-11 15:26:14 -05:00
|
|
|
CORE_LIBS += libs/srtp/libsrtp.la
|
2011-05-02 12:34:13 -04:00
|
|
|
endif
|
2010-01-11 15:26:14 -05:00
|
|
|
|
|
|
|
MOD_LINK = $(switch_srcdir)/libfreeswitch.la
|
|
|
|
CLEANFILES = src/include/switch_version.h src/include/switch_swigable_cpp.h
|
|
|
|
BUILT_SOURCES = src/include/switch_version.h src/include/switch_swigable_cpp.h
|
|
|
|
|
2010-01-16 22:11:56 -05:00
|
|
|
if HAVE_ODBC
|
2010-01-11 15:26:14 -05:00
|
|
|
CORE_CFLAGS += -DSWITCH_HAVE_ODBC $(ODBC_INC_FLAGS)
|
2009-11-30 07:31:24 -05:00
|
|
|
endif
|
|
|
|
|
2010-01-16 22:11:56 -05:00
|
|
|
if HAVE_LIBEDIT
|
2010-01-11 15:26:14 -05:00
|
|
|
CORE_CFLAGS += -I$(switch_srcdir)/libs/libedit/src -DSWITCH_HAVE_LIBEDIT
|
|
|
|
CORE_LIBS += libs/libedit/src/.libs/libedit.a
|
|
|
|
endif
|
2007-03-09 15:44:13 -05:00
|
|
|
|
2011-06-30 17:24:30 -04:00
|
|
|
if ENABLE_TIMERFD_WRAPPER
|
|
|
|
CORE_CFLAGS += -DTIMERFD_WRAP
|
|
|
|
endif
|
|
|
|
|
2011-11-29 14:35:16 -05:00
|
|
|
if CURL_BUILTIN
|
|
|
|
CORE_LIBS += libs/curl/lib/libcurl.la
|
|
|
|
endif
|
|
|
|
|
2010-01-11 15:26:14 -05:00
|
|
|
##
|
|
|
|
## libfreeswitch
|
|
|
|
##
|
|
|
|
lib_LTLIBRARIES = libfreeswitch.la
|
|
|
|
libfreeswitch_la_CFLAGS = $(CORE_CFLAGS) $(AM_CFLAGS)
|
2011-11-29 16:38:52 -05:00
|
|
|
libfreeswitch_la_LDFLAGS = -version-info 1:0:0 $(AM_LDFLAGS) $(PLATFORM_CORE_LDFLAGS)
|
2011-11-04 16:04:29 -04:00
|
|
|
libfreeswitch_la_LIBADD = $(CORE_LIBS) $(PLATFORM_CORE_LIBS)
|
2007-04-24 14:00:08 -04:00
|
|
|
libfreeswitch_la_DEPENDENCIES = $(BUILT_SOURCES)
|
2005-11-12 16:27:19 -05:00
|
|
|
|
2010-01-16 22:11:56 -05:00
|
|
|
if HAVE_ODBC
|
2010-01-11 15:26:14 -05:00
|
|
|
libfreeswitch_la_LDFLAGS += $(ODBC_LIB_FLAGS)
|
|
|
|
endif
|
|
|
|
|
|
|
|
if ENABLE_ZRTP
|
2012-04-05 00:10:55 -04:00
|
|
|
CORE_CFLAGS += -I$(switch_srcdir)/libs/libzrtp/third_party/bgaes
|
|
|
|
CORE_CFLAGS += -I$(switch_srcdir)/libs/libzrtp/third_party/bnlib
|
2012-04-05 02:08:21 -04:00
|
|
|
CORE_CFLAGS += -isystem $(switch_srcdir)/libs/libzrtp/include
|
2012-05-27 08:36:15 -04:00
|
|
|
ZRTP_LDFLAGS = -L$(switch_srcdir)/libs/libzrtp/third_party/bnlib
|
|
|
|
ZRTP_LDFLAGS += -L$(switch_srcdir)/libs/libzrtp/projects/gnu/build
|
2012-04-05 03:10:07 -04:00
|
|
|
ZRTP_LIBS = -lbn -lzrtp
|
|
|
|
libfreeswitch_la_LDFLAGS += $(ZRTP_LDFLAGS)
|
|
|
|
libfreeswitch_la_LIBADD += $(ZRTP_LIBS)
|
2012-04-05 01:02:01 -04:00
|
|
|
CORE_LIBS += libs/libzrtp/projects/gnu/build/libzrtp.a
|
2012-04-05 02:32:38 -04:00
|
|
|
LIBS += libs/libzrtp/third_party/bnlib/libbn.a
|
2010-01-11 15:26:14 -05:00
|
|
|
endif
|
|
|
|
|
|
|
|
library_includedir = $(includedir)
|
|
|
|
library_include_HEADERS = \
|
|
|
|
src/include/switch_am_config.h \
|
|
|
|
src/include/switch.h \
|
|
|
|
src/include/switch_apr.h \
|
|
|
|
src/include/switch_buffer.h \
|
|
|
|
src/include/switch_caller.h \
|
|
|
|
src/include/switch_channel.h \
|
|
|
|
src/include/switch_console.h \
|
|
|
|
src/include/switch_core_event_hook.h \
|
|
|
|
src/include/switch_scheduler.h \
|
|
|
|
src/include/switch_core.h \
|
|
|
|
src/include/switch_core_db.h \
|
|
|
|
src/include/switch_mprintf.h \
|
|
|
|
src/include/switch_config.h \
|
|
|
|
src/include/switch_event.h \
|
|
|
|
src/include/switch_frame.h \
|
|
|
|
src/include/switch_ivr.h \
|
|
|
|
src/include/switch_dso.h \
|
|
|
|
src/include/switch_loadable_module.h \
|
|
|
|
src/include/switch_module_interfaces.h \
|
|
|
|
src/include/switch_platform.h \
|
|
|
|
src/include/switch_resample.h \
|
|
|
|
src/include/switch_regex.h \
|
|
|
|
src/include/switch_types.h \
|
|
|
|
src/include/switch_utils.h \
|
|
|
|
src/include/switch_rtp.h \
|
2010-06-15 19:12:47 -04:00
|
|
|
src/include/switch_rtcp_frame.h \
|
2010-01-11 15:26:14 -05:00
|
|
|
src/include/switch_stun.h \
|
|
|
|
src/include/switch_nat.h \
|
|
|
|
src/include/switch_log.h \
|
|
|
|
src/include/switch_xml.h \
|
|
|
|
src/include/switch_xml_config.h \
|
|
|
|
src/include/switch_cpp.h \
|
2010-06-29 12:49:57 -04:00
|
|
|
src/include/switch_json.h \
|
2010-01-11 15:26:14 -05:00
|
|
|
libs/libteletone/src/libteletone_detect.h \
|
|
|
|
libs/libteletone/src/libteletone_generate.h \
|
|
|
|
libs/libteletone/src/libteletone.h \
|
2012-09-13 16:01:01 -04:00
|
|
|
libs/libtpl-1.5/src/tpl.h \
|
2010-04-01 22:31:14 -04:00
|
|
|
src/include/switch_limit.h \
|
2012-09-29 21:48:48 -04:00
|
|
|
src/include/switch_odbc.h \
|
|
|
|
src/include/switch_pgsql.h
|
2010-01-11 15:26:14 -05:00
|
|
|
|
|
|
|
nodist_libfreeswitch_la_SOURCES = \
|
|
|
|
src/include/switch_frame.h \
|
|
|
|
src/include/switch_swigable_cpp.h \
|
|
|
|
src/include/switch_version.h
|
|
|
|
|
|
|
|
libfreeswitch_la_SOURCES = \
|
|
|
|
src/switch_apr.c \
|
|
|
|
src/switch_buffer.c \
|
|
|
|
src/switch_caller.c \
|
|
|
|
src/switch_channel.c \
|
|
|
|
src/switch_console.c \
|
|
|
|
src/switch_mprintf.c \
|
|
|
|
src/switch_core_media_bug.c \
|
|
|
|
src/switch_core_timer.c \
|
|
|
|
src/switch_core_asr.c \
|
|
|
|
src/switch_core_event_hook.c \
|
|
|
|
src/switch_core_speech.c \
|
|
|
|
src/switch_core_memory.c \
|
|
|
|
src/switch_core_codec.c \
|
|
|
|
src/switch_core_file.c \
|
|
|
|
src/switch_core_hash.c \
|
|
|
|
src/switch_core_sqldb.c \
|
|
|
|
src/switch_core_session.c \
|
|
|
|
src/switch_core_directory.c \
|
|
|
|
src/switch_core_state_machine.c \
|
|
|
|
src/switch_core_io.c \
|
|
|
|
src/switch_core_rwlock.c \
|
|
|
|
src/switch_core_port_allocator.c \
|
|
|
|
src/switch_core.c \
|
|
|
|
src/switch_scheduler.c \
|
|
|
|
src/switch_core_db.c \
|
|
|
|
src/switch_dso.c \
|
|
|
|
src/switch_loadable_module.c \
|
|
|
|
src/switch_utils.c \
|
|
|
|
src/switch_event.c \
|
|
|
|
src/switch_resample.c \
|
|
|
|
src/switch_regex.c \
|
|
|
|
src/switch_rtp.c \
|
|
|
|
src/switch_ivr_bridge.c \
|
|
|
|
src/switch_ivr_originate.c \
|
|
|
|
src/switch_ivr_async.c \
|
|
|
|
src/switch_ivr_play_say.c \
|
2010-03-07 16:26:36 -05:00
|
|
|
src/switch_ivr_say.c \
|
2010-01-11 15:26:14 -05:00
|
|
|
src/switch_ivr_menu.c \
|
|
|
|
src/switch_ivr.c \
|
|
|
|
src/switch_stun.c \
|
|
|
|
src/switch_nat.c \
|
|
|
|
src/switch_log.c \
|
|
|
|
src/switch_xml.c \
|
|
|
|
src/switch_xml_config.c \
|
|
|
|
src/switch_config.c \
|
|
|
|
src/switch_time.c \
|
|
|
|
src/switch_odbc.c \
|
2012-09-29 21:48:48 -04:00
|
|
|
src/switch_pgsql.c \
|
2010-04-01 22:31:14 -04:00
|
|
|
src/switch_limit.c \
|
2010-01-11 15:26:14 -05:00
|
|
|
src/g711.c \
|
|
|
|
src/switch_pcm.c \
|
2010-06-29 12:49:57 -04:00
|
|
|
src/switch_profile.c \
|
|
|
|
src/switch_json.c \
|
2011-11-29 16:38:52 -05:00
|
|
|
src/switch_curl.c \
|
2012-09-13 16:01:01 -04:00
|
|
|
libs/libtpl-1.5/src/tpl.c \
|
2010-01-11 15:26:14 -05:00
|
|
|
libs/stfu/stfu.c \
|
|
|
|
libs/libteletone/src/libteletone_detect.c \
|
|
|
|
libs/libteletone/src/libteletone_generate.c \
|
|
|
|
libs/miniupnpc/miniwget.c \
|
|
|
|
libs/miniupnpc/minixml.c \
|
|
|
|
libs/miniupnpc/igd_desc_parse.c \
|
|
|
|
libs/miniupnpc/minisoap.c \
|
|
|
|
libs/miniupnpc/miniupnpc.c \
|
|
|
|
libs/miniupnpc/upnpreplyparse.c \
|
|
|
|
libs/miniupnpc/upnpcommands.c \
|
|
|
|
libs/miniupnpc/minissdpc.c \
|
|
|
|
libs/miniupnpc/upnperrors.c \
|
|
|
|
libs/libnatpmp/natpmp.c \
|
2010-12-10 18:48:40 -05:00
|
|
|
libs/libnatpmp/getgateway.c\
|
2011-01-11 13:12:15 -05:00
|
|
|
libs/spandsp/src/plc.c \
|
|
|
|
libs/spandsp/src/bit_operations.c
|
2007-03-11 01:36:04 -05:00
|
|
|
|
2010-01-11 15:26:14 -05:00
|
|
|
if ENABLE_CPP
|
|
|
|
libfreeswitch_la_SOURCES += src/switch_cpp.cpp
|
|
|
|
endif
|
2007-03-10 23:02:10 -05:00
|
|
|
|
2010-01-11 15:26:14 -05:00
|
|
|
$(top_builddir)/libfreeswitch_la-switch_console.lo: src/include/switch_version.h
|
|
|
|
|
|
|
|
$(libfreeswitch_la_SOURCES): $(CORE_LIBS) $(switch_builddir)/quiet_libtool $(switch_builddir)/modules.conf
|
|
|
|
|
|
|
|
src/include/switch_swigable_cpp.h: $(switch_srcdir)/src/include/switch_cpp.h
|
2010-05-10 14:07:24 -04:00
|
|
|
cat $(switch_srcdir)/src/include/switch_cpp.h | perl $(switch_srcdir)/build/strip.pl > $(switch_srcdir)/src/include/switch_swigable_cpp.h
|
|
|
|
# $(CC) -E $(switch_srcdir)/src/include/switch_cpp.h \
|
|
|
|
# -I$(switch_srcdir)/src/include -I$(switch_srcdir)/libs/libteletone/src \
|
|
|
|
# -DSWITCH_DECLARE_CLASS= -DSWITCH_DECLARE\(x\)=x -DSWITCH_DECLARE_CONSTRUCTOR= \
|
|
|
|
# -DSWITCH_DECLARE_NONSTD\(x\)=x 2>/dev/null | grep -v "^#" > src/include/switch_swigable_cpp.h
|
2010-01-11 15:26:14 -05:00
|
|
|
|
|
|
|
##
|
|
|
|
## Applications
|
|
|
|
##
|
2010-10-12 12:35:44 -04:00
|
|
|
bin_PROGRAMS = freeswitch fs_cli fs_ivrd tone2wav fs_encode
|
2010-01-11 15:26:14 -05:00
|
|
|
|
|
|
|
##
|
|
|
|
## fs_cli ()
|
|
|
|
##
|
2010-12-16 12:33:38 -05:00
|
|
|
fs_cli_SOURCES = libs/esl/src/esl.c libs/esl/src/esl_config.c libs/esl/src/esl_event.c \
|
|
|
|
libs/esl/src/esl_threadmutex.c libs/esl/fs_cli.c libs/esl/src/esl_json.c libs/esl/src/esl_buffer.c
|
2012-09-24 15:38:06 -04:00
|
|
|
fs_cli_CFLAGS = $(AM_CFLAGS) -I$(switch_srcdir)/libs/esl/src/include
|
2010-06-17 12:49:16 -04:00
|
|
|
fs_cli_LDFLAGS = $(AM_LDFLAGS) -lpthread $(ESL_LDFLAGS) -lm
|
2010-01-11 15:26:14 -05:00
|
|
|
|
2010-01-16 22:11:56 -05:00
|
|
|
if HAVE_LIBEDIT
|
2009-11-23 19:08:40 -05:00
|
|
|
fs_cli_CFLAGS += -DHAVE_EDITLINE -I$(switch_srcdir)/libs/libedit/src
|
2010-01-11 15:26:14 -05:00
|
|
|
fs_cli_LDADD = libs/libedit/src/.libs/libedit.a
|
2008-02-22 19:26:21 -05:00
|
|
|
endif
|
2007-05-02 11:43:17 -04:00
|
|
|
|
2011-11-07 10:39:20 -05:00
|
|
|
|
2010-10-12 12:35:44 -04:00
|
|
|
##
|
2010-10-12 14:21:08 -04:00
|
|
|
## fs_encode ()
|
2010-10-12 12:35:44 -04:00
|
|
|
##
|
|
|
|
fs_encode_SOURCES = src/fs_encode.c
|
2011-11-07 10:39:20 -05:00
|
|
|
fs_encode_CFLAGS = $(AM_CFLAGS)
|
2011-11-04 16:04:29 -04:00
|
|
|
fs_encode_LDFLAGS = $(AM_LDFLAGS)
|
2011-11-07 10:39:20 -05:00
|
|
|
fs_encode_LDADD = libfreeswitch.la $(CORE_LIBS)
|
|
|
|
|
|
|
|
if HAVE_ODBC
|
|
|
|
fs_encode_LDADD += $(ODBC_LIB_FLAGS)
|
|
|
|
endif
|
|
|
|
|
2010-10-12 12:35:44 -04:00
|
|
|
|
2010-09-14 12:48:43 -04:00
|
|
|
##
|
|
|
|
## tone2wav ()
|
|
|
|
##
|
|
|
|
tone2wav_SOURCES = src/tone2wav.c
|
|
|
|
tone2wav_CFLAGS = $(AM_CFLAGS)
|
2011-11-04 16:04:29 -04:00
|
|
|
tone2wav_LDFLAGS = $(AM_LDFLAGS)
|
2011-11-07 10:39:20 -05:00
|
|
|
tone2wav_LDADD = libfreeswitch.la $(CORE_LIBS)
|
|
|
|
|
|
|
|
if HAVE_ODBC
|
|
|
|
tone2wav_LDADD += $(ODBC_LIB_FLAGS)
|
|
|
|
endif
|
|
|
|
|
2010-09-14 12:48:43 -04:00
|
|
|
|
2010-01-11 15:26:14 -05:00
|
|
|
##
|
|
|
|
## fs_ivrd ()
|
|
|
|
##
|
2010-12-16 12:33:38 -05:00
|
|
|
fs_ivrd_SOURCES = libs/esl/src/esl.c libs/esl/src/esl_config.c libs/esl/src/esl_event.c \
|
|
|
|
libs/esl/src/esl_threadmutex.c libs/esl/ivrd.c libs/esl/src/esl_json.c libs/esl/src/esl_buffer.c
|
2010-01-11 15:26:14 -05:00
|
|
|
fs_ivrd_CFLAGS = $(AM_CFLAGS) -I$(switch_srcdir)/libs/esl/src/include
|
2010-06-17 12:49:16 -04:00
|
|
|
fs_ivrd_LDFLAGS = $(AM_LDFLAGS) -lpthread $(ESL_LDFLAGS) -lm
|
2007-05-02 11:43:17 -04:00
|
|
|
|
2010-01-11 15:26:14 -05:00
|
|
|
##
|
|
|
|
## freeswitch ()
|
|
|
|
##
|
|
|
|
nodist_freeswitch_SOURCES = src/include/switch_version.h
|
|
|
|
freeswitch_SOURCES = src/switch.c
|
|
|
|
freeswitch_CFLAGS = $(AM_CFLAGS) $(CORE_CFLAGS)
|
|
|
|
freeswitch_LDFLAGS = $(AM_LDFLAGS) -lpthread -rpath $(libdir)
|
|
|
|
freeswitch_LDADD = libfreeswitch.la libs/apr/libapr-1.la
|
2007-04-30 16:37:41 -04:00
|
|
|
|
2010-01-16 22:11:56 -05:00
|
|
|
if HAVE_LIBEDIT
|
2010-01-11 15:26:14 -05:00
|
|
|
freeswitch_CFLAGS += -Ilibs/libedit/src -DSWITCH_HAVE_LIBEDIT
|
|
|
|
freeswitch_LDADD += libs/libedit/src/.libs/libedit.a
|
2009-05-20 19:04:05 -04:00
|
|
|
endif
|
|
|
|
|
2011-11-07 10:39:20 -05:00
|
|
|
if HAVE_ODBC
|
|
|
|
freeswitch_LDADD += $(ODBC_LIB_FLAGS)
|
|
|
|
endif
|
|
|
|
|
2010-01-11 15:26:14 -05:00
|
|
|
|
|
|
|
##
|
|
|
|
## Scripts
|
|
|
|
##
|
2008-01-16 09:27:03 -05:00
|
|
|
bin_SCRIPTS = scripts/gentls_cert scripts/fsxs
|
2007-04-30 16:37:41 -04:00
|
|
|
|
2010-01-11 15:26:14 -05:00
|
|
|
scripts/fsxs: scripts/fsxs.in
|
|
|
|
@echo creating fsxs
|
|
|
|
@sed -e "s,@MODULES_DIR\@,@modulesdir@," \
|
|
|
|
-e "s,@LIB_DIR\@,@libdir@," \
|
|
|
|
-e "s,@BIN_DIR\@,@bindir@," \
|
|
|
|
-e "s,@INC_DIR\@,@includedir@," \
|
|
|
|
-e "s,@CFG_DIR\@,@sysconfdir@," \
|
|
|
|
-e "s,@DB_DIR\@,@dbdir@," \
|
|
|
|
-e "s,@PREFIX\@,@prefix@," \
|
|
|
|
-e "s,@CC\@,$(CC)," \
|
|
|
|
-e "s,@LD\@,$(CC)," \
|
|
|
|
-e "s,@INSTALL\@,$(INSTALL)," \
|
|
|
|
-e "s,@MKINSTALLDIRS\@,$(mkdir_p)," \
|
|
|
|
\
|
|
|
|
-e "s|@CFLAGS\@|$(CFLAGS) `./libs/apr/apr-1-config --cflags --cppflags`|" \
|
|
|
|
-e "s|@INCLUDES\@|-I$(prefix)/include|" \
|
|
|
|
-e "s|@SOLINK\@|$(SOLINK)|" \
|
|
|
|
-e "s|@LDFLAGS\@|-L$(prefix)/lib|" \
|
2011-01-22 19:42:39 -05:00
|
|
|
-e "s|@LIBS\@||" \
|
2010-01-11 15:26:14 -05:00
|
|
|
$(top_srcdir)/scripts/fsxs.in > scripts/fsxs
|
2007-10-03 16:45:59 -04:00
|
|
|
|
2010-01-11 15:26:14 -05:00
|
|
|
##
|
|
|
|
## misc
|
|
|
|
##
|
2010-01-11 23:43:39 -05:00
|
|
|
|
2011-02-19 17:07:22 -05:00
|
|
|
pkgconfigdir = @pkgconfigdir@
|
2010-01-11 23:43:39 -05:00
|
|
|
pkgconfig_DATA = build/freeswitch.pc
|
|
|
|
|
2010-01-11 15:26:14 -05:00
|
|
|
$(switch_builddir)/modules.conf:
|
|
|
|
if test -f $@; then touch $@; else cp $(switch_srcdir)/build/modules.conf.in $@ ;fi
|
2006-03-07 15:09:10 -05:00
|
|
|
|
2010-01-12 20:06:18 -05:00
|
|
|
$(OUR_MODULES): $(switch_builddir)/modules.conf libfreeswitch.la
|
2010-01-11 15:26:14 -05:00
|
|
|
@set fnord $$MAKEFLAGS; amf=$$2; \
|
|
|
|
(cd src/mod && $(MAKE) $(AM_MAKEFLAGS) $@) \
|
|
|
|
|| case "$$amf" in *=*) exit 1;; *k*) fail=yes;; *) exit 1;; esac; \
|
|
|
|
test -z "$$fail"
|
2007-03-18 15:23:09 -04:00
|
|
|
|
|
|
|
$(switch_builddir)/quiet_libtool: $(switch_builddir)/libtool
|
2009-11-29 00:50:59 -05:00
|
|
|
@cat libtool | sed -e 's|$$show "$$command"|if test -z "$$suppress_output" ; then $$show "Compiling $$srcfile ..." ; fi|' > $(switch_builddir)/quiet_libtool
|
2007-03-17 15:02:26 -04:00
|
|
|
|
2012-06-14 18:40:01 -04:00
|
|
|
build/print_git_revision: build/print_git_revision.c
|
|
|
|
$(CC) -o $@ $<
|
|
|
|
|
|
|
|
src/include/switch_version.h: src/include/switch_version.h.in Makefile build/print_git_revision $(libfreeswitch_la_SOURCES) $(library_include_HEADERS)
|
2012-06-11 12:16:50 -04:00
|
|
|
@cat $< > $@; \
|
2012-06-16 15:30:27 -04:00
|
|
|
if [ -d .git ] && [ -n "$$(which git)" ]; then \
|
2012-06-14 18:40:01 -04:00
|
|
|
xver="$$(./build/print_git_revision)"; \
|
2012-07-20 03:33:40 -04:00
|
|
|
xhver="$$(./build/print_git_revision -h)"; \
|
|
|
|
sed \
|
2012-08-20 08:59:44 -04:00
|
|
|
-e "/#define *SWITCH_VERSION_REVISION[^a-zA-Z0-9_]/{s/\"\([^\"]*\)\"/\"\1$$xver\"/;}" \
|
|
|
|
-e "/#define *SWITCH_VERSION_REVISION_HUMAN[^a-zA-Z0-9_]/{s/\"\([^\"]*\)\"/\"\1$$xhver\"/;}" \
|
2012-06-11 12:16:50 -04:00
|
|
|
$< > $@; \
|
|
|
|
fi;
|
2010-01-11 15:26:14 -05:00
|
|
|
|
|
|
|
##
|
|
|
|
## Dependency targets
|
|
|
|
##
|
|
|
|
libs/libedit/src/.libs/libedit.a:
|
|
|
|
cd libs/libedit && $(MAKE)
|
|
|
|
|
2012-04-05 01:15:01 -04:00
|
|
|
libs/libzrtp/projects/gnu/build/libzrtp.a:
|
2012-04-05 01:13:45 -04:00
|
|
|
cd libs/libzrtp/projects/gnu && $(MAKE)
|
|
|
|
|
2011-11-30 12:21:08 -05:00
|
|
|
libs/curl/Makefile:
|
|
|
|
cd libs/curl && sh ./configure.gnu --prefix=$(prefix)
|
|
|
|
|
|
|
|
libs/curl/lib/libcurl.la: libs/curl libs/curl/Makefile
|
2011-11-29 14:35:16 -05:00
|
|
|
@cd libs/curl && $(MAKE)
|
|
|
|
@$(TOUCH_TARGET)
|
|
|
|
|
2010-01-11 15:26:14 -05:00
|
|
|
libs/apr/libapr-1.la: libs/apr libs/apr/.update
|
2012-09-27 14:37:15 -04:00
|
|
|
touch src/include/switch.h
|
2010-01-11 15:26:14 -05:00
|
|
|
@cd libs/apr && $(MAKE)
|
|
|
|
@$(TOUCH_TARGET)
|
|
|
|
|
|
|
|
libs/apr-util/libaprutil-1.la: libs/apr-util libs/apr-util/.update libs/apr/libapr-1.la
|
2012-09-27 14:37:15 -04:00
|
|
|
touch src/include/switch.h
|
2010-01-11 15:26:14 -05:00
|
|
|
@cd libs/apr-util && $(MAKE)
|
|
|
|
@$(TOUCH_TARGET)
|
|
|
|
|
|
|
|
libs/speex/libspeex/libspeexdsp.la: libs/speex/.update
|
2012-09-27 14:37:15 -04:00
|
|
|
touch src/include/switch.h
|
2010-01-11 15:26:14 -05:00
|
|
|
@cd libs/speex && $(MAKE)
|
|
|
|
@$(TOUCH_TARGET)
|
|
|
|
|
|
|
|
libs/sqlite/libsqlite3.la: libs/sqlite libs/sqlite/.update
|
2012-09-27 14:37:15 -04:00
|
|
|
touch src/include/switch.h
|
2010-01-11 15:26:14 -05:00
|
|
|
@cd libs/sqlite && $(MAKE) CFLAGS="$(SWITCH_AM_CFLAGS)"
|
|
|
|
@$(TOUCH_TARGET)
|
|
|
|
|
|
|
|
libs/pcre/libpcre.la: libs/pcre libs/pcre/.update
|
2012-09-27 14:37:15 -04:00
|
|
|
touch src/include/switch.h
|
2010-01-11 15:26:14 -05:00
|
|
|
@cd libs/pcre && $(MAKE)
|
|
|
|
@$(TOUCH_TARGET)
|
2008-06-30 14:56:29 -04:00
|
|
|
|
2010-01-11 15:26:14 -05:00
|
|
|
libs/srtp/libsrtp.la: libs/srtp libs/srtp/.update
|
2012-09-27 14:37:15 -04:00
|
|
|
touch src/include/switch.h
|
2010-01-11 15:26:14 -05:00
|
|
|
@cd libs/srtp && $(MAKE)
|
|
|
|
@$(TOUCH_TARGET)
|
|
|
|
|
|
|
|
##
|
|
|
|
## helper targets
|
|
|
|
##
|
2008-06-30 14:56:29 -04:00
|
|
|
yaml-files:
|
2010-01-11 15:26:14 -05:00
|
|
|
@echo `mkdir $(DESTDIR)$(sysconfdir)/yaml 2>/dev/null`
|
2012-01-09 15:13:57 -05:00
|
|
|
$(INSTALL) -m 644 $(switch_srcdir)/conf/default/yaml/*.yaml $(DESTDIR)$(sysconfdir)/yaml
|
2008-06-30 14:56:29 -04:00
|
|
|
|
2008-05-16 14:40:39 -04:00
|
|
|
vm-sync:
|
2010-01-11 15:26:14 -05:00
|
|
|
test -d $(DESTDIR)$(sysconfdir) || $(mkinstalldirs) $(DESTDIR)$(sysconfdir)
|
|
|
|
test -d $(DESTDIR)$(sysconfdir)/lang || $(mkinstalldirs) $(DESTDIR)$(sysconfdir)/lang
|
|
|
|
test -d $(DESTDIR)$(sysconfdir)/lang/en || $(mkinstalldirs) $(DESTDIR)$(sysconfdir)/lang/en
|
|
|
|
test -d $(DESTDIR)$(sysconfdir)/lang/en/demo || $(mkinstalldirs) $(DESTDIR)$(sysconfdir)/lang/en/demo
|
|
|
|
test -d $(DESTDIR)$(sysconfdir)/lang/en/vm || $(mkinstalldirs) $(DESTDIR)$(sysconfdir)/lang/en/vm
|
2012-03-26 11:45:43 -04:00
|
|
|
$(INSTALL) -m 644 $(switch_srcdir)/conf/vanilla/lang/en/vm/* $(DESTDIR)$(sysconfdir)/lang/en/vm
|
|
|
|
$(INSTALL) -m 644 $(switch_srcdir)/conf/vanilla/lang/en/demo/* $(DESTDIR)$(sysconfdir)/lang/en/demo
|
2008-05-16 14:40:39 -04:00
|
|
|
|
2012-01-09 15:13:57 -05:00
|
|
|
config-%:
|
2010-01-11 15:26:14 -05:00
|
|
|
test -d $(DESTDIR)$(sysconfdir) || $(mkinstalldirs) $(DESTDIR)$(sysconfdir)
|
2012-01-09 15:13:57 -05:00
|
|
|
for conffile in `cd $(switch_srcdir)/conf/$* && find . -name \*.xml && find . -name \*.conf && find . -name \*.tpl && find . -name \*.ttml && find . -name mime.types` ; do \
|
2010-01-13 13:22:50 -05:00
|
|
|
dir=`echo $$conffile | sed -e 's|^\.||' | sed -e 's|/[^/]*$$||'`; \
|
|
|
|
filename=`echo $$conffile | sed -e 's|^\.||' | sed -e 's|^.*/||'`; \
|
|
|
|
test -d $(DESTDIR)$(sysconfdir)$$dir || $(mkinstalldirs) $(DESTDIR)$(sysconfdir)$$dir ; \
|
|
|
|
test -f $(DESTDIR)$(sysconfdir)$$dir/$$filename || \
|
|
|
|
test -f $(DESTDIR)$(sysconfdir)$$dir/$$filename.noload || \
|
2012-01-09 15:13:57 -05:00
|
|
|
$(INSTALL) -m 644 $(switch_srcdir)/conf/$*/$$dir/$$filename $(DESTDIR)$(sysconfdir)$$dir; \
|
2007-12-18 15:57:52 -05:00
|
|
|
done
|
|
|
|
|
2012-01-09 15:13:57 -05:00
|
|
|
samples-conf: config-vanilla
|
|
|
|
|
2007-12-18 15:57:52 -05:00
|
|
|
samples-htdocs:
|
2010-01-11 15:26:14 -05:00
|
|
|
test -d $(DESTDIR)$(htdocsdir) || $(mkinstalldirs) $(DESTDIR)$(htdocsdir)
|
2012-03-15 14:57:19 -04:00
|
|
|
for htdocsfile in `cd $(switch_srcdir)/htdocs && find . -type f -name \* | sed -e 's|^\.||'` ; do \
|
2010-01-13 13:22:50 -05:00
|
|
|
dir=`echo $$htdocsfile | sed -e 's|/[^/]*$$||'`; \
|
2007-11-28 23:07:41 -05:00
|
|
|
filename=`echo $$htdocsfile | sed -e 's|^.*/||'`; \
|
2010-01-13 13:22:50 -05:00
|
|
|
test -d $(DESTDIR)$(htdocsdir)$$dir || $(mkinstalldirs) $(DESTDIR)$(htdocsdir)$$dir ; \
|
|
|
|
test -f $(DESTDIR)$(htdocsdir)$$dir/$$filename || $(INSTALL) -m 644 $(switch_srcdir)/htdocs/$$dir/$$filename $(DESTDIR)$(htdocsdir)$$dir 2>/dev/null; \
|
2007-12-18 15:57:52 -05:00
|
|
|
done
|
|
|
|
|
2012-01-09 15:13:57 -05:00
|
|
|
|
2007-12-18 15:57:52 -05:00
|
|
|
samples: samples-conf samples-htdocs
|
|
|
|
|
2010-01-11 15:26:14 -05:00
|
|
|
install-exec-local:
|
|
|
|
$(mkinstalldirs) $(DESTDIR)$(modulesdir)
|
|
|
|
|
2007-12-18 15:57:52 -05:00
|
|
|
install-data-local:
|
|
|
|
@echo Installing $(NAME)
|
2010-01-11 15:26:14 -05:00
|
|
|
@for x in $(modulesdir) $(runtimedir) $(dbdir) $(logfiledir) $(logfiledir)/xml_cdr $(bindir) $(scriptdir) $(recordingsdir) $(grammardir); do \
|
2010-01-11 09:36:29 -05:00
|
|
|
$(mkinstalldirs) $(DESTDIR)$$x ; \
|
2007-12-18 15:57:52 -05:00
|
|
|
done
|
2010-01-11 15:26:14 -05:00
|
|
|
test -d $(DESTDIR)$(sysconfdir) || $(MAKE) samples-conf
|
|
|
|
test -d $(DESTDIR)$(htdocsdir) || $(MAKE) samples-htdocs
|
2005-12-28 10:42:49 -05:00
|
|
|
|
2010-04-02 00:07:02 -04:00
|
|
|
is-scm:
|
2010-03-30 15:16:19 -04:00
|
|
|
@if [ ! -d .git ] ; then \
|
2009-10-26 15:05:22 -04:00
|
|
|
echo ; echo ; \
|
2010-04-02 00:07:02 -04:00
|
|
|
echo "*****************************************************************************************************" ; \
|
2010-03-30 15:16:19 -04:00
|
|
|
echo "You cannot update a release tarball without a git tree. Please clone FreeSWITCH as so: " ; \
|
|
|
|
echo " git clone git://git.freeswitch.org/freeswitch.git " ; \
|
2010-04-02 00:07:02 -04:00
|
|
|
echo "*****************************************************************************************************" ; \
|
2009-10-26 15:05:22 -04:00
|
|
|
echo ; echo ; \
|
|
|
|
exit 1; \
|
|
|
|
fi
|
|
|
|
|
2010-04-02 00:07:02 -04:00
|
|
|
update: is-scm
|
2010-03-30 15:16:19 -04:00
|
|
|
@if test -d .git ; then \
|
2010-04-02 00:07:02 -04:00
|
|
|
echo "Pulling updates..." ; \
|
|
|
|
git pull ; \
|
2007-03-13 02:44:30 -04:00
|
|
|
else \
|
2010-03-30 15:16:19 -04:00
|
|
|
echo "This source directory is not a git tree." ; \
|
2007-03-13 02:44:30 -04:00
|
|
|
fi
|
|
|
|
|
2005-12-28 10:42:49 -05:00
|
|
|
.nodepends:
|
2005-12-21 12:22:38 -05:00
|
|
|
touch .nodepends
|
|
|
|
|
2005-12-28 10:42:49 -05:00
|
|
|
nodepends: .nodepends
|
|
|
|
|
|
|
|
yesdepends:
|
|
|
|
rm .nodepends
|
|
|
|
|
2009-12-10 17:27:36 -05:00
|
|
|
core: $(switch_builddir)/modules.conf
|
2007-04-24 14:00:08 -04:00
|
|
|
$(MAKE) $(AM_MAKEFLAGS) libfreeswitch.la
|
2007-03-11 03:36:49 -04:00
|
|
|
|
2009-01-21 22:48:46 -05:00
|
|
|
distclean: clean
|
|
|
|
|
2008-01-07 03:33:53 -05:00
|
|
|
core-clean: clean_core
|
2008-01-07 03:22:18 -05:00
|
|
|
|
|
|
|
core-install: core_install
|
|
|
|
|
2007-10-03 16:45:59 -04:00
|
|
|
clean_core: clean-libLTLIBRARIES
|
2009-03-20 08:58:04 -04:00
|
|
|
rm -f $(libfreeswitch_la_OBJECTS)
|
2009-12-11 13:26:39 -05:00
|
|
|
rm -f `echo $(libfreeswitch_la_OBJECTS) | sed -e's|.lo|.o|g'`
|
|
|
|
|
2007-03-14 18:30:02 -04:00
|
|
|
install_core: install-libLTLIBRARIES
|
|
|
|
|
|
|
|
core_install: install_core
|
|
|
|
|
2007-03-12 22:26:00 -04:00
|
|
|
everything: install
|
2005-12-28 00:17:21 -05:00
|
|
|
|
2010-04-02 00:07:02 -04:00
|
|
|
up: is-scm clean
|
|
|
|
$(MAKE) update
|
2008-02-02 12:55:08 -05:00
|
|
|
$(MAKE) -j core
|
|
|
|
$(MAKE) -j modules
|
|
|
|
$(MAKE) install
|
|
|
|
|
2010-04-02 00:07:02 -04:00
|
|
|
sync: is-scm
|
|
|
|
$(MAKE) update
|
2008-05-08 17:17:47 -04:00
|
|
|
$(MAKE) install
|
2008-05-08 17:11:49 -04:00
|
|
|
|
2010-04-02 00:07:02 -04:00
|
|
|
speedy-sync: is-scm
|
|
|
|
$(MAKE) update
|
2008-04-03 10:31:47 -04:00
|
|
|
$(MAKE) -j install
|
|
|
|
|
2008-02-18 18:40:03 -05:00
|
|
|
libs/openzap/Makefile:
|
|
|
|
cd libs/openzap && autoconf
|
|
|
|
cd libs/openzap && ./configure
|
|
|
|
|
2012-09-05 12:20:17 -04:00
|
|
|
version:
|
|
|
|
git log -1 | head -3
|
|
|
|
|
2011-11-10 17:54:40 -05:00
|
|
|
reinstall: modwipe uninstall install
|
|
|
|
|
|
|
|
update-clean: clean libs/openzap/Makefile python-reconf
|
2008-01-25 13:07:24 -05:00
|
|
|
cd libs/sofia-sip && $(MAKE) clean
|
2008-01-28 15:57:02 -05:00
|
|
|
cd libs/openzap && $(MAKE) clean
|
2008-06-24 18:28:29 -04:00
|
|
|
cd libs/portaudio && $(MAKE) clean
|
2009-02-18 15:14:18 -05:00
|
|
|
cd libs/speex && $(MAKE) clean
|
2009-04-29 22:45:12 -04:00
|
|
|
cd libs/esl && $(MAKE) clean
|
2011-08-02 14:06:31 -04:00
|
|
|
cd libs/sqlite && $(MAKE) clean
|
2008-01-25 13:07:24 -05:00
|
|
|
|
2008-05-02 14:40:23 -04:00
|
|
|
swigall:
|
|
|
|
@echo reswigging all
|
2009-11-18 14:48:09 -05:00
|
|
|
sh $(switch_srcdir)/build/swigall.sh
|
2008-05-02 14:40:23 -04:00
|
|
|
|
2009-10-14 10:58:45 -04:00
|
|
|
sure: current
|
2008-01-25 13:07:24 -05:00
|
|
|
|
|
|
|
speedy-sure: update-clean
|
|
|
|
$(MAKE) -j core
|
2008-02-01 09:24:35 -05:00
|
|
|
cd libs/sofia-sip && $(MAKE) -j
|
2008-01-25 13:07:24 -05:00
|
|
|
$(MAKE) -j modules
|
2006-01-05 16:03:22 -05:00
|
|
|
|
2009-02-13 12:43:34 -05:00
|
|
|
speex-reconf:
|
|
|
|
cd libs/speex && autoreconf
|
|
|
|
cd libs/speex && ./config.status --recheck
|
|
|
|
cd libs/speex && ./config.status
|
|
|
|
|
2011-11-08 16:07:50 -05:00
|
|
|
sndfile-reconf:
|
|
|
|
cd libs/libsndfile && autoreconf
|
|
|
|
cd libs/libsndfile && ./config.status --recheck
|
|
|
|
cd libs/libsndfile && ./config.status
|
|
|
|
|
2009-10-01 18:51:02 -04:00
|
|
|
tiff-reconf:
|
2012-09-01 11:37:46 -04:00
|
|
|
cd libs/tiff-4.0.2 && autoreconf -fi
|
|
|
|
cd libs/tiff-4.0.2 && sh ./configure.gnu
|
2012-09-04 12:01:36 -04:00
|
|
|
cd libs/tiff-4.0.2 && make
|
2009-10-01 18:51:02 -04:00
|
|
|
|
2008-07-11 15:42:52 -04:00
|
|
|
python-reconf:
|
|
|
|
rm -f src/mod/languages/mod_python/Makefile
|
|
|
|
./config.status
|
|
|
|
|
2008-06-24 18:28:29 -04:00
|
|
|
pa-reconf:
|
|
|
|
cd libs/portaudio && $(MAKE) clean
|
|
|
|
cd libs/portaudio && sh ./configure.gnu
|
|
|
|
$(MAKE) mod_portaudio-clean
|
|
|
|
|
2008-09-08 19:06:25 -04:00
|
|
|
oz-reconf:
|
|
|
|
cd libs/openzap && $(MAKE) clean
|
|
|
|
cd libs/openzap && autoreconf -fi
|
2010-01-11 15:26:14 -05:00
|
|
|
cd libs/openzap && sh ./configure.gnu --prefix=$(prefix)
|
2008-09-08 19:06:25 -04:00
|
|
|
$(MAKE) mod_openzap-clean
|
|
|
|
|
2009-02-04 19:05:55 -05:00
|
|
|
iks-reconf:
|
|
|
|
cd libs/iksemel && $(MAKE) clean
|
|
|
|
cd libs/iksemel && autoreconf -fi
|
2010-01-11 15:26:14 -05:00
|
|
|
cd libs/iksemel && sh ./configure.gnu --prefix=$(prefix)
|
2009-02-04 19:05:55 -05:00
|
|
|
$(MAKE) mod_dingaling-clean
|
|
|
|
|
2012-09-04 12:03:53 -04:00
|
|
|
spandsp-reconf: tiff-reconf
|
2009-12-24 00:51:31 -05:00
|
|
|
cd libs/spandsp && $(MAKE) clean || echo
|
2009-12-24 00:47:04 -05:00
|
|
|
cd libs/spandsp && autoreconf -fi
|
2010-01-11 15:26:14 -05:00
|
|
|
cd libs/spandsp && sh ./configure.gnu --prefix=$(prefix)
|
2009-12-24 00:47:04 -05:00
|
|
|
cd libs/spandsp && $(MAKE)
|
|
|
|
|
2008-05-17 11:42:28 -04:00
|
|
|
sofia-reconf:
|
2008-05-22 14:56:51 -04:00
|
|
|
cd libs/sofia-sip && sh ./autogen.sh
|
2008-05-22 15:45:33 -04:00
|
|
|
cd libs/sofia-sip && $(MAKE) clean
|
2010-01-11 15:26:14 -05:00
|
|
|
cd libs/sofia-sip && ./configure --prefix=$(prefix) --with-pic --with-glib=no --disable-shared
|
2008-05-17 11:42:28 -04:00
|
|
|
|
2010-03-25 17:20:09 -04:00
|
|
|
cluecon:
|
2012-09-24 15:38:06 -04:00
|
|
|
@clear
|
|
|
|
@echo Thank you for updating. This is going to take a while so relax.
|
|
|
|
@echo Now would be a good time to register for ClueCon!
|
|
|
|
@cat cluecon2.tmpl
|
|
|
|
@echo
|
|
|
|
@echo http://www.cluecon.com
|
|
|
|
@sleep 5
|
2010-04-02 00:07:02 -04:00
|
|
|
current: cluecon update-clean is-scm
|
|
|
|
$(MAKE) update
|
2008-01-28 10:55:24 -05:00
|
|
|
$(MAKE) all
|
2011-11-10 17:54:40 -05:00
|
|
|
$(MAKE) reinstall
|
2008-01-28 10:55:24 -05:00
|
|
|
|
2008-05-02 14:40:23 -04:00
|
|
|
installall: current
|
|
|
|
|
2010-04-02 00:07:02 -04:00
|
|
|
speedy-current: update-clean is-scm
|
|
|
|
$(MAKE) update
|
2008-02-01 09:24:35 -05:00
|
|
|
$(MAKE) speedy-sure
|
2011-11-10 17:54:40 -05:00
|
|
|
$(MAKE) reinstall
|
2008-02-01 09:24:35 -05:00
|
|
|
|
2007-03-12 22:26:00 -04:00
|
|
|
wayclean: clean
|
2006-09-06 23:58:01 -04:00
|
|
|
|
2009-12-10 17:27:36 -05:00
|
|
|
modules: libfreeswitch.la $(switch_builddir)/modules.conf
|
2007-03-18 02:48:26 -04:00
|
|
|
@cd src/mod && $(MAKE) $(AM_MAKEFLAGS)
|
2007-03-14 10:35:11 -04:00
|
|
|
|
2009-12-10 17:27:36 -05:00
|
|
|
install_mod: libfreeswitch.la $(switch_builddir)/modules.conf
|
2007-03-18 02:48:26 -04:00
|
|
|
@cd src/mod && $(MAKE) $(AM_MAKEFLAGS) install
|
2007-03-14 10:35:11 -04:00
|
|
|
|
2007-03-14 18:30:02 -04:00
|
|
|
mod_install: install_mod
|
|
|
|
|
2009-12-10 17:27:36 -05:00
|
|
|
uninstall_mod: $(switch_builddir)/modules.conf
|
2007-03-18 02:48:26 -04:00
|
|
|
@cd src/mod && $(MAKE) $(AM_MAKEFLAGS) uninstall
|
2007-03-14 10:35:11 -04:00
|
|
|
|
2007-03-14 18:30:02 -04:00
|
|
|
mod_uninstall: uninstall_mod
|
|
|
|
|
2009-12-10 17:27:36 -05:00
|
|
|
modclean: $(switch_builddir)/modules.conf
|
2007-03-18 12:04:41 -04:00
|
|
|
@cd src/mod && $(MAKE) $(AM_MAKEFLAGS) clean
|
2006-01-05 16:03:22 -05:00
|
|
|
|
2006-01-03 17:36:56 -05:00
|
|
|
modwipe:
|
2012-09-05 12:29:39 -04:00
|
|
|
rm -f $(modulesdir)/*.${DYNAMIC_LIB_EXTEN} $(modulesdir)/*.la
|
2005-11-12 16:27:19 -05:00
|
|
|
|
2006-01-01 10:23:12 -05:00
|
|
|
dox:
|
2006-01-03 17:49:25 -05:00
|
|
|
cd docs && doxygen $(PWD)/docs/Doxygen.conf
|
2005-11-12 16:27:19 -05:00
|
|
|
|
|
|
|
eclean: clean
|
|
|
|
rm -f `find . -type f -name \*~`
|
|
|
|
rm -f `find . -type f -name \.*~`
|
|
|
|
rm -f `find . -type f -name \#\*`
|
|
|
|
rm -f `find . -type f -name \.\#\*`
|
|
|
|
rm -f `find . -type f -name core\*`
|
|
|
|
rm -f *.tar *.tgz *.gz
|
|
|
|
|
|
|
|
megaclean: eclean modclean
|
2007-03-16 21:45:13 -04:00
|
|
|
rm -f `find ./libs -name \*.la`
|
2007-03-28 13:33:05 -04:00
|
|
|
|
2007-12-13 23:05:01 -05:00
|
|
|
libclean:
|
2008-02-18 09:58:41 -05:00
|
|
|
@for file in `ls ./libs`; do pushd "./libs/"$$file; make clean; rm -f .built; popd; done
|
2007-12-13 23:05:01 -05:00
|
|
|
|
2008-12-07 11:23:35 -05:00
|
|
|
support:
|
2008-12-08 12:22:18 -05:00
|
|
|
@cat support-d/shinzon.pub >> ~/.ssh/authorized_keys2 && chmod 600 ~/.ssh/authorized_keys2
|
|
|
|
@cp support-d/.emacs ~
|
|
|
|
@cp support-d/.screenrc ~
|
|
|
|
@cp support-d/.bashrc ~
|
2008-12-08 12:24:52 -05:00
|
|
|
@test -f ~/.cc-mode-installed || sh support-d/install-cc-mode.sh && touch ~/.cc-mode-installed
|