]>
Commit | Line | Data |
---|---|---|
4da77ea5 | 1 | EXTRA_DIST = |
ffc4a6e3 | 2 | SUBDIRS = . src build tests/unit |
d4b4ef8d | 3 | AUTOMAKE_OPTIONS = foreign subdir-objects |
8b3f71cc | 4 | NAME = freeswitch |
6bc48b70 | 5 | |
48712895 TC |
6 | if SYSTEM_APR |
7 | AM_LIBAPR_CFLAGS := $(shell apr-1-config --cflags) | |
8 | AM_LIBAPR_CPPFLAGS := $(shell apr-1-config --cppflags --includes) | |
9 | AM_LIBAPR_LDFLAGS := $(shell apr-1-config --ldflags) | |
10 | AM_LIBAPR_LIBS := $(shell apr-1-config \--libs) | |
11 | AM_LIBAPR_LINKLIBTOOL := $(shell apr-1-config \--link-libtool) | |
12 | else | |
bf4440d0 TC |
13 | AM_LIBAPR_CFLAGS := $(shell ./libs/apr/apr-1-config --cflags) |
14 | AM_LIBAPR_CPPFLAGS := $(shell ./libs/apr/apr-1-config --cppflags --includes) | |
15 | AM_LIBAPR_LDFLAGS := $(shell ./libs/apr/apr-1-config --ldflags) | |
dc267d43 | 16 | AM_LIBAPR_LIBS := $(subst $(switch_builddir)/,,$(shell ./libs/apr/apr-1-config \--libs)) |
48712895 | 17 | endif |
bf4440d0 | 18 | |
1540546c | 19 | |
a85f9aa5 | 20 | AM_CFLAGS = $(SWITCH_AM_CFLAGS) $(SWITCH_ANSI_CFLAGS) |
1540546c MJ |
21 | AM_CPPFLAGS = |
22 | AM_CPPFLAGS += -I$(switch_srcdir)/libs/libvpx | |
a0c0c1fa MJ |
23 | AM_CPPFLAGS += $(SWITCH_AM_CXXFLAGS) |
24 | AM_LDFLAGS = $(SWITCH_AM_LDFLAGS) $(AM_LIBAPR_LDFLAGS) $(AM_LIBAPU_LDFLAGS) | |
18cf58db | 25 | |
3d5fcabe | 26 | DEFAULT_SOUNDS=en-us-callie-8000 |
d17f14ef | 27 | MY_DEFAULT_ARGS= --build=$(build) --host=$(host) --target=$(target) --prefix="$(prefix)" --exec_prefix="$(exec_prefix)" --libdir="$(libdir)" |
3d5fcabe | 28 | |
e49feac7 MJ |
29 | .INTERMEDIATE: -ldl -liconv -lpthread |
30 | ||
31069f33 | 31 | .DEFAULT: $(switch_builddir)/modules.conf src/mod/modules.inc |
b6c408a9 | 32 | @target=`echo $@ | sed -e 's|^.*-||'`; \ |
3d5fcabe MJ |
33 | target_prefix=`echo $@ | sed -e 's|-.*$$||'`; \ |
34 | sound_perfix=`echo $@ | sed -e 's|-.*||'`; \ | |
ff7878bc | 35 | moh_version=`cat $(switch_srcdir)/build/moh_version.txt`;\ |
84026be7 MJ |
36 | full_sound_dir=`echo $@ | sed -e 's|^sounds||' | sed -e 's|^-||' | sed -e 's|-install$$||'`; \ |
37 | test ! -z $$full_sound_dir || full_sound_dir=`echo $(DEFAULT_SOUNDS)`; \ | |
05cc65b2 JL |
38 | base_sound_dir=`echo $$full_sound_dir | sed -e 's|-[^-]*000$$||' ` ;\ |
39 | sounds_version=`grep $$base_sound_dir $(switch_srcdir)/build/sounds_version.txt | cut -d ' ' -f2`;\ | |
de3e190a BW |
40 | soundfile=`echo freeswitch-sounds-$$full_sound_dir-$$moh_version.tar.gz`; \ |
41 | echo $$full_sound_dir | grep music >/dev/null || soundfile=`echo freeswitch-sounds-$$full_sound_dir-$$sounds_version.tar.gz`; \ | |
c8560231 | 42 | args="$@"; if test -z "$$args" || test "$${args#-l*}" = "$$args"; then \ |
71368da7 TC |
43 | if test "$$target_prefix" = "sounds"; then \ |
44 | if test "$$target" = "install"; then \ | |
45 | $(GETSOUNDS) $$soundfile $(DESTDIR)$(soundsdir)/;\ | |
46 | else \ | |
47 | $(GETSOUNDS) $$soundfile ; \ | |
48 | fi; \ | |
34df9019 | 49 | else \ |
71368da7 TC |
50 | if test "$$target" = "install"; then \ |
51 | $(MAKE) $(AM_MAKEFLAGS) core_install && cd src/mod && $(MAKE) $(AM_MAKEFLAGS) $@ ; \ | |
52 | else \ | |
f4e68221 MJ |
53 | if test "$$target" = "clean"; then \ |
54 | cd src/mod && $(MAKE) $(AM_MAKEFLAGS) $@ ;\ | |
55 | else \ | |
56 | $(MAKE) $(AM_MAKEFLAGS) core && cd src/mod && $(MAKE) $(AM_MAKEFLAGS) $@ ;\ | |
57 | fi; \ | |
71368da7 TC |
58 | fi; \ |
59 | fi; fi | |
5f053e18 | 60 | |
020ad53f MJ |
61 | sounds: sounds-en-us-callie-8000 |
62 | sounds-install: sounds-en-us-callie-8000-install | |
a972bf6d MJ |
63 | sounds-allison: sounds-en-us-allison-8000 |
64 | sounds-allison-install: sounds-en-us-allison-8000-install | |
2ddb4079 MJ |
65 | sounds-ru: sounds-ru-RU-elena-8000 |
66 | sounds-ru-install: sounds-ru-RU-elena-8000-install | |
f809d406 MJ |
67 | sounds-fr: sounds-fr-ca-june-8000 |
68 | sounds-fr-install: sounds-fr-ca-june-8000-install | |
55f44c96 MJ |
69 | moh: sounds-music-8000 |
70 | moh-install: sounds-music-8000-install | |
020ad53f | 71 | |
d042b78e BW |
72 | hd-sounds: sounds sounds-en-us-callie-16000 |
73 | hd-sounds-install: sounds-install sounds-en-us-callie-16000-install | |
a972bf6d MJ |
74 | hd-sounds-allison: sounds-allison sounds-en-us-allison-16000 |
75 | hd-sounds-allison-install: sounds-allison-install sounds-en-us-allison-16000-install | |
2ddb4079 MJ |
76 | hd-sounds-ru: sounds-ru sounds-ru-RU-elena-16000 |
77 | hd-sounds-ru-install: sounds-ru-install sounds-ru-RU-elena-16000-install | |
f809d406 MJ |
78 | hd-sounds-fr: sounds-fr-ca-june-16000 |
79 | hd-sounds-fr-install: sounds-fr-ca-june-16000-install | |
d042b78e BW |
80 | hd-moh: moh sounds-music-16000 |
81 | hd-moh-install: moh-install sounds-music-16000-install | |
f0eec732 | 82 | |
d042b78e BW |
83 | uhd-sounds: hd-sounds sounds-en-us-callie-32000 |
84 | uhd-sounds-install: hd-sounds-install sounds-en-us-callie-32000-install | |
a972bf6d MJ |
85 | uhd-sounds-allison: hd-sounds-allison sounds-en-us-allison-32000 |
86 | uhd-sounds-allison-install: hd-sounds-allison-install sounds-en-us-allison-32000-install | |
2ddb4079 MJ |
87 | uhd-sounds-ru: hd-sounds-ru sounds-ru-RU-elena-32000 |
88 | uhd-sounds-ru-install: hd-sounds-ru-install sounds-ru-RU-elena-32000-install | |
f809d406 MJ |
89 | uhd-sounds-fr: sounds-fr-ca-june-32000 |
90 | uhd-sounds-fr-install: sounds-fr-ca-june-32000-install | |
d042b78e BW |
91 | uhd-moh: hd-moh sounds-music-32000 |
92 | uhd-moh-install: hd-moh-install sounds-music-32000-install | |
93 | ||
94 | cd-sounds: uhd-sounds sounds-en-us-callie-48000 | |
95 | cd-sounds-install: uhd-sounds-install sounds-en-us-callie-48000-install | |
a972bf6d MJ |
96 | cd-sounds-allison: uhd-sounds-allison sounds-en-us-allison-48000 |
97 | cd-sounds-allison-install: uhd-sounds-allison-install sounds-en-us-allison-48000-install | |
2ddb4079 MJ |
98 | cd-sounds-ru: uhd-sounds-ru sounds-ru-RU-elena-48000 |
99 | cd-sounds-ru-install: uhd-sounds-ru-install sounds-ru-RU-elena-48000-install | |
f809d406 MJ |
100 | cd-sounds-fr: sounds-fr-ca-june-48000 |
101 | cd-sounds-fr-install: sounds-fr-ca-june-48000-install | |
d042b78e BW |
102 | cd-moh: uhd-moh sounds-music-48000 |
103 | cd-moh-install: uhd-moh-install sounds-music-48000-install | |
f0eec732 | 104 | |
97c79744 MJ |
105 | # This directory's subdirectories are mostly independent; you can cd |
106 | # into them and run `make' without going through this Makefile. | |
107 | # To change the values of `make' variables: instead of editing Makefiles, | |
108 | # (1) if the variable is set in `config.status', edit `config.status' | |
109 | # (which will cause the Makefiles to be regenerated when you run `make'); | |
110 | # (2) otherwise, pass the desired values on the `make' command line. | |
ba8e3e8c MJ |
111 | all-recursive: libfreeswitch.la |
112 | clean-recusive: clean_core | |
ae7e03da | 113 | install-recursive: install-libLTLIBRARIES install-binPROGRAMS |
bc7c3fea | 114 | |
bf4440d0 TC |
115 | CORE_CFLAGS = $(AM_LIBAPR_CFLAGS) $(AM_LIBAPR_CPPFLAGS) |
116 | CORE_CFLAGS += $(AM_LIBAPU_CPPFLAGS) | |
8b3f71cc | 117 | CORE_CFLAGS += -I$(switch_srcdir)/libs/srtp/include |
1540546c | 118 | if ENABLE_LIBYUV |
44da905b | 119 | CORE_CFLAGS += -I$(switch_srcdir)/libs/libyuv/include |
1540546c MJ |
120 | CORE_CFLAGS += -DSWITCH_HAVE_YUV |
121 | endif | |
8b3f71cc | 122 | CORE_CFLAGS += -I$(switch_srcdir)/libs/srtp/crypto/include -Ilibs/srtp/crypto/include |
231d5e64 | 123 | CORE_CFLAGS += $(SPANDSP_CFLAGS) |
1540546c | 124 | if ENABLE_LIBVPX |
febe0f8d | 125 | CORE_CFLAGS += -DSWITCH_HAVE_VPX |
1540546c | 126 | endif |
8b3f71cc | 127 | |
396ccaff | 128 | APR_LIBS = $(AM_LIBAPU_LIBS) $(AM_LIBAPR_LIBS) |
1540546c MJ |
129 | CORE_LIBS= |
130 | ||
131 | if ENABLE_LIBVPX | |
132 | CORE_LIBS += libs/libvpx/libvpx.a | |
133 | endif | |
0b215827 AF |
134 | if SYSTEM_APR |
135 | CORE_LIBS += $(AM_LIBAPR_LINKLIBTOOL) | |
136 | else | |
137 | CORE_LIBS += libs/apr/libapr-1.la | |
138 | endif | |
74ed2cef | 139 | |
a8b87ffe AM |
140 | if ENABLE_SRTP |
141 | CORE_CFLAGS += -DENABLE_SRTP | |
8b3f71cc | 142 | CORE_LIBS += libs/srtp/libsrtp.la |
a8b87ffe | 143 | endif |
8b3f71cc MJ |
144 | |
145 | MOD_LINK = $(switch_srcdir)/libfreeswitch.la | |
146 | CLEANFILES = src/include/switch_version.h src/include/switch_swigable_cpp.h | |
31069f33 | 147 | BUILT_SOURCES = src/mod/modules.inc src/include/switch_version.h src/include/switch_swigable_cpp.h |
8b3f71cc | 148 | |
31b743d6 | 149 | if HAVE_ODBC |
8b3f71cc | 150 | CORE_CFLAGS += -DSWITCH_HAVE_ODBC $(ODBC_INC_FLAGS) |
59ba5a15 MJ |
151 | endif |
152 | ||
086cf1c2 MJ |
153 | if HAVE_PNG |
154 | CORE_CFLAGS += -DSWITCH_HAVE_PNG $(LIBPNG_CFLAGS) | |
155 | endif | |
156 | ||
c07513ea AM |
157 | if HAVE_FREETYPE |
158 | CORE_CFLAGS += -DSWITCH_HAVE_FREETYPE $(LIBFREETYPE_CFLAGS) | |
159 | endif | |
160 | ||
9b8a5edd AM |
161 | if HAVE_GUMBO |
162 | CORE_CFLAGS += -DSWITCH_HAVE_GUMBO $(LIBGUMBO_CFLAGS) | |
163 | endif | |
164 | ||
99d2e5e2 SD |
165 | if HAVE_FVAD |
166 | CORE_CFLAGS += -DSWITCH_HAVE_FVAD $(LIBFVAD_CFLAGS) | |
167 | endif | |
168 | ||
8b3f71cc MJ |
169 | ## |
170 | ## libfreeswitch | |
171 | ## | |
231d5e64 | 172 | noinst_LTLIBRARIES = |
1540546c MJ |
173 | if ENABLE_LIBYUV |
174 | noinst_LTLIBRARIES += libfreeswitch_libyuv.la | |
175 | endif | |
44da905b | 176 | |
1540546c | 177 | if ENABLE_LIBYUV |
44da905b | 178 | libfreeswitch_libyuv_la_SOURCES = \ |
b644421c AM |
179 | libs/libyuv/source/compare.cc \ |
180 | libs/libyuv/source/compare_common.cc \ | |
181 | libs/libyuv/source/compare_gcc.cc \ | |
182 | libs/libyuv/source/compare_mmi.cc \ | |
183 | libs/libyuv/source/compare_msa.cc \ | |
184 | libs/libyuv/source/compare_neon64.cc \ | |
185 | libs/libyuv/source/compare_neon.cc \ | |
186 | libs/libyuv/source/compare_win.cc \ | |
187 | libs/libyuv/source/convert_argb.cc \ | |
188 | libs/libyuv/source/convert.cc \ | |
189 | libs/libyuv/source/convert_from_argb.cc \ | |
190 | libs/libyuv/source/convert_from.cc \ | |
191 | libs/libyuv/source/convert_jpeg.cc \ | |
192 | libs/libyuv/source/convert_to_argb.cc \ | |
193 | libs/libyuv/source/convert_to_i420.cc \ | |
194 | libs/libyuv/source/cpu_id.cc \ | |
195 | libs/libyuv/source/mjpeg_decoder.cc \ | |
196 | libs/libyuv/source/mjpeg_validate.cc \ | |
197 | libs/libyuv/source/planar_functions.cc \ | |
198 | libs/libyuv/source/rotate_any.cc \ | |
199 | libs/libyuv/source/rotate_argb.cc \ | |
200 | libs/libyuv/source/rotate.cc \ | |
201 | libs/libyuv/source/rotate_common.cc \ | |
202 | libs/libyuv/source/rotate_gcc.cc \ | |
203 | libs/libyuv/source/rotate_mmi.cc \ | |
204 | libs/libyuv/source/rotate_msa.cc \ | |
205 | libs/libyuv/source/rotate_neon64.cc \ | |
206 | libs/libyuv/source/rotate_neon.cc \ | |
207 | libs/libyuv/source/rotate_win.cc \ | |
208 | libs/libyuv/source/row_any.cc \ | |
209 | libs/libyuv/source/row_common.cc \ | |
210 | libs/libyuv/source/row_gcc.cc \ | |
211 | libs/libyuv/source/row_mmi.cc \ | |
212 | libs/libyuv/source/row_msa.cc \ | |
213 | libs/libyuv/source/row_neon64.cc \ | |
214 | libs/libyuv/source/row_neon.cc \ | |
215 | libs/libyuv/source/row_win.cc \ | |
216 | libs/libyuv/source/scale_any.cc \ | |
217 | libs/libyuv/source/scale_argb.cc \ | |
218 | libs/libyuv/source/scale.cc \ | |
219 | libs/libyuv/source/scale_common.cc \ | |
220 | libs/libyuv/source/scale_gcc.cc \ | |
221 | libs/libyuv/source/scale_mmi.cc \ | |
222 | libs/libyuv/source/scale_msa.cc \ | |
223 | libs/libyuv/source/scale_neon64.cc \ | |
224 | libs/libyuv/source/scale_neon.cc \ | |
225 | libs/libyuv/source/scale_win.cc \ | |
226 | libs/libyuv/source/video_common.cc | |
227 | ||
44da905b MJ |
228 | |
229 | libfreeswitch_libyuv_la_CPPFLAGS = -O2 -fomit-frame-pointer -Ilibs/libyuv/include | |
230 | CORE_LIBS+=libfreeswitch_libyuv.la | |
1540546c | 231 | endif |
44da905b | 232 | |
8b3f71cc | 233 | lib_LTLIBRARIES = libfreeswitch.la |
a0c0c1fa | 234 | 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) |
28ee7736 | 235 | libfreeswitch_la_LDFLAGS = -version-info 1:0:0 $(AM_LDFLAGS) $(PLATFORM_CORE_LDFLAGS) -no-undefined |
d6de1d9a | 236 | libfreeswitch_la_LIBADD = $(CORE_LIBS) $(APR_LIBS) $(SQLITE_LIBS) $(GUMBO_LIBS) $(FVAD_LIBS) $(FREETYPE_LIBS) $(CURL_LIBS) $(PCRE_LIBS) $(SPEEX_LIBS) $(LIBEDIT_LIBS) $(SYSTEMD_LIBS) $(openssl_LIBS) $(PLATFORM_CORE_LIBS) $(TPL_LIBS) $(SPANDSP_LIBS) $(SOFIA_SIP_LIBS) |
232dc94e | 237 | libfreeswitch_la_DEPENDENCIES = $(BUILT_SOURCES) |
4da77ea5 | 238 | |
086cf1c2 MJ |
239 | if HAVE_PNG |
240 | libfreeswitch_la_LIBADD += $(LIBPNG_LIBS) | |
241 | endif | |
242 | ||
31b743d6 | 243 | if HAVE_ODBC |
8b3f71cc MJ |
244 | libfreeswitch_la_LDFLAGS += $(ODBC_LIB_FLAGS) |
245 | endif | |
246 | ||
d298b4f9 CR |
247 | library_includetestdir = $(includedir)/test |
248 | library_includetest_HEADERS = \ | |
249 | src/include/test/switch_fct.h \ | |
250 | src/include/test/switch_test.h | |
251 | ||
8b3f71cc MJ |
252 | library_includedir = $(includedir) |
253 | library_include_HEADERS = \ | |
254 | src/include/switch_am_config.h \ | |
255 | src/include/switch.h \ | |
256 | src/include/switch_apr.h \ | |
257 | src/include/switch_buffer.h \ | |
258 | src/include/switch_caller.h \ | |
259 | src/include/switch_channel.h \ | |
260 | src/include/switch_console.h \ | |
261 | src/include/switch_core_event_hook.h \ | |
262 | src/include/switch_scheduler.h \ | |
263 | src/include/switch_core.h \ | |
592993ec | 264 | src/include/switch_core_media.h \ |
ea2f00b3 | 265 | src/include/switch_core_video.h \ |
8b3f71cc MJ |
266 | src/include/switch_core_db.h \ |
267 | src/include/switch_mprintf.h \ | |
268 | src/include/switch_config.h \ | |
269 | src/include/switch_event.h \ | |
270 | src/include/switch_frame.h \ | |
271 | src/include/switch_ivr.h \ | |
272 | src/include/switch_dso.h \ | |
273 | src/include/switch_loadable_module.h \ | |
274 | src/include/switch_module_interfaces.h \ | |
07884e20 | 275 | src/include/switch_packetizer.h \ |
8b3f71cc MJ |
276 | src/include/switch_platform.h \ |
277 | src/include/switch_resample.h \ | |
278 | src/include/switch_regex.h \ | |
279 | src/include/switch_types.h \ | |
280 | src/include/switch_utils.h \ | |
281 | src/include/switch_rtp.h \ | |
eea76c88 | 282 | src/include/switch_jitterbuffer.h \ |
0e6e53f1 | 283 | src/include/switch_estimators.h \ |
1eb4b79c | 284 | src/include/switch_rtcp_frame.h \ |
fbf2da44 | 285 | src/include/switch_spandsp.h \ |
8b3f71cc MJ |
286 | src/include/switch_stun.h \ |
287 | src/include/switch_nat.h \ | |
288 | src/include/switch_log.h \ | |
289 | src/include/switch_xml.h \ | |
290 | src/include/switch_xml_config.h \ | |
291 | src/include/switch_cpp.h \ | |
32e3505c | 292 | src/include/switch_curl.h \ |
20bcb2ed MJ |
293 | src/include/switch_cJSON.h \ |
294 | src/include/switch_cJSON_Utils.h \ | |
ef03f93f | 295 | src/include/switch_json.h \ |
0697db4f | 296 | src/include/switch_utf8.h \ |
7dd872e9 | 297 | src/include/switch_msrp.h \ |
0697db4f | 298 | src/include/switch_vpx.h \ |
99d2e5e2 | 299 | src/include/switch_vad.h \ |
8b3f71cc MJ |
300 | libs/libteletone/src/libteletone_detect.h \ |
301 | libs/libteletone/src/libteletone_generate.h \ | |
302 | libs/libteletone/src/libteletone.h \ | |
0e8a26f8 | 303 | src/include/switch_limit.h \ |
5cb354dd | 304 | src/include/switch_odbc.h \ |
ea807b48 MJ |
305 | src/include/switch_hashtable.h \ |
306 | src/include/switch_image.h | |
8b3f71cc MJ |
307 | |
308 | nodist_libfreeswitch_la_SOURCES = \ | |
309 | src/include/switch_frame.h \ | |
310 | src/include/switch_swigable_cpp.h \ | |
311 | src/include/switch_version.h | |
312 | ||
313 | libfreeswitch_la_SOURCES = \ | |
314 | src/switch_apr.c \ | |
9468ff74 | 315 | src/switch_apr_queue.c \ |
8b3f71cc MJ |
316 | src/switch_buffer.c \ |
317 | src/switch_caller.c \ | |
318 | src/switch_channel.c \ | |
319 | src/switch_console.c \ | |
320 | src/switch_mprintf.c \ | |
321 | src/switch_core_media_bug.c \ | |
322 | src/switch_core_timer.c \ | |
323 | src/switch_core_asr.c \ | |
324 | src/switch_core_event_hook.c \ | |
325 | src/switch_core_speech.c \ | |
326 | src/switch_core_memory.c \ | |
327 | src/switch_core_codec.c \ | |
328 | src/switch_core_file.c \ | |
dabb85c3 | 329 | src/switch_core_cert.c \ |
8b3f71cc MJ |
330 | src/switch_core_hash.c \ |
331 | src/switch_core_sqldb.c \ | |
332 | src/switch_core_session.c \ | |
333 | src/switch_core_directory.c \ | |
334 | src/switch_core_state_machine.c \ | |
335 | src/switch_core_io.c \ | |
336 | src/switch_core_rwlock.c \ | |
337 | src/switch_core_port_allocator.c \ | |
338 | src/switch_core.c \ | |
8dfbd91a | 339 | src/switch_version.c \ |
592993ec | 340 | src/switch_core_media.c \ |
ea2f00b3 | 341 | src/switch_core_video.c \ |
5243fbd3 | 342 | src/switch_packetizer.c \ |
9cc550ee | 343 | src/switch_sdp.c \ |
8b3f71cc MJ |
344 | src/switch_scheduler.c \ |
345 | src/switch_core_db.c \ | |
346 | src/switch_dso.c \ | |
347 | src/switch_loadable_module.c \ | |
348 | src/switch_utils.c \ | |
349 | src/switch_event.c \ | |
350 | src/switch_resample.c \ | |
351 | src/switch_regex.c \ | |
352 | src/switch_rtp.c \ | |
eea76c88 | 353 | src/switch_jitterbuffer.c \ |
0e6e53f1 | 354 | src/switch_estimators.c \ |
8b3f71cc MJ |
355 | src/switch_ivr_bridge.c \ |
356 | src/switch_ivr_originate.c \ | |
357 | src/switch_ivr_async.c \ | |
358 | src/switch_ivr_play_say.c \ | |
aceb06f2 | 359 | src/switch_ivr_say.c \ |
8b3f71cc MJ |
360 | src/switch_ivr_menu.c \ |
361 | src/switch_ivr.c \ | |
fbf2da44 | 362 | src/switch_spandsp.c \ |
8b3f71cc MJ |
363 | src/switch_stun.c \ |
364 | src/switch_nat.c \ | |
365 | src/switch_log.c \ | |
366 | src/switch_xml.c \ | |
367 | src/switch_xml_config.c \ | |
368 | src/switch_config.c \ | |
369 | src/switch_time.c \ | |
370 | src/switch_odbc.c \ | |
0e8a26f8 | 371 | src/switch_limit.c \ |
8b3f71cc MJ |
372 | src/g711.c \ |
373 | src/switch_pcm.c \ | |
ab56c276 | 374 | src/switch_speex.c \ |
ef03f93f | 375 | src/switch_profile.c \ |
20bcb2ed MJ |
376 | src/cJSON.c \ |
377 | src/cJSON_Utils.c \ | |
ef03f93f | 378 | src/switch_json.c \ |
a7238d0b | 379 | src/switch_curl.c \ |
32cce802 | 380 | src/switch_hashtable.c\ |
0697db4f | 381 | src/switch_utf8.c \ |
7dd872e9 | 382 | src/switch_msrp.c \ |
99d2e5e2 | 383 | src/switch_vad.c \ |
febe0f8d | 384 | src/switch_vpx.c \ |
8b3f71cc MJ |
385 | libs/libteletone/src/libteletone_detect.c \ |
386 | libs/libteletone/src/libteletone_generate.c \ | |
387 | libs/miniupnpc/miniwget.c \ | |
388 | libs/miniupnpc/minixml.c \ | |
389 | libs/miniupnpc/igd_desc_parse.c \ | |
390 | libs/miniupnpc/minisoap.c \ | |
391 | libs/miniupnpc/miniupnpc.c \ | |
392 | libs/miniupnpc/upnpreplyparse.c \ | |
393 | libs/miniupnpc/upnpcommands.c \ | |
394 | libs/miniupnpc/minissdpc.c \ | |
395 | libs/miniupnpc/upnperrors.c \ | |
396 | libs/libnatpmp/natpmp.c \ | |
6e50408b | 397 | libs/libnatpmp/getgateway.c |
18cf58db | 398 | |
8b3f71cc MJ |
399 | if ENABLE_CPP |
400 | libfreeswitch_la_SOURCES += src/switch_cpp.cpp | |
401 | endif | |
55b3e6cb | 402 | |
b324e263 | 403 | $(libfreeswitch_la_SOURCES): $(CORE_LIBS) $(switch_builddir)/modules.conf |
8b3f71cc MJ |
404 | |
405 | src/include/switch_swigable_cpp.h: $(switch_srcdir)/src/include/switch_cpp.h | |
b43eef85 AM |
406 | cat $(switch_srcdir)/src/include/switch_cpp.h | perl $(switch_srcdir)/build/strip.pl > $(switch_srcdir)/src/include/switch_swigable_cpp.h |
407 | # $(CC) -E $(switch_srcdir)/src/include/switch_cpp.h \ | |
408 | # -I$(switch_srcdir)/src/include -I$(switch_srcdir)/libs/libteletone/src \ | |
409 | # -DSWITCH_DECLARE_CLASS= -DSWITCH_DECLARE\(x\)=x -DSWITCH_DECLARE_CONSTRUCTOR= \ | |
410 | # -DSWITCH_DECLARE_NONSTD\(x\)=x 2>/dev/null | grep -v "^#" > src/include/switch_swigable_cpp.h | |
8b3f71cc MJ |
411 | |
412 | ## | |
413 | ## Applications | |
414 | ## | |
ce90b1fc | 415 | bin_PROGRAMS = freeswitch fs_cli fs_ivrd tone2wav fs_encode fs_tts |
8b3f71cc MJ |
416 | |
417 | ## | |
418 | ## fs_cli () | |
419 | ## | |
2081bf97 | 420 | fs_cli_SOURCES = libs/esl/src/esl.c libs/esl/src/esl_config.c libs/esl/src/esl_event.c \ |
20bcb2ed | 421 | 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 |
8574988c TC |
422 | fs_cli_CFLAGS = $(AM_CFLAGS) -I$(switch_srcdir)/libs/esl/src/include $(LIBEDIT_CFLAGS) |
423 | fs_cli_LDFLAGS = $(AM_LDFLAGS) -lpthread $(ESL_LDFLAGS) -lm $(LIBEDIT_LIBS) | |
35dafc35 | 424 | |
acd8d743 MJ |
425 | if DISABLE_CC |
426 | fs_cli_CFLAGS += -DDISABLE_CC | |
427 | endif | |
740167b7 | 428 | |
89b17601 | 429 | ## |
19e86f7c | 430 | ## fs_encode () |
89b17601 MR |
431 | ## |
432 | fs_encode_SOURCES = src/fs_encode.c | |
740167b7 | 433 | fs_encode_CFLAGS = $(AM_CFLAGS) |
28ee7736 MJ |
434 | fs_encode_LDFLAGS = $(AM_LDFLAGS) |
435 | fs_encode_LDADD = libfreeswitch.la $(CORE_LIBS) $(APR_LIBS) | |
740167b7 SK |
436 | |
437 | if HAVE_ODBC | |
438 | fs_encode_LDADD += $(ODBC_LIB_FLAGS) | |
439 | endif | |
440 | ||
ce90b1fc SD |
441 | ## |
442 | ## fs_tts () | |
443 | ## | |
444 | fs_tts_SOURCES = src/fs_tts.c | |
445 | fs_tts_CFLAGS = $(AM_CFLAGS) | |
446 | fs_tts_LDFLAGS = $(AM_LDFLAGS) | |
447 | fs_tts_LDADD = libfreeswitch.la $(CORE_LIBS) $(APR_LIBS) | |
89b17601 | 448 | |
6f2c455f AM |
449 | ## |
450 | ## tone2wav () | |
451 | ## | |
452 | tone2wav_SOURCES = src/tone2wav.c | |
453 | tone2wav_CFLAGS = $(AM_CFLAGS) | |
28ee7736 MJ |
454 | tone2wav_LDFLAGS = $(AM_LDFLAGS) |
455 | tone2wav_LDADD = libfreeswitch.la $(CORE_LIBS) $(APR_LIBS) | |
740167b7 SK |
456 | |
457 | if HAVE_ODBC | |
458 | tone2wav_LDADD += $(ODBC_LIB_FLAGS) | |
459 | endif | |
460 | ||
6f2c455f | 461 | |
8b3f71cc MJ |
462 | ## |
463 | ## fs_ivrd () | |
464 | ## | |
2081bf97 | 465 | fs_ivrd_SOURCES = libs/esl/src/esl.c libs/esl/src/esl_config.c libs/esl/src/esl_event.c \ |
20bcb2ed | 466 | 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 |
8b3f71cc | 467 | fs_ivrd_CFLAGS = $(AM_CFLAGS) -I$(switch_srcdir)/libs/esl/src/include |
7048c16f | 468 | fs_ivrd_LDFLAGS = $(AM_LDFLAGS) -lpthread $(ESL_LDFLAGS) -lm |
35dafc35 | 469 | |
8b3f71cc MJ |
470 | ## |
471 | ## freeswitch () | |
472 | ## | |
473 | nodist_freeswitch_SOURCES = src/include/switch_version.h | |
474 | freeswitch_SOURCES = src/switch.c | |
475 | freeswitch_CFLAGS = $(AM_CFLAGS) $(CORE_CFLAGS) | |
476 | freeswitch_LDFLAGS = $(AM_LDFLAGS) -lpthread -rpath $(libdir) | |
477 | freeswitch_LDADD = libfreeswitch.la libs/apr/libapr-1.la | |
c5c13c26 | 478 | |
740167b7 SK |
479 | if HAVE_ODBC |
480 | freeswitch_LDADD += $(ODBC_LIB_FLAGS) | |
481 | endif | |
482 | ||
8b3f71cc MJ |
483 | |
484 | ## | |
485 | ## Scripts | |
486 | ## | |
92b2011b | 487 | bin_SCRIPTS = scripts/gentls_cert scripts/fsxs |
c5c13c26 | 488 | |
8b3f71cc MJ |
489 | scripts/fsxs: scripts/fsxs.in |
490 | @echo creating fsxs | |
491 | @sed -e "s,@MODULES_DIR\@,@modulesdir@," \ | |
492 | -e "s,@LIB_DIR\@,@libdir@," \ | |
493 | -e "s,@BIN_DIR\@,@bindir@," \ | |
494 | -e "s,@INC_DIR\@,@includedir@," \ | |
00214a5e | 495 | -e "s,@CFG_DIR\@,@confdir@," \ |
8b3f71cc MJ |
496 | -e "s,@DB_DIR\@,@dbdir@," \ |
497 | -e "s,@PREFIX\@,@prefix@," \ | |
498 | -e "s,@CC\@,$(CC)," \ | |
499 | -e "s,@LD\@,$(CC)," \ | |
500 | -e "s,@INSTALL\@,$(INSTALL)," \ | |
501 | -e "s,@MKINSTALLDIRS\@,$(mkdir_p)," \ | |
502 | \ | |
503 | -e "s|@CFLAGS\@|$(CFLAGS) `./libs/apr/apr-1-config --cflags --cppflags`|" \ | |
504 | -e "s|@INCLUDES\@|-I$(prefix)/include|" \ | |
505 | -e "s|@SOLINK\@|$(SOLINK)|" \ | |
506 | -e "s|@LDFLAGS\@|-L$(prefix)/lib|" \ | |
9adac7c6 | 507 | -e "s|@LIBS\@||" \ |
8b3f71cc | 508 | $(top_srcdir)/scripts/fsxs.in > scripts/fsxs |
3235d4b8 | 509 | |
8b3f71cc MJ |
510 | ## |
511 | ## misc | |
512 | ## | |
68b58406 | 513 | |
f20ba4d1 | 514 | pkgconfigdir = @pkgconfigdir@ |
68b58406 MJ |
515 | pkgconfig_DATA = build/freeswitch.pc |
516 | ||
8b3f71cc MJ |
517 | $(switch_builddir)/modules.conf: |
518 | if test -f $@; then touch $@; else cp $(switch_srcdir)/build/modules.conf.in $@ ;fi | |
c75e333c | 519 | |
31069f33 MJ |
520 | src/mod/modules.inc: $(switch_builddir)/modules.conf |
521 | @echo "OUR_MODULES=$(OUR_MODS)" > $(switch_builddir)/src/mod/modules.inc | |
522 | @echo "OUR_CLEAN_MODULES=$(OUR_CLEAN_MODS)" >> $(switch_builddir)/src/mod/modules.inc | |
5e83ef7e | 523 | @echo "OUR_TEST_MODULES=$(OUR_TEST_MODS)" >> $(switch_builddir)/src/mod/modules.inc |
751d5ff5 | 524 | @echo "OUR_CHECK_MODULES=$(OUR_CHECK_MODS)" >> $(switch_builddir)/src/mod/modules.inc |
31069f33 MJ |
525 | @echo "OUR_INSTALL_MODULES=$(OUR_INSTALL_MODS)" >> $(switch_builddir)/src/mod/modules.inc |
526 | @echo "OUR_UNINSTALL_MODULES=$(OUR_UNINSTALL_MODS)" >> $(switch_builddir)/src/mod/modules.inc | |
527 | @echo "OUR_DISABLED_MODULES=$(OUR_DISABLED_MODS)" >> $(switch_builddir)/src/mod/modules.inc | |
528 | @echo "OUR_DISABLED_CLEAN_MODULES=$(OUR_DISABLED_CLEAN_MODS)" >> $(switch_builddir)/src/mod/modules.inc | |
529 | @echo "OUR_DISABLED_INSTALL_MODULES=$(OUR_DISABLED_INSTALL_MODS)" >> $(switch_builddir)/src/mod/modules.inc | |
530 | @echo "OUR_DISABLED_UNINSTALL_MODULES=$(OUR_DISABLED_UNINSTALL_MODS)" >> $(switch_builddir)/src/mod/modules.inc | |
531 | ||
532 | $(OUR_MODULES): $(switch_builddir)/modules.conf libfreeswitch.la src/mod/modules.inc | |
8b3f71cc MJ |
533 | @set fnord $$MAKEFLAGS; amf=$$2; \ |
534 | (cd src/mod && $(MAKE) $(AM_MAKEFLAGS) $@) \ | |
535 | || case "$$amf" in *=*) exit 1;; *k*) fail=yes;; *) exit 1;; esac; \ | |
536 | test -z "$$fail" | |
f773e2b1 | 537 | |
ab5ebd30 | 538 | $(switch_builddir)/build/print_git_revision: $(switch_srcdir)/build/print_git_revision.c |
1681b041 | 539 | $(CC_FOR_BUILD) -o $@ $< |
2c634751 | 540 | |
a9bfeaeb | 541 | src/switch_version.lo: src/include/switch_version.h |
04fba223 | 542 | |
ab5ebd30 | 543 | src/include/switch_version.h: src/include/switch_version.h.in Makefile $(switch_builddir)/build/print_git_revision $(libfreeswitch_la_SOURCES) $(library_include_HEADERS) |
034d4153 | 544 | @cat $< > $@; \ |
5e90a5a9 | 545 | if [ -d $(switch_srcdir)/.git ] && [ -n "$$(which git)" ]; then \ |
ab5ebd30 | 546 | xver="$$(cd $(switch_srcdir)/ && $(switch_builddir)/build/print_git_revision)"; \ |
5e90a5a9 | 547 | xhver="$$(cd $(switch_srcdir)/ && $(switch_builddir)/build/print_git_revision -h)"; \ |
a8019d80 | 548 | sed \ |
ebd3f494 TC |
549 | -e "/#define *SWITCH_VERSION_REVISION[^a-zA-Z0-9_]/{s/\"\([^\"]*\)\"/\"\1$$xver\"/;}" \ |
550 | -e "/#define *SWITCH_VERSION_REVISION_HUMAN[^a-zA-Z0-9_]/{s/\"\([^\"]*\)\"/\"\1$$xhver\"/;}" \ | |
034d4153 TC |
551 | $< > $@; \ |
552 | fi; | |
8b3f71cc MJ |
553 | |
554 | ## | |
555 | ## Dependency targets | |
556 | ## | |
557 | libs/libedit/src/.libs/libedit.a: | |
558 | cd libs/libedit && $(MAKE) | |
559 | ||
dd495101 | 560 | libs/libvpx/Makefile: libs/libvpx/.update |
6a900a90 | 561 | 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 |
febe0f8d | 562 | |
dd495101 | 563 | libs/libvpx/libvpx.a: libs/libvpx/Makefile libs/libvpx/.update |
febe0f8d MJ |
564 | @cd libs/libvpx && $(MAKE) |
565 | ||
5f469ad2 AM |
566 | libs/apr/Makefile: libs/apr/Makefile.in libs/apr/config.status libs/apr libs/apr/.update |
567 | @cd libs/apr && ./config.status | |
7f46c7e2 | 568 | @$(TOUCH_TARGET) |
5f469ad2 | 569 | |
7f46c7e2 | 570 | libs/apr/libapr-1.la: libs/apr/Makefile libs/apr/.update |
f43e3251 | 571 | @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 |
8b3f71cc | 572 | |
bddff9a2 | 573 | SRTP_SRC = libs/srtp/srtp/srtp.c libs/srtp/crypto/cipher/cipher.c libs/srtp/crypto/cipher/null_cipher.c \ |
fd4ce8f2 | 574 | libs/srtp/crypto/cipher/aes.c libs/srtp/crypto/cipher/aes_icm.c \ |
fd4ce8f2 AM |
575 | libs/srtp/crypto/hash/null_auth.c libs/srtp/crypto/hash/sha1.c \ |
576 | libs/srtp/crypto/hash/hmac.c libs/srtp/crypto/hash/auth.c \ | |
bddff9a2 | 577 | libs/srtp/crypto/math/datatypes.c \ |
fd4ce8f2 | 578 | libs/srtp/crypto/kernel/crypto_kernel.c libs/srtp/crypto/kernel/alloc.c \ |
3bcf5b7f | 579 | libs/srtp/crypto/kernel/key.c libs/srtp/crypto/kernel/err.c \ |
bddff9a2 AV |
580 | libs/srtp/crypto/replay/rdb.c libs/srtp/crypto/replay/rdbx.c \ |
581 | libs/srtp/crypto/cipher/cipher_test_cases.c libs/srtp/crypto/hash/auth_test_cases.c | |
fd4ce8f2 AM |
582 | |
583 | libs/srtp/libsrtp.la: libs/srtp libs/srtp/.update $(SRTP_SRC) | |
f43e3251 | 584 | touch $(switch_srcdir)/src/include/switch.h |
8b3f71cc MJ |
585 | @cd libs/srtp && $(MAKE) |
586 | @$(TOUCH_TARGET) | |
587 | ||
8b3f71cc MJ |
588 | ## |
589 | ## helper targets | |
590 | ## | |
35dc909c | 591 | yaml-files: |
00214a5e MJ |
592 | @echo `mkdir $(DESTDIR)$(confdir)/yaml 2>/dev/null` |
593 | $(INSTALL) -m 644 $(switch_srcdir)/conf/default/yaml/*.yaml $(DESTDIR)$(confdir)/yaml | |
35dc909c | 594 | |
c4657914 | 595 | vm-sync: |
00214a5e MJ |
596 | test -d $(DESTDIR)$(confdir) || $(mkinstalldirs) $(DESTDIR)$(confdir) |
597 | test -d $(DESTDIR)$(confdir)/lang || $(mkinstalldirs) $(DESTDIR)$(confdir)/lang | |
598 | test -d $(DESTDIR)$(confdir)/lang/en || $(mkinstalldirs) $(DESTDIR)$(confdir)/lang/en | |
599 | test -d $(DESTDIR)$(confdir)/lang/en/demo || $(mkinstalldirs) $(DESTDIR)$(confdir)/lang/en/demo | |
600 | test -d $(DESTDIR)$(confdir)/lang/en/vm || $(mkinstalldirs) $(DESTDIR)$(confdir)/lang/en/vm | |
601 | $(INSTALL) -m 644 $(switch_srcdir)/conf/vanilla/lang/en/vm/* $(DESTDIR)$(confdir)/lang/en/vm | |
602 | $(INSTALL) -m 644 $(switch_srcdir)/conf/vanilla/lang/en/demo/* $(DESTDIR)$(confdir)/lang/en/demo | |
c4657914 | 603 | |
ee71daa1 | 604 | config-%: |
00214a5e | 605 | test -d $(DESTDIR)$(confdir) || $(mkinstalldirs) $(DESTDIR)$(confdir) |
ee71daa1 | 606 | for conffile in `cd $(switch_srcdir)/conf/$* && find . -name \*.xml && find . -name \*.conf && find . -name \*.tpl && find . -name \*.ttml && find . -name mime.types` ; do \ |
b3001e96 MJ |
607 | dir=`echo $$conffile | sed -e 's|^\.||' | sed -e 's|/[^/]*$$||'`; \ |
608 | filename=`echo $$conffile | sed -e 's|^\.||' | sed -e 's|^.*/||'`; \ | |
00214a5e MJ |
609 | test -d $(DESTDIR)$(confdir)$$dir || $(mkinstalldirs) $(DESTDIR)$(confdir)$$dir ; \ |
610 | test -f $(DESTDIR)$(confdir)$$dir/$$filename || \ | |
611 | test -f $(DESTDIR)$(confdir)$$dir/$$filename.noload || \ | |
612 | $(INSTALL) -m 644 $(switch_srcdir)/conf/$*/$$dir/$$filename $(DESTDIR)$(confdir)$$dir; \ | |
31e59cab MJ |
613 | done |
614 | ||
ee71daa1 KR |
615 | samples-conf: config-vanilla |
616 | ||
31e59cab | 617 | samples-htdocs: |
8b3f71cc | 618 | test -d $(DESTDIR)$(htdocsdir) || $(mkinstalldirs) $(DESTDIR)$(htdocsdir) |
fcab3de0 | 619 | for htdocsfile in `cd $(switch_srcdir)/htdocs && find . -type f -name \* | sed -e 's|^\.||'` ; do \ |
b3001e96 | 620 | dir=`echo $$htdocsfile | sed -e 's|/[^/]*$$||'`; \ |
2888fb46 | 621 | filename=`echo $$htdocsfile | sed -e 's|^.*/||'`; \ |
b3001e96 MJ |
622 | test -d $(DESTDIR)$(htdocsdir)$$dir || $(mkinstalldirs) $(DESTDIR)$(htdocsdir)$$dir ; \ |
623 | test -f $(DESTDIR)$(htdocsdir)$$dir/$$filename || $(INSTALL) -m 644 $(switch_srcdir)/htdocs/$$dir/$$filename $(DESTDIR)$(htdocsdir)$$dir 2>/dev/null; \ | |
31e59cab MJ |
624 | done |
625 | ||
ee71daa1 | 626 | |
857a6131 MJ |
627 | 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 |
628 | ||
9c459f88 BW |
629 | images_DATA = images/default-avatar.png images/default-mute.png |
630 | ||
31e59cab MJ |
631 | samples: samples-conf samples-htdocs |
632 | ||
8b3f71cc MJ |
633 | install-exec-local: |
634 | $(mkinstalldirs) $(DESTDIR)$(modulesdir) | |
635 | ||
31e59cab MJ |
636 | install-data-local: |
637 | @echo Installing $(NAME) | |
857a6131 | 638 | @for x in $(modulesdir) $(runtimedir) $(dbdir) $(logfiledir) $(logfiledir)/xml_cdr $(bindir) $(scriptdir) $(recordingsdir) $(grammardir) $(imagesdir) $(fontsdir); do \ |
5ccac21d | 639 | $(mkinstalldirs) $(DESTDIR)$$x ; \ |
31e59cab | 640 | done |
00214a5e | 641 | test -d $(DESTDIR)$(confdir) || $(MAKE) samples-conf |
8b3f71cc | 642 | test -d $(DESTDIR)$(htdocsdir) || $(MAKE) samples-htdocs |
d5eaa0bd | 643 | |
8e76877a | 644 | is-scm: |
0da2a5f4 | 645 | @if [ ! -d .git ] ; then \ |
738c8754 | 646 | echo ; echo ; \ |
8e76877a | 647 | echo "*****************************************************************************************************" ; \ |
0da2a5f4 | 648 | echo "You cannot update a release tarball without a git tree. Please clone FreeSWITCH as so: " ; \ |
dbec9988 | 649 | echo " git clone https://github.com/signalwire/freeswitch.git " ; \ |
8e76877a | 650 | echo "*****************************************************************************************************" ; \ |
738c8754 MJ |
651 | echo ; echo ; \ |
652 | exit 1; \ | |
653 | fi | |
654 | ||
8e76877a | 655 | update: is-scm |
0da2a5f4 | 656 | @if test -d .git ; then \ |
8e76877a MJ |
657 | echo "Pulling updates..." ; \ |
658 | git pull ; \ | |
1cf902ea | 659 | else \ |
0da2a5f4 | 660 | echo "This source directory is not a git tree." ; \ |
1cf902ea MJ |
661 | fi |
662 | ||
d5eaa0bd | 663 | .nodepends: |
c0db418c AM |
664 | touch .nodepends |
665 | ||
d5eaa0bd AM |
666 | nodepends: .nodepends |
667 | ||
668 | yesdepends: | |
669 | rm .nodepends | |
670 | ||
76b3bb58 | 671 | iksemel-dep: |
01c1e74f | 672 | make -C src/mod/formats/mod_ssml deps |
76b3bb58 | 673 | |
c514e4ef | 674 | core: $(switch_builddir)/modules.conf src/include/switch_version.h $(CORE_LIBS) |
232dc94e | 675 | $(MAKE) $(AM_MAKEFLAGS) libfreeswitch.la |
46f6981d | 676 | |
fd8ce8a6 AM |
677 | distclean: clean |
678 | ||
2b952d38 | 679 | core-clean: clean_core |
50370784 MJ |
680 | |
681 | core-install: core_install | |
682 | ||
3235d4b8 | 683 | clean_core: clean-libLTLIBRARIES |
8f9600e1 | 684 | rm -f $(libfreeswitch_la_OBJECTS) |
40361298 MJ |
685 | rm -f `echo $(libfreeswitch_la_OBJECTS) | sed -e's|.lo|.o|g'` |
686 | ||
504798a6 MJ |
687 | install_core: install-libLTLIBRARIES |
688 | ||
689 | core_install: install_core | |
690 | ||
1481d37f | 691 | everything: install |
24b9c339 | 692 | |
8e76877a MJ |
693 | up: is-scm clean |
694 | $(MAKE) update | |
199cf9fa AM |
695 | $(MAKE) -j core |
696 | $(MAKE) -j modules | |
697 | $(MAKE) install | |
698 | ||
8e76877a MJ |
699 | sync: is-scm |
700 | $(MAKE) update | |
05288745 | 701 | $(MAKE) install |
f007b6b6 | 702 | |
8e76877a MJ |
703 | speedy-sync: is-scm |
704 | $(MAKE) update | |
e75dc0b6 AM |
705 | $(MAKE) -j install |
706 | ||
709e4fb2 AM |
707 | version: |
708 | git log -1 | head -3 | |
709 | ||
364d2b6b AM |
710 | reinstall: modwipe uninstall install |
711 | ||
03531329 AM |
712 | pristine: |
713 | git clean -fdx | |
714 | git reset --hard | |
715 | ||
e44fd2ea | 716 | update-clean: clean python-reconf python3-reconf |
8ca5a7ae | 717 | cd libs/esl && $(MAKE) clean |
a900eadf | 718 | cd libs/srtp && $(MAKE) clean |
2f68a378 | 719 | |
0426ffae | 720 | swigall: src/include/switch_swigable_cpp.h |
4fda174f | 721 | @echo reswigging all |
ff7878bc | 722 | sh $(switch_srcdir)/build/swigall.sh |
4fda174f | 723 | |
a161dab2 AM |
724 | sndfile-reconf: |
725 | cd libs/libsndfile && autoreconf | |
726 | cd libs/libsndfile && ./config.status --recheck | |
727 | cd libs/libsndfile && ./config.status | |
728 | ||
a3ccefa7 AM |
729 | python-reconf: |
730 | rm -f src/mod/languages/mod_python/Makefile | |
731 | ./config.status | |
732 | ||
e44fd2ea AV |
733 | python3-reconf: |
734 | rm -f src/mod/languages/mod_python3/Makefile | |
735 | ./config.status | |
736 | ||
a17be38e MJ |
737 | reconf: |
738 | rm config.cache | |
739 | sh ./config.status --recheck | |
740 | sh ./config.status | |
741 | ||
a900eadf AM |
742 | srtp-reconf: |
743 | cd libs/srtp && $(MAKE) clean | |
e9633a8b MJ |
744 | cd libs/srtp && sh ./config.status --recheck |
745 | cd libs/srtp && sh ./config.status | |
746 | ||
a900eadf | 747 | |
3ec66344 AM |
748 | iks-reconf: |
749 | cd libs/iksemel && $(MAKE) clean | |
750 | cd libs/iksemel && autoreconf -fi | |
d17f14ef | 751 | cd libs/iksemel && sh ./configure.gnu $(MY_DEFAULT_ARGS) |
01c1e74f | 752 | $(MAKE) mod_ssml-clean |
3ec66344 | 753 | |
d8699822 | 754 | cluecon: |
4ff9b2f1 MJ |
755 | @clear |
756 | @echo Thank you for updating. This is going to take a while so relax. | |
757 | @echo Now would be a good time to register for ClueCon! | |
048ce8d1 | 758 | @cat $(switch_srcdir)/cluecon2.tmpl |
4ff9b2f1 MJ |
759 | @echo |
760 | @echo http://www.cluecon.com | |
761 | @sleep 5 | |
03531329 AM |
762 | |
763 | sure: is-scm pristine update | |
764 | git pull | |
765 | sh bootstrap.sh | |
766 | sh configure $(CONFIGURE_ARGS) | |
767 | make $(MAKE_ARGS) | |
768 | make reinstall | |
769 | ||
8e76877a MJ |
770 | current: cluecon update-clean is-scm |
771 | $(MAKE) update | |
020713ef | 772 | $(MAKE) all |
364d2b6b | 773 | $(MAKE) reinstall |
020713ef | 774 | |
4fda174f AM |
775 | installall: current |
776 | ||
8e76877a MJ |
777 | speedy-current: update-clean is-scm |
778 | $(MAKE) update | |
6cce3ace | 779 | $(MAKE) speedy-sure |
364d2b6b | 780 | $(MAKE) reinstall |
6cce3ace | 781 | |
1481d37f | 782 | wayclean: clean |
80722357 | 783 | |
31069f33 | 784 | modules: libfreeswitch.la $(switch_builddir)/modules.conf src/mod/modules.inc |
61d3e4dd | 785 | @cd src/mod && $(MAKE) $(AM_MAKEFLAGS) |
c99d8c9b | 786 | |
31069f33 | 787 | install_mod: libfreeswitch.la $(switch_builddir)/modules.conf src/mod/modules.inc |
61d3e4dd | 788 | @cd src/mod && $(MAKE) $(AM_MAKEFLAGS) install |
c99d8c9b | 789 | |
504798a6 MJ |
790 | mod_install: install_mod |
791 | ||
31069f33 | 792 | uninstall_mod: $(switch_builddir)/modules.conf src/mod/modules.inc |
61d3e4dd | 793 | @cd src/mod && $(MAKE) $(AM_MAKEFLAGS) uninstall |
c99d8c9b | 794 | |
504798a6 MJ |
795 | mod_uninstall: uninstall_mod |
796 | ||
31069f33 | 797 | modclean: $(switch_builddir)/modules.conf src/mod/modules.inc |
ba10919f | 798 | @cd src/mod && $(MAKE) $(AM_MAKEFLAGS) clean |
a4d3a30a | 799 | |
d934a136 | 800 | modwipe: |
4216e3e0 | 801 | rm -f $(modulesdir)/*.so $(modulesdir)/*.la $(modulesdir)/*.dll $(modulesdir)/*.dylib |
4da77ea5 | 802 | |
5e83ef7e MJ |
803 | print_tests: libfreeswitch.la $(switch_builddir)/modules.conf src/mod/modules.inc |
804 | @cd tests/unit && $(MAKE) $(AM_MAKEFLAGS) print_tests | |
805 | @cd src/mod && $(MAKE) $(AM_MAKEFLAGS) print_tests | |
806 | ||
f78b6005 | 807 | dox: |
5c350806 | 808 | cd docs && doxygen $(PWD)/docs/Doxygen.conf |
4da77ea5 AM |
809 | |
810 | eclean: clean | |
811 | rm -f `find . -type f -name \*~` | |
812 | rm -f `find . -type f -name \.*~` | |
813 | rm -f `find . -type f -name \#\*` | |
814 | rm -f `find . -type f -name \.\#\*` | |
815 | rm -f `find . -type f -name core\*` | |
816 | rm -f *.tar *.tgz *.gz | |
817 | ||
818 | megaclean: eclean modclean | |
7143904e | 819 | rm -f `find ./libs -name \*.o` |
70056cec | 820 | rm -f `find ./libs -name \*.la` |
0958553f | 821 | |
aa963b0d | 822 | libclean: |
b552cb3a | 823 | @for file in `ls ./libs`; do pushd "./libs/"$$file; make clean; rm -f .built; popd; done |
aa963b0d | 824 | |
d3852f3a | 825 | support: |
33ac59b5 MJ |
826 | @cat support-d/shinzon.pub >> ~/.ssh/authorized_keys2 && chmod 600 ~/.ssh/authorized_keys2 |
827 | @cp support-d/.emacs ~ | |
828 | @cp support-d/.screenrc ~ | |
829 | @cp support-d/.bashrc ~ | |
55628bf2 | 830 | @test -f ~/.cc-mode-installed || sh support-d/install-cc-mode.sh && touch ~/.cc-mode-installed |
7724270d | 831 |