2005-11-12 16:27:19 -05:00
EXTRA_DIST =
2018-10-26 10:43:38 -04:00
SUBDIRS = . src build tests/unit
2014-03-07 19:09:12 -05:00
AUTOMAKE_OPTIONS = foreign subdir-objects
2010-01-11 15:26:14 -05:00
NAME = freeswitch
2006-12-16 18:22:45 -05:00
2014-03-13 17:59:13 -04:00
i f S Y S T E M _ A P R
AM_LIBAPR_CFLAGS := $( shell apr-1-config --cflags)
AM_LIBAPR_CPPFLAGS := $( shell apr-1-config --cppflags --includes)
AM_LIBAPR_LDFLAGS := $( shell apr-1-config --ldflags)
AM_LIBAPR_LIBS := $( shell apr-1-config \- -libs)
AM_LIBAPR_LINKLIBTOOL := $( shell apr-1-config \- -link-libtool)
e l s e
2013-07-05 00:22:26 -04:00
AM_LIBAPR_CFLAGS := $( shell ./libs/apr/apr-1-config --cflags)
AM_LIBAPR_CPPFLAGS := $( shell ./libs/apr/apr-1-config --cppflags --includes)
AM_LIBAPR_LDFLAGS := $( shell ./libs/apr/apr-1-config --ldflags)
2014-03-14 19:55:23 -04:00
AM_LIBAPR_LIBS := $( subst $( switch_builddir) /,,$( shell ./libs/apr/apr-1-config \- -libs) )
2014-03-13 17:59:13 -04:00
e n d i f
i f S Y S T E M _ A P R U T I L
AM_LIBAPU_CPPFLAGS := $( shell apu-1-config --includes)
AM_LIBAPU_LDFLAGS := $( shell apu-1-config --ldflags)
AM_LIBAPU_LIBS := $( shell apu-1-config \- -libs)
AM_LIBAPU_LINKLIBTOOL := $( shell apu-1-config \- -link-libtool)
e l s e
2013-07-05 00:22:26 -04:00
AM_LIBAPU_CPPFLAGS := $( shell ./libs/apr-util/apu-1-config --includes)
AM_LIBAPU_LDFLAGS := $( shell ./libs/apr-util/apu-1-config --ldflags)
2014-03-14 19:55:23 -04:00
AM_LIBAPU_LIBS := $( subst $( switch_builddir) /,,$( shell ./libs/apr-util/apu-1-config \- -libs) )
2014-03-13 17:59:13 -04:00
e n d i f
2013-07-05 00:22:26 -04:00
2016-02-29 12:39:51 -05:00
2013-01-14 12:08:55 -05:00
AM_CFLAGS = $( SWITCH_AM_CFLAGS) $( SWITCH_ANSI_CFLAGS)
2016-02-29 12:39:51 -05:00
AM_CPPFLAGS =
AM_CPPFLAGS += -I$( switch_srcdir) /libs/libvpx
2020-08-18 09:42:37 -04:00
AM_CPPFLAGS += $( SWITCH_AM_CXXFLAGS)
AM_LDFLAGS = $( SWITCH_AM_LDFLAGS) $( AM_LIBAPR_LDFLAGS) $( AM_LIBAPU_LDFLAGS)
2007-03-11 01:36:04 -05:00
2007-12-10 18:38:42 -05:00
DEFAULT_SOUNDS = en-us-callie-8000
2014-10-02 19:25:43 -04:00
MY_DEFAULT_ARGS = --build= $( build) --host= $( host) --target= $( target) --prefix= " $( prefix) " --exec_prefix= " $( exec_prefix) " --libdir= " $( libdir) "
2007-12-10 18:38:42 -05:00
2014-05-08 17:35:23 -04:00
.INTERMEDIATE : -ldl -liconv -lpthread
2014-05-08 15:58:28 -04:00
.DEFAULT : $( switch_builddir ) /modules .conf src /mod /modules .inc
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` ; \
2014-05-09 13:27:37 -04:00
args = " $@ " ; if test -z " $$ args " || test " $$ {args#-l*} " = " $$ args " ; then \
2014-05-08 17:21:12 -04:00
if test " $$ target_prefix " = "sounds" ; then \
if test " $$ target " = "install" ; then \
$( GETSOUNDS) $$ soundfile $( DESTDIR) $( soundsdir) /; \
else \
$( GETSOUNDS) $$ soundfile ; \
fi ; \
2012-05-21 15:47:30 -04:00
else \
2014-05-08 17:21:12 -04:00
if test " $$ target " = "install" ; then \
$( MAKE) $( AM_MAKEFLAGS) core_install && cd src/mod && $( MAKE) $( AM_MAKEFLAGS) $@ ; \
else \
2015-02-06 18:37:59 -05:00
if test " $$ target " = "clean" ; then \
cd src/mod && $( MAKE) $( AM_MAKEFLAGS) $@ ; \
else \
$( MAKE) $( AM_MAKEFLAGS) core && cd src/mod && $( MAKE) $( AM_MAKEFLAGS) $@ ; \
fi ; \
2014-05-08 17:21:12 -04:00
fi ; \
fi ; 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
2017-07-25 13:08:29 -04:00
sounds-allison : sounds -en -us -allison -8000
sounds-allison-install : sounds -en -us -allison -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
2014-05-05 19:22:52 -04:00
sounds-fr : sounds -fr -ca -june -8000
sounds-fr-install : sounds -fr -ca -june -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
2017-07-25 13:08:29 -04:00
hd-sounds-allison : sounds -allison sounds -en -us -allison -16000
hd-sounds-allison-install : sounds -allison -install sounds -en -us -allison -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
2014-05-05 19:22:52 -04:00
hd-sounds-fr : sounds -fr -ca -june -16000
hd-sounds-fr-install : sounds -fr -ca -june -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
2017-07-25 13:08:29 -04:00
uhd-sounds-allison : hd -sounds -allison sounds -en -us -allison -32000
uhd-sounds-allison-install : hd -sounds -allison -install sounds -en -us -allison -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
2014-05-05 19:22:52 -04:00
uhd-sounds-fr : sounds -fr -ca -june -32000
uhd-sounds-fr-install : sounds -fr -ca -june -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
2017-07-25 13:08:29 -04:00
cd-sounds-allison : uhd -sounds -allison sounds -en -us -allison -48000
cd-sounds-allison-install : uhd -sounds -allison -install sounds -en -us -allison -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
2014-05-05 19:22:52 -04:00
cd-sounds-fr : sounds -fr -ca -june -48000
cd-sounds-fr-install : sounds -fr -ca -june -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
2009-12-17 11:53:25 -05:00
2013-07-05 00:22:26 -04:00
CORE_CFLAGS = $( AM_LIBAPR_CFLAGS) $( AM_LIBAPR_CPPFLAGS)
CORE_CFLAGS += $( AM_LIBAPU_CPPFLAGS)
2010-01-11 15:26:14 -05:00
CORE_CFLAGS += -I$( switch_srcdir) /libs/srtp/include
2016-02-29 12:39:51 -05:00
i f E N A B L E _ L I B Y U V
2016-02-24 16:52:40 -05:00
CORE_CFLAGS += -I$( switch_srcdir) /libs/libyuv/include
2016-02-29 12:39:51 -05:00
CORE_CFLAGS += -DSWITCH_HAVE_YUV
e n d i f
2010-01-11 15:26:14 -05:00
CORE_CFLAGS += -I$( switch_srcdir) /libs/srtp/crypto/include -Ilibs/srtp/crypto/include
2020-08-04 13:32:23 -04:00
CORE_CFLAGS += $( SPANDSP_CFLAGS)
2016-02-29 12:39:51 -05:00
i f E N A B L E _ L I B V P X
2016-02-24 18:43:21 -05:00
CORE_CFLAGS += -DSWITCH_HAVE_VPX
2016-02-29 12:39:51 -05:00
e n d i f
2010-01-11 15:26:14 -05:00
2014-01-07 17:50:28 -05:00
APR_LIBS = $( AM_LIBAPU_LIBS) $( AM_LIBAPR_LIBS)
2016-02-29 12:39:51 -05:00
CORE_LIBS =
i f E N A B L E _ L I B V P X
CORE_LIBS += libs/libvpx/libvpx.a
e n d i f
2014-03-13 17:59:13 -04:00
i f S Y S T E M _ A P R U T I L
CORE_LIBS += $( AM_LIBAPU_LINKLIBTOOL)
e l s e
CORE_LIBS += libs/apr-util/libaprutil-1.la
e n d i f
2015-07-16 06:27:45 -04:00
i f S Y S T E M _ A P R
CORE_LIBS += $( AM_LIBAPR_LINKLIBTOOL)
e l s e
CORE_LIBS += libs/apr/libapr-1.la
e n d i f
2011-11-29 14:35:16 -05:00
2011-05-02 12:34:13 -04:00
i f E N A B L E _ S R T P
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
e n d i f
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
2014-05-08 15:58:28 -04:00
BUILT_SOURCES = src/mod/modules.inc src/include/switch_version.h src/include/switch_swigable_cpp.h
2010-01-11 15:26:14 -05:00
2010-01-16 22:11:56 -05:00
i f H A V E _ O D B C
2010-01-11 15:26:14 -05:00
CORE_CFLAGS += -DSWITCH_HAVE_ODBC $( ODBC_INC_FLAGS)
2009-11-30 07:31:24 -05:00
e n d i f
2015-02-24 14:51:07 -05:00
i f H A V E _ P N G
CORE_CFLAGS += -DSWITCH_HAVE_PNG $( LIBPNG_CFLAGS)
e n d i f
2015-04-02 15:59:05 -04:00
i f H A V E _ F R E E T Y P E
CORE_CFLAGS += -DSWITCH_HAVE_FREETYPE $( LIBFREETYPE_CFLAGS)
e n d i f
2016-10-12 19:00:13 -04:00
i f H A V E _ G U M B O
CORE_CFLAGS += -DSWITCH_HAVE_GUMBO $( LIBGUMBO_CFLAGS)
e n d i f
2018-03-07 09:28:30 -05:00
i f H A V E _ F V A D
CORE_CFLAGS += -DSWITCH_HAVE_FVAD $( LIBFVAD_CFLAGS)
e n d i f
2010-01-11 15:26:14 -05:00
##
## libfreeswitch
##
2020-08-04 13:32:23 -04:00
noinst_LTLIBRARIES =
2016-02-29 12:39:51 -05:00
i f E N A B L E _ L I B Y U V
noinst_LTLIBRARIES += libfreeswitch_libyuv.la
e n d i f
2016-02-24 16:52:40 -05:00
2016-02-29 12:39:51 -05:00
i f E N A B L E _ L I B Y U V
2016-02-24 16:52:40 -05:00
libfreeswitch_libyuv_la_SOURCES = \
2019-01-17 15:41:53 -05:00
l i b s / l i b y u v / s o u r c e / c o m p a r e . c c \
l i b s / l i b y u v / s o u r c e / c o m p a r e _ c o m m o n . c c \
l i b s / l i b y u v / s o u r c e / c o m p a r e _ g c c . c c \
l i b s / l i b y u v / s o u r c e / c o m p a r e _ m m i . c c \
l i b s / l i b y u v / s o u r c e / c o m p a r e _ m s a . c c \
l i b s / l i b y u v / s o u r c e / c o m p a r e _ n e o n 6 4 . c c \
l i b s / l i b y u v / s o u r c e / c o m p a r e _ n e o n . c c \
l i b s / l i b y u v / s o u r c e / c o m p a r e _ w i n . c c \
l i b s / l i b y u v / s o u r c e / c o n v e r t _ a r g b . c c \
l i b s / l i b y u v / s o u r c e / c o n v e r t . c c \
l i b s / l i b y u v / s o u r c e / c o n v e r t _ f r o m _ a r g b . c c \
l i b s / l i b y u v / s o u r c e / c o n v e r t _ f r o m . c c \
l i b s / l i b y u v / s o u r c e / c o n v e r t _ j p e g . c c \
l i b s / l i b y u v / s o u r c e / c o n v e r t _ t o _ a r g b . c c \
l i b s / l i b y u v / s o u r c e / c o n v e r t _ t o _ i 4 2 0 . c c \
l i b s / l i b y u v / s o u r c e / c p u _ i d . c c \
l i b s / l i b y u v / s o u r c e / m j p e g _ d e c o d e r . c c \
l i b s / l i b y u v / s o u r c e / m j p e g _ v a l i d a t e . c c \
l i b s / l i b y u v / s o u r c e / p l a n a r _ f u n c t i o n s . c c \
l i b s / l i b y u v / s o u r c e / r o t a t e _ a n y . c c \
l i b s / l i b y u v / s o u r c e / r o t a t e _ a r g b . c c \
l i b s / l i b y u v / s o u r c e / r o t a t e . c c \
l i b s / l i b y u v / s o u r c e / r o t a t e _ c o m m o n . c c \
l i b s / l i b y u v / s o u r c e / r o t a t e _ g c c . c c \
l i b s / l i b y u v / s o u r c e / r o t a t e _ m m i . c c \
l i b s / l i b y u v / s o u r c e / r o t a t e _ m s a . c c \
l i b s / l i b y u v / s o u r c e / r o t a t e _ n e o n 6 4 . c c \
l i b s / l i b y u v / s o u r c e / r o t a t e _ n e o n . c c \
l i b s / l i b y u v / s o u r c e / r o t a t e _ w i n . c c \
l i b s / l i b y u v / s o u r c e / r o w _ a n y . c c \
l i b s / l i b y u v / s o u r c e / r o w _ c o m m o n . c c \
l i b s / l i b y u v / s o u r c e / r o w _ g c c . c c \
l i b s / l i b y u v / s o u r c e / r o w _ m m i . c c \
l i b s / l i b y u v / s o u r c e / r o w _ m s a . c c \
l i b s / l i b y u v / s o u r c e / r o w _ n e o n 6 4 . c c \
l i b s / l i b y u v / s o u r c e / r o w _ n e o n . c c \
l i b s / l i b y u v / s o u r c e / r o w _ w i n . c c \
l i b s / l i b y u v / s o u r c e / s c a l e _ a n y . c c \
l i b s / l i b y u v / s o u r c e / s c a l e _ a r g b . c c \
l i b s / l i b y u v / s o u r c e / s c a l e . c c \
l i b s / l i b y u v / s o u r c e / s c a l e _ c o m m o n . c c \
l i b s / l i b y u v / s o u r c e / s c a l e _ g c c . c c \
l i b s / l i b y u v / s o u r c e / s c a l e _ m m i . c c \
l i b s / l i b y u v / s o u r c e / s c a l e _ m s a . c c \
l i b s / l i b y u v / s o u r c e / s c a l e _ n e o n 6 4 . c c \
l i b s / l i b y u v / s o u r c e / s c a l e _ n e o n . c c \
l i b s / l i b y u v / s o u r c e / s c a l e _ w i n . c c \
l i b s / l i b y u v / s o u r c e / v i d e o _ c o m m o n . c c
2016-02-24 16:52:40 -05:00
libfreeswitch_libyuv_la_CPPFLAGS = -O2 -fomit-frame-pointer -Ilibs/libyuv/include
CORE_LIBS += libfreeswitch_libyuv.la
2016-02-29 12:39:51 -05:00
e n d i f
2016-02-24 16:52:40 -05:00
2010-01-11 15:26:14 -05:00
lib_LTLIBRARIES = libfreeswitch.la
2020-08-18 09:42:37 -04:00
libfreeswitch_la_CFLAGS = $( CORE_CFLAGS) $( SQLITE_CFLAGS) $( GUMBO_CFLAGS) $( FVAD_CFLAGS) $( FREETYPE_CFLAGS) $( CURL_CFLAGS) $( PCRE_CFLAGS) $( SPEEX_CFLAGS) $( LIBEDIT_CFLAGS) $( openssl_CFLAGS) $( SOFIA_SIP_CFLAGS) $( AM_CFLAGS) $( TPL_CFLAGS)
2014-05-08 17:13:23 -04:00
libfreeswitch_la_LDFLAGS = -version-info 1:0:0 $( AM_LDFLAGS) $( PLATFORM_CORE_LDFLAGS) -no-undefined
2020-08-18 09:42:37 -04:00
libfreeswitch_la_LIBADD = $( CORE_LIBS) $( APR_LIBS) $( SQLITE_LIBS) $( GUMBO_LIBS) $( FVAD_LIBS) $( FREETYPE_LIBS) $( CURL_LIBS) $( PCRE_LIBS) $( SPEEX_LIBS) $( LIBEDIT_LIBS) $( openssl_LIBS) $( PLATFORM_CORE_LIBS) $( TPL_LIBS) $( SPANDSP_LIBS) $( SOFIA_SIP_LIBS)
2007-04-24 14:00:08 -04:00
libfreeswitch_la_DEPENDENCIES = $( BUILT_SOURCES)
2005-11-12 16:27:19 -05:00
2015-02-24 14:51:07 -05:00
i f H A V E _ P N G
libfreeswitch_la_LIBADD += $( LIBPNG_LIBS)
e n d i f
2010-01-16 22:11:56 -05:00
i f H A V E _ O D B C
2010-01-11 15:26:14 -05:00
libfreeswitch_la_LDFLAGS += $( ODBC_LIB_FLAGS)
e n d i f
i f E N A B L E _ Z R T P
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
2013-02-10 18:47:38 -05:00
ZRTP_LDFLAGS += -L$( switch_srcdir) /libs/libzrtp
2012-04-05 03:10:07 -04:00
ZRTP_LIBS = -lbn -lzrtp
libfreeswitch_la_LDFLAGS += $( ZRTP_LDFLAGS)
libfreeswitch_la_LIBADD += $( ZRTP_LIBS)
2013-02-10 18:47:38 -05:00
CORE_LIBS += libs/libzrtp/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
e n d i f
2018-09-27 13:29:07 -04:00
library_includetestdir = $( includedir) /test
library_includetest_HEADERS = \
src/include/test/switch_fct.h \
src/include/test/switch_test.h
2010-01-11 15:26:14 -05:00
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 \
2012-12-18 11:50:43 -05:00
src/include/switch_core_media.h \
2014-08-03 15:15:26 -04:00
src/include/switch_core_video.h \
2010-01-11 15:26:14 -05:00
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 \
2015-09-11 12:37:01 -04:00
src/include/switch_jitterbuffer.h \
2015-10-23 20:27:25 -04:00
src/include/switch_estimators.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 \
2014-01-31 07:00:52 -05:00
src/include/switch_curl.h \
2017-02-27 19:53:15 -05:00
src/include/switch_cJSON.h \
src/include/switch_cJSON_Utils.h \
2010-06-29 12:49:57 -04:00
src/include/switch_json.h \
2015-02-11 15:07:06 -05:00
src/include/switch_utf8.h \
2016-07-18 12:48:43 -04:00
src/include/switch_msrp.h \
2015-02-11 15:07:06 -05:00
src/include/switch_vpx.h \
2018-03-07 09:28:30 -05:00
src/include/switch_vad.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 \
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 \
2015-06-18 14:35:33 -04:00
src/include/switch_hashtable.h \
src/include/switch_image.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 \
2013-02-01 15:29:40 -05:00
src/switch_core_cert.c \
2010-01-11 15:26:14 -05:00
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 \
2014-01-16 15:54:47 -05:00
src/switch_version.c \
2012-12-18 11:50:43 -05:00
src/switch_core_media.c \
2014-08-03 15:15:26 -04:00
src/switch_core_video.c \
2013-01-26 13:52:36 -05:00
src/switch_sdp.c \
2010-01-11 15:26:14 -05:00
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 \
2015-09-11 12:37:01 -04:00
src/switch_jitterbuffer.c \
2015-10-23 20:27:25 -04:00
src/switch_estimators.c \
2010-01-11 15:26:14 -05:00
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 \
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 \
2014-02-14 16:39:56 -05:00
src/switch_speex.c \
2010-06-29 12:49:57 -04:00
src/switch_profile.c \
2017-02-27 19:53:15 -05:00
src/cJSON.c \
src/cJSON_Utils.c \
2010-06-29 12:49:57 -04:00
src/switch_json.c \
2011-11-29 16:38:52 -05:00
src/switch_curl.c \
2014-03-08 14:36:17 -05:00
src/switch_hashtable.c\
2015-02-11 15:07:06 -05:00
src/switch_utf8.c \
2016-07-18 12:48:43 -04:00
src/switch_msrp.c \
2018-03-07 09:28:30 -05:00
src/switch_vad.c \
2016-02-24 18:43:21 -05:00
src/switch_vpx.c \
2010-01-11 15:26:14 -05:00
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 \
2014-03-18 10:35:23 -04:00
libs/libnatpmp/getgateway.c
2007-03-11 01:36:04 -05:00
2010-01-11 15:26:14 -05:00
i f E N A B L E _ C P P
libfreeswitch_la_SOURCES += src/switch_cpp.cpp
e n d i f
2007-03-10 23:02:10 -05:00
2014-03-17 14:33:08 -04:00
$(libfreeswitch_la_SOURCES) : $( CORE_LIBS ) $( switch_builddir ) /modules .conf
2010-01-11 15:26:14 -05:00
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
##
2019-05-07 00:25:31 -04:00
bin_PROGRAMS = freeswitch fs_cli fs_ivrd tone2wav fs_encode fs_tts
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 \
2017-02-27 19:53:15 -05:00
libs/esl/src/esl_threadmutex.c libs/esl/fs_cli.c libs/esl/src/esl_json.c libs/esl/src/esl_buffer.c libs/esl/src/cJSON.c libs/esl/src/cJSON_Utils.c
2014-03-22 06:25:54 -04:00
fs_cli_CFLAGS = $( AM_CFLAGS) -I$( switch_srcdir) /libs/esl/src/include $( LIBEDIT_CFLAGS)
fs_cli_LDFLAGS = $( AM_LDFLAGS) -lpthread $( ESL_LDFLAGS) -lm $( LIBEDIT_LIBS)
2007-05-02 11:43:17 -04:00
2014-10-03 12:48:37 -04:00
i f D I S A B L E _ C C
fs_cli_CFLAGS += -DDISABLE_CC
e n d i f
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)
2014-05-08 17:13:23 -04:00
fs_encode_LDFLAGS = $( AM_LDFLAGS)
fs_encode_LDADD = libfreeswitch.la $( CORE_LIBS) $( APR_LIBS)
2011-11-07 10:39:20 -05:00
i f H A V E _ O D B C
fs_encode_LDADD += $( ODBC_LIB_FLAGS)
e n d i f
2019-05-07 00:25:31 -04:00
##
## fs_tts ()
##
fs_tts_SOURCES = src/fs_tts.c
fs_tts_CFLAGS = $( AM_CFLAGS)
fs_tts_LDFLAGS = $( AM_LDFLAGS)
fs_tts_LDADD = libfreeswitch.la $( CORE_LIBS) $( APR_LIBS)
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)
2014-05-08 17:13:23 -04:00
tone2wav_LDFLAGS = $( AM_LDFLAGS)
tone2wav_LDADD = libfreeswitch.la $( CORE_LIBS) $( APR_LIBS)
2011-11-07 10:39:20 -05:00
i f H A V E _ O D B C
tone2wav_LDADD += $( ODBC_LIB_FLAGS)
e n d i f
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 \
2017-02-27 19:53:15 -05:00
libs/esl/src/esl_threadmutex.c libs/esl/ivrd.c libs/esl/src/esl_json.c libs/esl/src/esl_buffer.c libs/esl/src/cJSON.c libs/esl/src/cJSON_Utils.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
2011-11-07 10:39:20 -05:00
i f H A V E _ O D B C
freeswitch_LDADD += $( ODBC_LIB_FLAGS)
e n d i f
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@," \
2015-04-16 23:54:00 -04:00
-e "s,@CFG_DIR\@,@confdir@," \
2010-01-11 15:26:14 -05:00
-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
2014-05-08 15:58:28 -04:00
src/mod/modules.inc : $( switch_builddir ) /modules .conf
@echo " OUR_MODULES= $( OUR_MODS) " > $( switch_builddir) /src/mod/modules.inc
@echo " OUR_CLEAN_MODULES= $( OUR_CLEAN_MODS) " >> $( switch_builddir) /src/mod/modules.inc
2020-01-09 14:34:16 -05:00
@echo " OUR_TEST_MODULES= $( OUR_TEST_MODS) " >> $( switch_builddir) /src/mod/modules.inc
2020-01-14 15:12:18 -05:00
@echo " OUR_CHECK_MODULES= $( OUR_CHECK_MODS) " >> $( switch_builddir) /src/mod/modules.inc
2014-05-08 15:58:28 -04:00
@echo " OUR_INSTALL_MODULES= $( OUR_INSTALL_MODS) " >> $( switch_builddir) /src/mod/modules.inc
@echo " OUR_UNINSTALL_MODULES= $( OUR_UNINSTALL_MODS) " >> $( switch_builddir) /src/mod/modules.inc
@echo " OUR_DISABLED_MODULES= $( OUR_DISABLED_MODS) " >> $( switch_builddir) /src/mod/modules.inc
@echo " OUR_DISABLED_CLEAN_MODULES= $( OUR_DISABLED_CLEAN_MODS) " >> $( switch_builddir) /src/mod/modules.inc
@echo " OUR_DISABLED_INSTALL_MODULES= $( OUR_DISABLED_INSTALL_MODS) " >> $( switch_builddir) /src/mod/modules.inc
@echo " OUR_DISABLED_UNINSTALL_MODULES= $( OUR_DISABLED_UNINSTALL_MODS) " >> $( switch_builddir) /src/mod/modules.inc
$(OUR_MODULES) : $( switch_builddir ) /modules .conf libfreeswitch .la src /mod /modules .inc
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
2014-04-04 11:09:47 -04:00
$(switch_builddir)/build/print_git_revision : $( switch_srcdir ) /build /print_git_revision .c
2014-03-26 17:15:24 -04:00
$( CC_FOR_BUILD) -o $@ $<
2012-06-14 18:40:01 -04:00
2014-01-29 17:19:00 -05:00
src/switch_version.lo : src /include /switch_version .h
2014-01-29 12:50:50 -05:00
2014-04-04 11:09:47 -04:00
src/include/switch_version.h : src /include /switch_version .h .in Makefile $( switch_builddir ) /build /print_git_revision $( libfreeswitch_la_SOURCES ) $( library_include_HEADERS )
2012-06-11 12:16:50 -04:00
@cat $< > $@ ; \
2014-04-04 12:00:06 -04:00
if [ -d $( switch_srcdir) /.git ] && [ -n " $$ (which git) " ] ; then \
2014-04-04 11:09:47 -04:00
xver = " $$ (cd $( switch_srcdir) / && $( switch_builddir) /build/print_git_revision) " ; \
2014-04-04 12:00:06 -04:00
xhver = " $$ (cd $( switch_srcdir) / && $( switch_builddir) /build/print_git_revision -h) " ; \
2012-07-20 03:33:40 -04:00
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)
2013-02-10 18:47:38 -05:00
libs/libzrtp/libzrtp.a :
cd libs/libzrtp && $( MAKE)
2012-04-05 01:13:45 -04:00
2019-02-27 13:57:47 -05:00
libs/libvpx/Makefile : libs /libvpx /.update
2019-10-22 12:24:14 -04:00
cd libs/libvpx && CC = " $( CC) " CXX = " $( CXX) " CFLAGS = " $( CFLAGS) $( VISIBILITY_FLAG) " CXXFLAGS = " $( CXXFLAGS) " LDFLAGS = " $( LDFLAGS) " ./configure --enable-pic --disable-docs --disable-examples --disable-install-bins --disable-install-srcs --disable-unit-tests --size-limit= 16384x16384
2016-02-24 18:43:21 -05:00
2019-02-27 13:57:47 -05:00
libs/libvpx/libvpx.a : libs /libvpx /Makefile libs /libvpx /.update
2016-02-24 18:43:21 -05:00
@cd libs/libvpx && $( MAKE)
2012-10-23 13:14:51 -04:00
libs/apr/Makefile : libs /apr /Makefile .in libs /apr /config .status libs /apr libs /apr /.update
@cd libs/apr && ./config.status
2012-10-23 18:15:03 -04:00
@$( TOUCH_TARGET)
2012-10-23 13:14:51 -04:00
2012-10-23 18:15:03 -04:00
libs/apr/libapr-1.la : libs /apr /Makefile libs /apr /.update
2014-03-15 22:37:46 -04:00
@if [ $( MAKELEVEL) = 0 -o -z "`echo " $( MAKEARGS) " | grep " j"`" ] ; then touch $( switch_srcdir) /src/include/switch.h; cd libs/apr && $( MAKE) $( MFLAGS) && touch libapr-1.la; fi
2010-01-11 15:26:14 -05:00
2014-02-19 17:58:28 -05:00
libs/apr-util/libaprutil-1.la : libs /apr /libapr -1.la libs /apr -util libs /apr -util /.update
2014-03-15 22:37:46 -04:00
@if [ $( MAKELEVEL) = 0 -o -z "`echo " $( MAKEARGS) " | grep " j"`" ] ; then touch $( switch_srcdir) /src/include/switch.h; cd libs/apr-util && $( MAKE) $( MFLAGS) && touch libaprutil-1.la; fi
2014-02-19 17:58:28 -05:00
2013-01-20 20:37:04 -05:00
SRTP_SRC = libs/srtp/srtp/srtp.c libs/srtp/srtp/ekt.c libs/srtp/crypto/cipher/cipher.c libs/srtp/crypto/cipher/null_cipher.c \
libs/srtp/crypto/cipher/aes.c libs/srtp/crypto/cipher/aes_icm.c \
libs/srtp/crypto/hash/null_auth.c libs/srtp/crypto/hash/sha1.c \
libs/srtp/crypto/hash/hmac.c libs/srtp/crypto/hash/auth.c \
libs/srtp/crypto/math/datatypes.c libs/srtp/crypto/math/stat.c \
libs/srtp/crypto/kernel/crypto_kernel.c libs/srtp/crypto/kernel/alloc.c \
2017-06-26 13:11:02 -04:00
libs/srtp/crypto/kernel/key.c libs/srtp/crypto/kernel/err.c \
2013-01-20 20:37:04 -05:00
libs/srtp/crypto/replay/rdb.c libs/srtp/crypto/replay/rdbx.c libs/srtp/crypto/replay/ut_sim.c
libs/srtp/libsrtp.la : libs /srtp libs /srtp /.update $( SRTP_SRC )
2014-03-15 22:37:46 -04:00
touch $( switch_srcdir) /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 :
2015-04-16 23:54:00 -04:00
@echo ` mkdir $( DESTDIR) $( confdir) /yaml 2>/dev/null`
$( INSTALL) -m 644 $( switch_srcdir) /conf/default/yaml/*.yaml $( DESTDIR) $( confdir) /yaml
2008-06-30 14:56:29 -04:00
2008-05-16 14:40:39 -04:00
vm-sync :
2015-04-16 23:54:00 -04:00
test -d $( DESTDIR) $( confdir) || $( mkinstalldirs) $( DESTDIR) $( confdir)
test -d $( DESTDIR) $( confdir) /lang || $( mkinstalldirs) $( DESTDIR) $( confdir) /lang
test -d $( DESTDIR) $( confdir) /lang/en || $( mkinstalldirs) $( DESTDIR) $( confdir) /lang/en
test -d $( DESTDIR) $( confdir) /lang/en/demo || $( mkinstalldirs) $( DESTDIR) $( confdir) /lang/en/demo
test -d $( DESTDIR) $( confdir) /lang/en/vm || $( mkinstalldirs) $( DESTDIR) $( confdir) /lang/en/vm
$( INSTALL) -m 644 $( switch_srcdir) /conf/vanilla/lang/en/vm/* $( DESTDIR) $( confdir) /lang/en/vm
$( INSTALL) -m 644 $( switch_srcdir) /conf/vanilla/lang/en/demo/* $( DESTDIR) $( confdir) /lang/en/demo
2008-05-16 14:40:39 -04:00
2012-01-09 15:13:57 -05:00
config-% :
2015-04-16 23:54:00 -04:00
test -d $( DESTDIR) $( confdir) || $( mkinstalldirs) $( DESTDIR) $( confdir)
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|^.*/||' ` ; \
2015-04-16 23:54:00 -04:00
test -d $( DESTDIR) $( confdir) $$ dir || $( mkinstalldirs) $( DESTDIR) $( confdir) $$ dir ; \
test -f $( DESTDIR) $( confdir) $$ dir/$$ filename || \
test -f $( DESTDIR) $( confdir) $$ dir/$$ filename.noload || \
$( INSTALL) -m 644 $( switch_srcdir) /conf/$* /$$ dir/$$ filename $( DESTDIR) $( confdir) $$ 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
2015-04-16 10:37:27 -04:00
fonts_DATA = fonts/FreeMono.ttf fonts/FreeMonoOblique.ttf fonts/FreeSansBoldOblique.ttf fonts/FreeSerifBold.ttf fonts/OFL.txt fonts/FreeMonoBold.ttf fonts/FreeSans.ttf fonts/FreeSansOblique.ttf fonts/FreeSerifBoldItalic.ttf fonts/README.fonts fonts/FreeMonoBoldOblique.ttf fonts/FreeSansBold.ttf fonts/FreeSerif.ttf fonts/FreeSerifItalic.ttf
2015-04-29 08:36:21 -04:00
images_DATA = images/default-avatar.png images/default-mute.png
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)
2015-04-16 10:37:27 -04:00
@for x in $( modulesdir) $( runtimedir) $( dbdir) $( logfiledir) $( logfiledir) /xml_cdr $( bindir) $( scriptdir) $( recordingsdir) $( grammardir) $( imagesdir) $( fontsdir) ; do \
2010-01-11 09:36:29 -05:00
$( mkinstalldirs) $( DESTDIR) $$ x ; \
2007-12-18 15:57:52 -05:00
done
2015-04-16 23:54:00 -04:00
test -d $( DESTDIR) $( confdir) || $( MAKE) samples-conf
2010-01-11 15:26:14 -05:00
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: " ; \
2019-10-01 11:57:25 -04:00
echo " git clone https://github.com/signalwire/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
2018-10-31 15:10:53 -04:00
iksemel-dep :
make -C src/mod/endpoints/mod_dingaling deps
2014-02-19 17:58:28 -05:00
core : $( switch_builddir ) /modules .conf src /include /switch_version .h $( CORE_LIBS )
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
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
2012-11-29 11:44:27 -05:00
pristine :
git clean -fdx
git reset --hard
2017-07-28 17:51:40 -04:00
update-clean : clean python -reconf
2009-04-29 22:45:12 -04:00
cd libs/esl && $( MAKE) clean
2014-02-24 15:56:49 -05:00
cd libs/srtp && $( MAKE) clean
2008-01-25 13:07:24 -05:00
2021-02-26 16:09:44 -05:00
swigall : src /include /switch_swigable_cpp .h
2008-05-02 14:40:23 -04:00
@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
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
2008-07-11 15:42:52 -04:00
python-reconf :
rm -f src/mod/languages/mod_python/Makefile
./config.status
2014-11-05 09:44:04 -05:00
reconf :
rm config.cache
sh ./config.status --recheck
sh ./config.status
2014-02-24 15:56:49 -05:00
srtp-reconf :
cd libs/srtp && $( MAKE) clean
2014-06-19 13:16:52 -04:00
cd libs/srtp && sh ./config.status --recheck
cd libs/srtp && sh ./config.status
2014-02-24 15:56:49 -05:00
2009-02-04 19:05:55 -05:00
iks-reconf :
cd libs/iksemel && $( MAKE) clean
cd libs/iksemel && autoreconf -fi
2014-10-02 19:25:43 -04:00
cd libs/iksemel && sh ./configure.gnu $( MY_DEFAULT_ARGS)
2009-02-04 19:05:55 -05:00
$( MAKE) mod_dingaling-clean
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!
2014-03-14 23:13:34 -04:00
@cat $( switch_srcdir) /cluecon2.tmpl
2012-09-24 15:38:06 -04:00
@echo
@echo http://www.cluecon.com
@sleep 5
2012-11-29 11:44:27 -05:00
sure : is -scm pristine update
git pull
sh bootstrap.sh
sh configure $( CONFIGURE_ARGS)
make $( MAKE_ARGS)
make reinstall
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
2014-05-08 15:58:28 -04:00
modules : libfreeswitch .la $( switch_builddir ) /modules .conf src /mod /modules .inc
2007-03-18 02:48:26 -04:00
@cd src/mod && $( MAKE) $( AM_MAKEFLAGS)
2007-03-14 10:35:11 -04:00
2014-05-08 15:58:28 -04:00
install_mod : libfreeswitch .la $( switch_builddir ) /modules .conf src /mod /modules .inc
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
2014-05-08 15:58:28 -04:00
uninstall_mod : $( switch_builddir ) /modules .conf src /mod /modules .inc
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
2014-05-08 15:58:28 -04:00
modclean : $( switch_builddir ) /modules .conf src /mod /modules .inc
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 :
2014-03-14 18:04:07 -04:00
rm -f $( modulesdir) /*.so $( modulesdir) /*.la $( modulesdir) /*.dll $( modulesdir) /*.dylib
2005-11-12 16:27:19 -05:00
2020-01-09 14:34:16 -05:00
print_tests : libfreeswitch .la $( switch_builddir ) /modules .conf src /mod /modules .inc
@cd tests/unit && $( MAKE) $( AM_MAKEFLAGS) print_tests
@cd src/mod && $( MAKE) $( AM_MAKEFLAGS) print_tests
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
2014-02-24 17:39:46 -05:00
rm -f ` find ./libs -name \* .o`
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
2015-09-28 16:06:15 -04:00