2005-11-12 21:27:19 +00:00
|
|
|
EXTRA_DIST =
|
2008-02-19 04:08:17 +00:00
|
|
|
SUBDIRS = . src build
|
2007-03-13 02:26:00 +00:00
|
|
|
AUTOMAKE_OPTS = foreign
|
2005-11-12 21:27:19 +00:00
|
|
|
NAME=freeswitch
|
2006-01-02 18:31:50 +00:00
|
|
|
PREFIX=$(prefix)
|
2006-12-16 23:22:45 +00:00
|
|
|
|
2007-03-11 04:02:10 +00:00
|
|
|
AM_CFLAGS = $(SWITCH_AM_CFLAGS)
|
2007-03-12 04:21:54 +00:00
|
|
|
AM_CPPFLAGS = $(SWITCH_AM_CXXFLAGS)
|
2007-03-11 04:02:10 +00:00
|
|
|
AM_LDFLAGS = $(SWITCH_AM_LDFLAGS)
|
2007-03-11 06:36:04 +00:00
|
|
|
BASE = $(switch_srcdir)
|
2007-03-16 19:20:24 +00:00
|
|
|
OSARCH=`uname -s`
|
2007-03-11 06:36:04 +00:00
|
|
|
|
2007-12-10 23:38:42 +00:00
|
|
|
DEFAULT_SOUNDS=en-us-callie-8000
|
|
|
|
|
2007-04-09 14:40:03 +00:00
|
|
|
.DEFAULT:
|
2007-10-22 01:47:02 +00:00
|
|
|
@target=`echo $@ | sed -e 's|^.*-||'`; \
|
2007-12-10 23:38:42 +00:00
|
|
|
target_prefix=`echo $@ | sed -e 's|-.*$$||'`; \
|
|
|
|
sound_perfix=`echo $@ | sed -e 's|-.*||'`; \
|
2007-12-11 00:11:43 +00: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)`; \
|
2008-05-20 19:24:23 +00:00
|
|
|
soundfile=`echo freeswitch-sounds-$$full_sound_dir-$(SOUNDS_VERSION).tar.gz`; \
|
2007-12-10 23:38:42 +00:00
|
|
|
if test "$$target" = "install"; then $(MAKE) $(AM_MAKEFLAGS) core_install; else $(MAKE) $(AM_MAKEFLAGS) core ; fi; \
|
|
|
|
if test "$$target_prefix" = "sounds"; then \
|
|
|
|
if test "$$target" = "install"; then $(GETSOUNDS) $$soundfile $(PREFIX)/sounds/; else $(GETSOUNDS) $$soundfile ; fi; \
|
|
|
|
else \
|
|
|
|
cd src/mod && $(MAKE) $(AM_MAKEFLAGS) $@ ;\
|
|
|
|
fi
|
2007-04-09 14:40:03 +00:00
|
|
|
|
2008-01-12 22:37:03 +00:00
|
|
|
sounds: sounds-en-us-callie-8000
|
|
|
|
sounds-install: sounds-en-us-callie-8000-install
|
2008-02-17 07:46:20 +00:00
|
|
|
moh: sounds-music-8000
|
|
|
|
moh-install: sounds-music-8000-install
|
2008-01-12 22:37:03 +00:00
|
|
|
|
2008-03-25 19:58:24 +00:00
|
|
|
hd-sounds: sounds-en-us-callie-8000 sounds-en-us-callie-16000
|
|
|
|
hd-sounds-install: sounds-en-us-callie-8000-install sounds-en-us-callie-16000-install
|
|
|
|
hd-moh: sounds-music-8000 sounds-music-16000
|
|
|
|
hd-moh-install: sounds-music-8000-install sounds-music-16000-install
|
|
|
|
|
|
|
|
uhd-sounds: sounds-en-us-callie-8000 sounds-en-us-callie-16000 sounds-en-us-callie-32000
|
|
|
|
uhd-sounds-install: sounds-en-us-callie-8000-install sounds-en-us-callie-16000-install sounds-en-us-callie-32000-install
|
|
|
|
uhd-moh: sounds-music-8000 sounds-music-16000 sounds-music-32000
|
|
|
|
uhd-moh-install: sounds-music-8000-install sounds-music-16000-install sounds-music-32000-install
|
|
|
|
|
2008-02-18 14:58:41 +00:00
|
|
|
libdir = @libdir@
|
|
|
|
bindir = @bindir@
|
|
|
|
includedir = @includedir@
|
2005-11-12 21:27:19 +00:00
|
|
|
libfreeswitch_la_SOURCES = \
|
2007-03-09 20:44:13 +00:00
|
|
|
src/switch_apr.c \
|
2005-11-12 21:27:19 +00:00
|
|
|
src/switch_buffer.c \
|
|
|
|
src/switch_caller.c \
|
|
|
|
src/switch_channel.c \
|
|
|
|
src/switch_console.c \
|
2007-03-29 22:31:56 +00:00
|
|
|
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 \
|
2005-11-12 21:27:19 +00:00
|
|
|
src/switch_core.c \
|
2007-03-29 22:31:56 +00:00
|
|
|
src/switch_scheduler.c \
|
2007-03-09 20:44:13 +00:00
|
|
|
src/switch_core_db.c\
|
2005-11-12 21:27:19 +00:00
|
|
|
src/switch_loadable_module.c \
|
2005-12-13 19:53:29 +00:00
|
|
|
src/switch_utils.c \
|
2006-01-06 02:07:24 +00:00
|
|
|
src/switch_event.c \
|
2006-01-26 17:57:25 +00:00
|
|
|
src/switch_resample.c \
|
2007-03-09 20:44:13 +00:00
|
|
|
src/switch_regex.c\
|
|
|
|
src/switch_rtp.c\
|
2007-03-29 22:31:56 +00:00
|
|
|
src/switch_ivr_bridge.c \
|
|
|
|
src/switch_ivr_originate.c \
|
|
|
|
src/switch_ivr_async.c \
|
|
|
|
src/switch_ivr_play_say.c \
|
|
|
|
src/switch_ivr_menu.c \
|
2006-04-04 16:07:40 +00:00
|
|
|
src/switch_ivr.c \
|
2006-04-11 21:13:44 +00:00
|
|
|
src/switch_stun.c\
|
2006-05-05 21:05:11 +00:00
|
|
|
src/switch_log.c\
|
2007-11-14 19:25:28 +00:00
|
|
|
src/switch_xml.cpp\
|
2007-11-09 19:25:46 +00:00
|
|
|
src/switch_config.c\
|
2007-11-13 18:47:08 +00:00
|
|
|
src/switch_time.c\
|
2007-05-04 23:29:35 +00:00
|
|
|
libs/stfu/stfu.c\
|
2007-05-08 00:29:49 +00:00
|
|
|
src/switch_cpp.cpp\
|
2008-02-18 19:43:57 +00:00
|
|
|
src/g711.c\
|
|
|
|
src/switch_pcm.c\
|
2007-03-23 20:41:16 +00:00
|
|
|
libs/libteletone/src/libteletone_detect.c\
|
|
|
|
libs/libteletone/src/libteletone_generate.c
|
|
|
|
|
2006-01-06 02:01:11 +00:00
|
|
|
|
2007-10-03 20:45:59 +00:00
|
|
|
|
2007-03-11 06:49:21 +00:00
|
|
|
library_includedir = $(PREFIX)/include
|
2007-03-09 20:44:13 +00:00
|
|
|
|
2006-02-22 17:20:39 +00:00
|
|
|
library_include_HEADERS = \
|
2006-04-03 21:00:13 +00:00
|
|
|
src/include/switch_am_config.h\
|
2006-02-22 17:20:39 +00:00
|
|
|
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\
|
2007-03-29 22:31:56 +00:00
|
|
|
src/include/switch_core_event_hook.h\
|
|
|
|
src/include/switch_scheduler.h\
|
2006-02-22 17:20:39 +00:00
|
|
|
src/include/switch_core.h\
|
2007-03-09 20:44:13 +00:00
|
|
|
src/include/switch_core_db.h\
|
2008-01-15 17:17:41 +00:00
|
|
|
src/include/switch_config.h\
|
2006-02-22 17:20:39 +00:00
|
|
|
src/include/switch_event.h\
|
|
|
|
src/include/switch_frame.h\
|
|
|
|
src/include/switch_ivr.h\
|
|
|
|
src/include/switch_loadable_module.h\
|
|
|
|
src/include/switch_module_interfaces.h\
|
|
|
|
src/include/switch_platform.h\
|
|
|
|
src/include/switch_resample.h\
|
2007-03-09 20:44:13 +00:00
|
|
|
src/include/switch_regex.h\
|
2006-02-22 17:20:39 +00:00
|
|
|
src/include/switch_types.h\
|
|
|
|
src/include/switch_utils.h\
|
2006-04-03 21:00:13 +00:00
|
|
|
src/include/switch_rtp.h\
|
2006-04-11 21:13:44 +00:00
|
|
|
src/include/switch_stun.h\
|
2006-05-05 21:05:11 +00:00
|
|
|
src/include/switch_log.h\
|
2007-03-23 20:41:16 +00:00
|
|
|
src/include/switch_xml.h\
|
2007-05-08 00:29:49 +00:00
|
|
|
src/include/switch_cpp.h\
|
2007-03-23 20:41:16 +00:00
|
|
|
libs/libteletone/src/libteletone_detect.h\
|
|
|
|
libs/libteletone/src/libteletone_generate.h\
|
2007-08-30 21:56:35 +00:00
|
|
|
libs/libteletone/src/libteletone.h\
|
|
|
|
src/include/switch_odbc.h
|
2007-03-23 20:41:16 +00:00
|
|
|
|
2007-03-16 19:20:24 +00:00
|
|
|
CORE_CFLAGS = `$(switch_srcdir)/libs/apr/apr-1-config --cflags --cppflags --includes`
|
|
|
|
CORE_CFLAGS += `$(switch_srcdir)/libs/apr-util/apu-1-config --includes`
|
2007-05-04 23:29:35 +00:00
|
|
|
CORE_CFLAGS += -I$(switch_srcdir)/libs/stfu
|
2007-03-11 06:36:04 +00:00
|
|
|
CORE_CFLAGS += -I$(switch_srcdir)/libs/sqlite
|
|
|
|
CORE_CFLAGS += -I$(switch_srcdir)/libs/pcre
|
|
|
|
CORE_CFLAGS += -I$(switch_srcdir)/libs/srtp/include
|
|
|
|
CORE_CFLAGS += -I$(switch_srcdir)/libs/srtp/crypto/include
|
2007-03-28 18:46:07 +00:00
|
|
|
CORE_CFLAGS += $(RESAMPLE_CFLAGS)
|
2007-03-09 20:44:13 +00:00
|
|
|
|
2008-01-16 11:42:01 +00:00
|
|
|
CORE_LIBS = libs/apr-util/libaprutil-1.la libs/apr/libapr-1.la
|
2007-03-11 07:36:49 +00:00
|
|
|
CORE_LIBS += libs/sqlite/libsqlite3.la libs/pcre/libpcre.la
|
2007-03-28 18:46:07 +00:00
|
|
|
CORE_LIBS += libs/srtp/libsrtp.la $(RESAMPLE_LIB)
|
2007-03-09 20:44:13 +00:00
|
|
|
|
|
|
|
lib_LTLIBRARIES = libfreeswitch.la
|
2007-03-11 04:02:10 +00:00
|
|
|
libfreeswitch_la_CFLAGS = $(CORE_CFLAGS) $(AM_CFLAGS)
|
2007-03-11 07:36:49 +00:00
|
|
|
libfreeswitch_la_LDFLAGS = -version-info 1:0:0 $(AM_LDFLAGS)
|
|
|
|
libfreeswitch_la_LIBADD = $(CORE_LIBS)
|
2007-04-24 18:00:08 +00:00
|
|
|
libfreeswitch_la_DEPENDENCIES = $(BUILT_SOURCES)
|
2008-04-30 19:42:26 +00:00
|
|
|
nodist_libfreeswitch_la_SOURCES = src/include/switch_version.h src/include/switch_swigable_cpp.h
|
2005-11-12 21:27:19 +00:00
|
|
|
|
2007-03-11 06:36:04 +00:00
|
|
|
MOD_LINK = $(BASE)/libfreeswitch.la
|
|
|
|
|
2008-04-30 19:42:26 +00:00
|
|
|
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
|
2007-03-11 04:02:10 +00:00
|
|
|
|
2007-03-22 23:20:23 +00:00
|
|
|
bin_PROGRAMS = freeswitch
|
|
|
|
freeswitch_SOURCES = src/switch.c
|
2008-04-30 19:42:26 +00:00
|
|
|
nodist_freeswitch_SOURCES = src/include/switch_version.h
|
2007-12-08 03:44:15 +00:00
|
|
|
freeswitch_CFLAGS = $(AM_CFLAGS) $(CORE_CFLAGS)
|
2007-03-23 00:39:55 +00:00
|
|
|
freeswitch_LDFLAGS = $(AM_LDFLAGS) -rpath $(libdir)
|
2007-05-02 15:43:17 +00:00
|
|
|
freeswitch_LDADD = libfreeswitch.la libs/apr/libapr-1.la
|
2008-02-23 00:26:21 +00:00
|
|
|
if ADD_LIBEDIT
|
|
|
|
freeswitch_CFLAGS += -Ilibs/libedit/src -DSWITCH_HAVE_LIBEDIT
|
|
|
|
freeswitch_LDADD += libs/libedit/src/.libs/libedit.a
|
|
|
|
endif
|
2007-05-02 15:43:17 +00:00
|
|
|
|
|
|
|
|
|
|
|
if ADD_LIBEDIT
|
|
|
|
CORE_CFLAGS += -Ilibs/libedit/src -DSWITCH_HAVE_LIBEDIT
|
|
|
|
CORE_LIBS += libs/libedit/src/.libs/libedit.a
|
|
|
|
endif
|
|
|
|
|
2007-08-30 21:56:35 +00:00
|
|
|
if ADD_ODBC
|
2007-10-12 03:28:59 +00:00
|
|
|
CORE_CFLAGS += -DSWITCH_HAVE_ODBC
|
2007-08-30 21:56:35 +00:00
|
|
|
libfreeswitch_la_SOURCES += src/switch_odbc.c
|
2008-02-07 23:45:11 +00:00
|
|
|
libfreeswitch_la_LDFLAGS += -Wl,-lodbc
|
2007-08-30 21:56:35 +00:00
|
|
|
endif
|
2007-04-30 20:37:41 +00:00
|
|
|
|
2008-01-16 14:27:03 +00:00
|
|
|
bin_SCRIPTS = scripts/gentls_cert scripts/fsxs
|
2007-04-30 20:37:41 +00:00
|
|
|
|
2008-04-30 19:42:26 +00:00
|
|
|
src/include/switch_swigable_cpp.h: src/include/switch_cpp.h
|
|
|
|
$(CC) -E src/include/switch_cpp.h -DSWITCH_DECLARE\(x\)=x -DSWITCH_DECLARE_CONSTRUCTOR= -DSWITCH_DECLARE_NONSTD\(x\)=x 2>/dev/null | grep -v "^#" > src/include/switch_swigable_cpp.h
|
2007-10-03 20:45:59 +00:00
|
|
|
|
2007-12-13 14:36:14 +00:00
|
|
|
libs/libedit/src/.libs/libedit.a:
|
2007-04-30 20:37:41 +00:00
|
|
|
cd libs/libedit && $(MAKE)
|
2006-03-07 20:09:10 +00:00
|
|
|
|
2007-04-03 10:53:47 +00:00
|
|
|
$(libfreeswitch_la_SOURCES): $(CORE_LIBS) $(switch_builddir)/quiet_libtool modules.conf
|
2007-03-18 19:23:09 +00:00
|
|
|
|
|
|
|
$(switch_builddir)/quiet_libtool: $(switch_builddir)/libtool
|
|
|
|
@cat libtool | sed -e 's|$$show "$$command"|if test -z "$$suppress_output" ; then $$show "Compiling $$srcfile ..." ; fi|' > quiet_libtool
|
2007-03-17 19:02:26 +00:00
|
|
|
|
2008-05-16 18:40:39 +00:00
|
|
|
vm-sync:
|
|
|
|
test -d $(DESTDIR)$(prefix)/conf || $(mkinstalldirs) $(DESTDIR)$(prefix)/conf
|
|
|
|
test -d $(DESTDIR)$(prefix)/conf/lang || $(mkinstalldirs) $(DESTDIR)$(prefix)/conf/lang
|
|
|
|
test -d $(DESTDIR)$(prefix)/conf/lang/en || $(mkinstalldirs) $(DESTDIR)$(prefix)/conf/lang/en
|
|
|
|
test -d $(DESTDIR)$(prefix)/conf/lang/en/vm || $(mkinstalldirs) $(DESTDIR)$(prefix)/conf/lang/en/vm
|
|
|
|
$(INSTALL) -m 644 conf/lang/en/vm/* $(DESTDIR)$(prefix)/conf/lang/en/vm
|
|
|
|
|
2007-12-18 20:57:52 +00:00
|
|
|
samples-conf:
|
|
|
|
test -d $(DESTDIR)$(prefix)/conf || $(mkinstalldirs) $(DESTDIR)$(prefix)/conf
|
2008-01-18 00:35:09 +00:00
|
|
|
test -d $(DESTDIR)$(prefix)/conf/dialplan/extensions || $(mkinstalldirs) $(DESTDIR)$(prefix)/conf/dialplan/extensions
|
2008-01-14 15:24:14 +00:00
|
|
|
for conffile in `find conf -name \*.xml && find conf -name \*.conf && find conf -name \*.tpl && find conf -name \*.ttml && find conf -name mime.types` ; do \
|
2007-11-26 23:59:00 +00:00
|
|
|
dir=`echo $$conffile | sed -e 's|/[^/]*$$||'`; \
|
|
|
|
filename=`echo $$conffile | sed -e 's|^.*/||'`; \
|
|
|
|
test -d $(DESTDIR)$(PREFIX)/$$dir || $(mkinstalldirs) $(DESTDIR)$(prefix)/$$dir ; \
|
2007-12-11 23:24:38 +00:00
|
|
|
test -f $(DESTDIR)$(PREFIX)/$$dir/$$filename || \
|
|
|
|
test -f $(DESTDIR)$(PREFIX)/$$dir/$$filename.noload || \
|
2008-01-14 06:14:04 +00:00
|
|
|
$(INSTALL) -m 644 $$dir/$$filename $(DESTDIR)$(PREFIX)/$$dir; \
|
2007-12-18 20:57:52 +00:00
|
|
|
done
|
|
|
|
|
|
|
|
samples-htdocs:
|
|
|
|
test -d $(DESTDIR)$(prefix)/htdocs || $(mkinstalldirs) $(DESTDIR)$(prefix)/htdocs
|
2007-11-29 04:07:41 +00:00
|
|
|
for htdocsfile in `find htdocs -name \* | grep -v .svn` ; do \
|
|
|
|
dir=`echo $$htdocsfile | sed -e 's|/[^/]*$$||'`; \
|
|
|
|
filename=`echo $$htdocsfile | sed -e 's|^.*/||'`; \
|
|
|
|
test -d $(DESTDIR)$(PREFIX)/$$dir || $(mkinstalldirs) $(DESTDIR)$(prefix)/$$dir ; \
|
2008-02-22 00:13:37 +00:00
|
|
|
test -f $(DESTDIR)$(PREFIX)/$$dir/$$filename || $(INSTALL) -m 644 $$dir/$$filename $(DESTDIR)$(PREFIX)/$$dir 2>/dev/null; \
|
2007-12-18 20:57:52 +00:00
|
|
|
done
|
|
|
|
|
|
|
|
samples: samples-conf samples-htdocs
|
|
|
|
|
|
|
|
install-data-local:
|
|
|
|
@echo Installing $(NAME)
|
2008-02-15 23:53:58 +00:00
|
|
|
@for x in mod db log log/xml_cdr bin scripts grammar recordings ; do \
|
2007-12-18 20:57:52 +00:00
|
|
|
$(mkinstalldirs) $(DESTDIR)$(prefix)/$$x ; \
|
|
|
|
done
|
2008-02-18 14:58:41 +00:00
|
|
|
$(mkinstalldirs) $(DESTDIR)@modinstdir@
|
2007-12-18 20:57:52 +00:00
|
|
|
test -d $(DESTDIR)$(prefix)/conf || $(MAKE) samples-conf
|
|
|
|
test -d $(DESTDIR)$(prefix)/htdocs || $(MAKE) samples-htdocs
|
2007-03-13 02:26:00 +00:00
|
|
|
|
2007-03-13 06:17:58 +00:00
|
|
|
.version:
|
|
|
|
touch .version
|
|
|
|
|
|
|
|
src/include/switch_version.h: $(top_srcdir)/src/include/switch_version.h.in .version $(libfreeswitch_la_SOURCES) $(library_include_HEADERS)
|
2007-08-19 05:01:08 +00:00
|
|
|
@have_version=1 ; \
|
|
|
|
force=0 ; \
|
|
|
|
grep "@SWITCH_VERSION_REVISION@" src/include/switch_version.h.in > /dev/null && have_version=0 ; \
|
|
|
|
test ! -f src/include/switch_version.h || grep "@SWITCH_VERSION_REVISION@" src/include/switch_version.h > /dev/null && force=1 ; \
|
|
|
|
if test $$have_version = 1 ; then \
|
|
|
|
cat src/include/switch_version.h.in > src/include/switch_version.h ; \
|
|
|
|
touch .version ; \
|
|
|
|
else \
|
|
|
|
version=`svnversion . -n || echo hacked` ; \
|
|
|
|
oldversion=`cat .version 2>/dev/null || echo "0"` ; \
|
|
|
|
if test "$$oldversion" != "$$version" || test $$force = 1 ; then \
|
|
|
|
cat src/include/switch_version.h.in | sed "s/@SWITCH_VERSION_REVISION@/$$version/g" > src/include/switch_version.h ; \
|
|
|
|
echo $$version > .version ; \
|
|
|
|
fi ; \
|
2007-03-13 06:17:58 +00:00
|
|
|
fi ;
|
2005-12-28 15:42:49 +00:00
|
|
|
|
2007-03-13 06:44:30 +00:00
|
|
|
update:
|
|
|
|
@if test -d .svn ; then \
|
|
|
|
test ! -f .version || rm -f .version ; \
|
|
|
|
echo Updating... ; \
|
|
|
|
svn update ; \
|
|
|
|
else \
|
|
|
|
echo "This source directory is not an svn working copy" ; \
|
|
|
|
fi
|
|
|
|
|
2005-12-28 15:42:49 +00:00
|
|
|
.nodepends:
|
2005-12-21 17:22:38 +00:00
|
|
|
touch .nodepends
|
|
|
|
|
2005-12-28 15:42:49 +00:00
|
|
|
nodepends: .nodepends
|
|
|
|
|
|
|
|
yesdepends:
|
|
|
|
rm .nodepends
|
|
|
|
|
2007-03-17 03:00:30 +00:00
|
|
|
libs/apr/libapr-1.la: libs/apr libs/apr/.update
|
2007-03-18 05:20:35 +00:00
|
|
|
@cd libs/apr && $(MAKE)
|
|
|
|
@$(TOUCH_TARGET)
|
2007-03-17 03:00:30 +00:00
|
|
|
|
2007-04-03 04:42:48 +00:00
|
|
|
libs/apr-util/libaprutil-1.la: libs/apr-util libs/apr-util/.update libs/apr/libapr-1.la
|
2007-03-18 05:20:35 +00:00
|
|
|
@cd libs/apr-util && $(MAKE)
|
|
|
|
@$(TOUCH_TARGET)
|
2007-03-17 03:00:30 +00:00
|
|
|
|
|
|
|
libs/sqlite/libsqlite3.la: libs/sqlite libs/sqlite/.update
|
2007-12-19 21:13:09 +00:00
|
|
|
@cd libs/sqlite && $(MAKE) CFLAGS="$(SWITCH_AM_CFLAGS)"
|
2007-03-18 05:20:35 +00:00
|
|
|
@$(TOUCH_TARGET)
|
2007-03-17 03:00:30 +00:00
|
|
|
|
|
|
|
libs/pcre/libpcre.la: libs/pcre libs/pcre/.update
|
2007-03-18 05:20:35 +00:00
|
|
|
@cd libs/pcre && $(MAKE)
|
|
|
|
@$(TOUCH_TARGET)
|
2007-03-17 03:00:30 +00:00
|
|
|
|
|
|
|
libs/srtp/libsrtp.la: libs/srtp libs/srtp/.update
|
2007-03-18 05:20:35 +00:00
|
|
|
@cd libs/srtp && $(MAKE)
|
|
|
|
@$(TOUCH_TARGET)
|
2007-03-17 03:00:30 +00:00
|
|
|
|
2007-03-28 18:46:07 +00:00
|
|
|
if USE_INTREE_RESAMPLE
|
2007-03-17 03:00:30 +00:00
|
|
|
libs/libresample/libresample.la: libs/libresample libs/libresample/.update
|
2007-03-18 05:20:35 +00:00
|
|
|
@cd libs/libresample && $(MAKE)
|
|
|
|
@$(TOUCH_TARGET)
|
2007-03-28 18:46:07 +00:00
|
|
|
endif
|
2007-03-11 07:36:49 +00:00
|
|
|
|
2007-04-24 18:00:08 +00:00
|
|
|
core:
|
|
|
|
$(MAKE) $(AM_MAKEFLAGS) libfreeswitch.la
|
2007-03-11 07:36:49 +00:00
|
|
|
|
2008-01-07 08:33:53 +00:00
|
|
|
core-clean: clean_core
|
2008-01-07 08:22:18 +00:00
|
|
|
|
|
|
|
core-install: core_install
|
|
|
|
|
2007-10-03 20:45:59 +00:00
|
|
|
clean_core: clean-libLTLIBRARIES
|
|
|
|
|
2007-03-14 22:30:02 +00:00
|
|
|
install_core: install-libLTLIBRARIES
|
|
|
|
|
|
|
|
core_install: install_core
|
|
|
|
|
2007-03-13 02:26:00 +00:00
|
|
|
everything: install
|
2005-12-28 05:17:21 +00:00
|
|
|
|
2008-02-02 17:55:08 +00:00
|
|
|
up: clean
|
|
|
|
svn update
|
|
|
|
$(MAKE) -j core
|
|
|
|
$(MAKE) -j modules
|
|
|
|
$(MAKE) install
|
|
|
|
|
2008-04-03 14:31:47 +00:00
|
|
|
sync:
|
2008-05-08 21:11:49 +00:00
|
|
|
svn update
|
2008-05-08 21:17:47 +00:00
|
|
|
$(MAKE) install
|
2008-05-08 21:11:49 +00:00
|
|
|
|
|
|
|
speedy-sync:
|
2008-04-03 14:31:47 +00:00
|
|
|
svn update
|
|
|
|
$(MAKE) -j install
|
|
|
|
|
2008-02-18 23:40:03 +00:00
|
|
|
libs/openzap/Makefile:
|
|
|
|
cd libs/openzap && autoconf
|
|
|
|
cd libs/openzap && ./configure
|
|
|
|
|
|
|
|
update-clean: clean modwipe uninstall libs/openzap/Makefile
|
2008-01-25 18:07:24 +00:00
|
|
|
cd libs/sofia-sip && $(MAKE) clean
|
2008-01-28 20:57:02 +00:00
|
|
|
cd libs/openzap && $(MAKE) clean
|
2008-01-25 18:07:24 +00:00
|
|
|
|
2008-05-02 18:40:23 +00:00
|
|
|
swigall:
|
|
|
|
@echo reswigging all
|
|
|
|
sh ./build/swigall.sh
|
|
|
|
|
2008-01-25 18:07:24 +00:00
|
|
|
sure: update-clean all
|
|
|
|
|
|
|
|
speedy-sure: update-clean
|
|
|
|
$(MAKE) -j core
|
2008-02-01 14:24:35 +00:00
|
|
|
cd libs/sofia-sip && $(MAKE) -j
|
2008-01-25 18:07:24 +00:00
|
|
|
$(MAKE) -j modules
|
2006-01-05 21:03:22 +00:00
|
|
|
|
2008-05-17 15:42:28 +00:00
|
|
|
sofia-reconf:
|
|
|
|
cd libs/sofia-sip && $(MAKE) clean
|
2008-05-22 18:56:51 +00:00
|
|
|
cd libs/sofia-sip && sh ./autogen.sh
|
2008-05-17 15:42:28 +00:00
|
|
|
cd libs/sofia-sip && ./configure --prefix=$(PREFIX) --with-pic --with-glib=no --disable-shared
|
|
|
|
|
2008-01-28 15:55:24 +00:00
|
|
|
current: update-clean
|
|
|
|
svn update
|
|
|
|
$(MAKE) all
|
|
|
|
$(MAKE) install
|
|
|
|
|
2008-05-02 18:40:23 +00:00
|
|
|
installall: current
|
|
|
|
|
2008-02-01 14:24:35 +00:00
|
|
|
speedy-current: update-clean
|
|
|
|
svn update
|
|
|
|
$(MAKE) speedy-sure
|
|
|
|
$(MAKE) install
|
|
|
|
|
2007-03-13 02:26:00 +00:00
|
|
|
wayclean: clean
|
2006-09-07 03:58:01 +00:00
|
|
|
|
2007-03-13 02:26:00 +00:00
|
|
|
modules: libfreeswitch.la
|
2007-03-18 06:48:26 +00:00
|
|
|
@cd src/mod && $(MAKE) $(AM_MAKEFLAGS)
|
2007-03-14 14:35:11 +00:00
|
|
|
|
2007-03-13 02:26:00 +00:00
|
|
|
install_mod: libfreeswitch.la
|
2007-03-18 06:48:26 +00:00
|
|
|
@cd src/mod && $(MAKE) $(AM_MAKEFLAGS) install
|
2007-03-14 14:35:11 +00:00
|
|
|
|
2007-03-14 22:30:02 +00:00
|
|
|
mod_install: install_mod
|
|
|
|
|
2007-03-14 14:35:11 +00:00
|
|
|
uninstall_mod:
|
2007-03-18 06:48:26 +00:00
|
|
|
@cd src/mod && $(MAKE) $(AM_MAKEFLAGS) uninstall
|
2007-03-14 14:35:11 +00:00
|
|
|
|
2007-03-14 22:30:02 +00:00
|
|
|
mod_uninstall: uninstall_mod
|
|
|
|
|
2007-03-13 02:26:00 +00:00
|
|
|
modclean:
|
2007-03-18 16:04:41 +00:00
|
|
|
@cd src/mod && $(MAKE) $(AM_MAKEFLAGS) clean
|
2006-01-05 21:03:22 +00:00
|
|
|
|
2006-01-03 22:36:56 +00:00
|
|
|
modwipe:
|
2006-04-07 03:58:22 +00:00
|
|
|
rm -f $(PREFIX)/mod/*.${DYNAMIC_LIB_EXTEN}
|
2005-11-12 21:27:19 +00:00
|
|
|
|
2006-01-01 15:23:12 +00:00
|
|
|
dox:
|
2006-01-03 22:49:25 +00:00
|
|
|
cd docs && doxygen $(PWD)/docs/Doxygen.conf
|
2005-11-12 21:27:19 +00:00
|
|
|
|
2008-01-16 14:27:03 +00:00
|
|
|
scripts/fsxs: scripts/fsxs.in
|
|
|
|
@echo creating fsxs
|
2008-02-18 14:58:41 +00:00
|
|
|
@sed -e "s,@MODULES_DIR\@,@modinstdir@," \
|
|
|
|
-e "s,@LIB_DIR\@,@libdir@," \
|
|
|
|
-e "s,@BIN_DIR\@,@bindir@," \
|
|
|
|
-e "s,@INC_DIR\@,@includedir@," \
|
2008-01-16 14:27:03 +00:00
|
|
|
-e "s,@CFG_DIR\@,$(PREFIX)/conf," \
|
|
|
|
-e "s,@DB_DIR\@,$(PREFIX)/db," \
|
|
|
|
-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) `$(switch_srcdir)/libs/apr/apr-1-config --cflags --cppflags`|" \
|
|
|
|
-e "s|@INCLUDES\@|-I$(PREFIX)/include|" \
|
|
|
|
-e "s|@SOLINK\@|$(SOLINK)|" \
|
|
|
|
-e "s|@LDFLAGS\@|-L$(PREFIX)/lib|" \
|
|
|
|
-e "s|@LIBS\@|`$(switch_srcdir)/libs/apr/apr-1-config --libs` `$(switch_srcdir)/libs/apr-util/apu-1-config --libs`|" \
|
|
|
|
scripts/fsxs.in > scripts/fsxs
|
|
|
|
|
2005-11-12 21:27:19 +00: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-17 01:45:13 +00:00
|
|
|
rm -f `find ./libs -name \*.la`
|
2007-03-28 17:33:05 +00:00
|
|
|
|
2007-12-14 04:05:01 +00:00
|
|
|
libclean:
|
2008-02-18 14:58:41 +00:00
|
|
|
@for file in `ls ./libs`; do pushd "./libs/"$$file; make clean; rm -f .built; popd; done
|
2007-12-14 04:05:01 +00:00
|
|
|
|
2007-04-03 10:53:47 +00:00
|
|
|
modules.conf:
|
2007-04-03 11:57:57 +00:00
|
|
|
if test -f $@; then touch $@; else cp build/modules.conf.in $@ ;fi
|
2007-04-03 10:53:47 +00:00
|
|
|
|
2007-04-09 14:40:03 +00:00
|
|
|
$(OUR_MODULES):
|
2007-04-03 10:53:47 +00: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-28 17:33:05 +00:00
|
|
|
|
|
|
|
# Special targets
|
|
|
|
|
|
|
|
coffee me_a_sandwich me_a_sammich:
|
|
|
|
@echo "Who do you think I am? Make it yourself!"
|