6 +include $(BASE)/build/openwrt_rules.mk
10 AUTOMAKE_OPTS = foreign
11 @@ -61,7 +65,7 @@ cd-moh-install: uhd-moh-install sounds-m
12 # (1) if the variable is set in `config.status', edit `config.status'
13 # (which will cause the Makefiles to be regenerated when you run `make');
14 # (2) otherwise, pass the desired values on the `make' command line.
15 -all-recursive: libfreeswitch.la
16 +all-recursive: spandsp-reconf libfreeswitch.la
17 clean-recusive: clean_core
18 install-recursive: install-libLTLIBRARIES install-binPROGRAMS
20 @@ -299,7 +303,7 @@ endif
22 fs_encode_SOURCES = src/fs_encode.c
23 fs_encode_CFLAGS = $(AM_CFLAGS)
24 -fs_encode_LDFLAGS = $(AM_LDFLAGS) $(CORE_LIBS)
25 +fs_encode_LDFLAGS = $(AM_LDFLAGS) -lpthread $(CORE_LIBS)
26 fs_encode_LDADD = libfreeswitch.la -lcrypt -lrt
29 @@ -307,7 +311,7 @@ fs_encode_LDADD = libfreeswitch.la -lcry
31 tone2wav_SOURCES = src/tone2wav.c
32 tone2wav_CFLAGS = $(AM_CFLAGS)
33 -tone2wav_LDFLAGS = $(AM_LDFLAGS) $(CORE_LIBS)
34 +tone2wav_LDFLAGS = $(AM_LDFLAGS) -lpthread $(CORE_LIBS)
35 tone2wav_LDADD = libfreeswitch.la -lcrypt -lrt
38 @@ -586,10 +590,13 @@ speex-reconf:
41 cd libs/tiff-3.8.2 && autoreconf -fi
42 - cd libs/tiff-3.8.2 && sh ./configure.gnu
43 + cd libs/tiff-3.8.2 && sh ./configure.gnu --host=$(GNU_TARGET_NAME)
44 cd libs/spandsp && autoreconf -fi
45 - cd libs/spandsp && sh ./configure.gnu
46 - make mod_voipcodecs-clean
47 + cd libs/spandsp && sh ./configure.gnu --host=$(GNU_TARGET_NAME) --prefix=$(prefix)
48 + cd libs/tiff-3.8.2 && $(MAKE)
50 +spandsp-reconf: tiff-reconf
51 + cd libs/spandsp && $(MAKE)
54 rm -f src/mod/languages/mod_python/Makefile
55 @@ -612,12 +619,6 @@ iks-reconf:
56 cd libs/iksemel && sh ./configure.gnu --prefix=$(prefix)
57 $(MAKE) mod_dingaling-clean
60 - cd libs/spandsp && $(MAKE) clean || echo
61 - cd libs/spandsp && autoreconf -fi
62 - cd libs/spandsp && sh ./configure.gnu --prefix=$(prefix)
63 - cd libs/spandsp && $(MAKE)
66 cd libs/sofia-sip && sh ./autogen.sh
67 cd libs/sofia-sip && $(MAKE) clean