2
0

Makefile.am 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427
  1. ##
  2. ## SpanDSP - a series of DSP components for telephony
  3. ##
  4. ## Makefile.am - Process this file with automake to produce Makefile.in
  5. ##
  6. ## This program is free software; you can redistribute it and/or modify
  7. ## it under the terms of the GNU General Public License version 2, as
  8. ## published by the Free Software Foundation.
  9. ##
  10. ## This program is distributed in the hope that it will be useful,
  11. ## but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  13. ## GNU General Public License for more details.
  14. ##
  15. ## You should have received a copy of the GNU General Public License
  16. ## along with this program; if not, write to the Free Software
  17. ## Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  18. AM_CFLAGS = $(COMP_VENDOR_CFLAGS)
  19. AM_LDFLAGS = $(COMP_VENDOR_LDFLAGS)
  20. LIBS += $(TESTLIBS)
  21. noinst_DATA = sound_c1_8k.wav sound_c3_8k.wav
  22. EXTRA_DIST = fax_tests.sh \
  23. regression_tests.sh \
  24. tsb85_extra_tests.sh \
  25. tsb85_tests.sh \
  26. v42bis_tests.sh \
  27. msvc/adsi_tests.vcproj \
  28. msvc/complex_tests.vcproj \
  29. msvc/complex_vector_float_tests.vcproj \
  30. msvc/complex_vector_int_tests.vcproj \
  31. msvc/dtmf_rx_tests.vcproj \
  32. msvc/dtmf_tx_tests.vcproj \
  33. msvc/queue_tests.vcproj \
  34. msvc/t38_core_tests.vcproj \
  35. msvc/t38_non_ecm_buffer_tests.vcproj \
  36. msvc/v22bis_tests.vcproj \
  37. msvc/v29_tests.vcproj \
  38. msvc/v8_tests.vcproj \
  39. msvc/v80_tests.vcproj \
  40. msvc/vector_float_tests.vcproj \
  41. msvc/vector_int_tests.vcproj
  42. MAINTAINERCLEANFILES = Makefile.in
  43. AM_CPPFLAGS = -I$(top_builddir)/src -I$(top_builddir)/spandsp-sim -DDATADIR="\"$(pkgdatadir)\""
  44. LIBDIR = -L$(top_builddir)/src
  45. if COND_V32BIS
  46. V32BIS_PROGS = v32bis_tests
  47. endif
  48. if COND_V34
  49. V34_PROGS = v34_tests
  50. endif
  51. noinst_PROGRAMS = ademco_contactid_tests \
  52. adsi_tests \
  53. alloc_tests \
  54. async_tests \
  55. at_interpreter_tests \
  56. awgn_tests \
  57. bell_mf_rx_tests \
  58. bell_mf_tx_tests \
  59. bert_tests \
  60. bit_operations_tests \
  61. bitstream_tests \
  62. complex_tests \
  63. complex_vector_float_tests \
  64. complex_vector_int_tests \
  65. crc_tests \
  66. data_modems_tests \
  67. dc_restore_tests \
  68. dds_tests \
  69. dtmf_rx_tests \
  70. dtmf_tx_tests \
  71. dummy_modems_tests \
  72. echo_tests \
  73. fax_decode \
  74. fax_tests \
  75. fsk_tests \
  76. g1050_tests \
  77. g168_tests \
  78. g711_tests \
  79. g722_tests \
  80. g726_tests \
  81. gsm0610_tests \
  82. hdlc_tests \
  83. ima_adpcm_tests \
  84. image_translate_tests \
  85. line_model_tests \
  86. logging_tests \
  87. lpc10_tests \
  88. math_fixed_tests \
  89. make_g168_css \
  90. modem_connect_tones_tests \
  91. modem_echo_tests \
  92. noise_tests \
  93. oki_adpcm_tests \
  94. playout_tests \
  95. plc_tests \
  96. power_meter_tests \
  97. pseudo_terminal_tests \
  98. queue_tests \
  99. r2_mf_rx_tests \
  100. r2_mf_tx_tests \
  101. rfc2198_sim_tests \
  102. saturated_tests \
  103. schedule_tests \
  104. sig_tone_tests \
  105. super_tone_rx_tests \
  106. super_tone_tx_tests \
  107. swept_tone_tests \
  108. t31_pseudo_terminal_tests \
  109. t31_tests \
  110. t35_tests \
  111. t38_core_tests \
  112. t38_decode \
  113. t38_non_ecm_buffer_tests \
  114. t4_tests \
  115. t4_t6_tests \
  116. t42_tests \
  117. t43_tests \
  118. t81_t82_arith_coding_tests \
  119. t85_tests \
  120. time_scale_tests \
  121. timezone_tests \
  122. tone_detect_tests \
  123. tone_generate_tests \
  124. tsb85_tests \
  125. v17_tests \
  126. v18_tests \
  127. v22bis_tests \
  128. v27ter_tests \
  129. v29_tests \
  130. v42_tests \
  131. v42bis_tests \
  132. v8_tests \
  133. vector_float_tests \
  134. vector_int_tests \
  135. $(V32BIS_PROGS) \
  136. $(V34_PROGS)
  137. noinst_HEADERS = echo_monitor.h \
  138. fax_tester.h \
  139. fax_utils.h \
  140. line_model_monitor.h \
  141. media_monitor.h \
  142. modem_monitor.h \
  143. pcap_parse.h \
  144. pseudo_terminals.h \
  145. socket_harness.h \
  146. udptl.h
  147. ademco_contactid_tests_SOURCES = ademco_contactid_tests.c
  148. ademco_contactid_tests_LDADD = -L$(top_builddir)/spandsp-sim -lspandsp-sim $(LIBDIR) -lspandsp
  149. adsi_tests_SOURCES = adsi_tests.c
  150. adsi_tests_LDADD = -L$(top_builddir)/spandsp-sim -lspandsp-sim $(LIBDIR) -lspandsp
  151. alloc_tests_SOURCES = alloc_tests.c
  152. alloc_tests_LDADD = $(LIBDIR) -lspandsp
  153. async_tests_SOURCES = async_tests.c
  154. async_tests_LDADD = $(LIBDIR) -lspandsp
  155. at_interpreter_tests_SOURCES = at_interpreter_tests.c
  156. at_interpreter_tests_LDADD = $(LIBDIR) -lspandsp
  157. awgn_tests_SOURCES = awgn_tests.c
  158. awgn_tests_LDADD = $(LIBDIR) -lspandsp
  159. bell_mf_rx_tests_SOURCES = bell_mf_rx_tests.c
  160. bell_mf_rx_tests_LDADD = $(LIBDIR) -lspandsp
  161. bell_mf_tx_tests_SOURCES = bell_mf_tx_tests.c
  162. bell_mf_tx_tests_LDADD = -L$(top_builddir)/spandsp-sim -lspandsp-sim $(LIBDIR) -lspandsp
  163. bert_tests_SOURCES = bert_tests.c
  164. bert_tests_LDADD = $(LIBDIR) -lspandsp
  165. bit_operations_tests_SOURCES = bit_operations_tests.c
  166. bit_operations_tests_LDADD = $(LIBDIR) -lspandsp
  167. bitstream_tests_SOURCES = bitstream_tests.c
  168. bitstream_tests_LDADD = $(LIBDIR) -lspandsp
  169. complex_tests_SOURCES = complex_tests.c
  170. complex_tests_LDADD = $(LIBDIR) -lspandsp
  171. complex_vector_float_tests_SOURCES = complex_vector_float_tests.c
  172. complex_vector_float_tests_LDADD = $(LIBDIR) -lspandsp
  173. complex_vector_int_tests_SOURCES = complex_vector_int_tests.c
  174. complex_vector_int_tests_LDADD = $(LIBDIR) -lspandsp
  175. crc_tests_SOURCES = crc_tests.c
  176. crc_tests_LDADD = $(LIBDIR) -lspandsp
  177. data_modems_tests_SOURCES = data_modems_tests.c media_monitor.cpp
  178. data_modems_tests_LDADD = -L$(top_builddir)/spandsp-sim -lspandsp-sim $(LIBDIR) -lspandsp
  179. dc_restore_tests_SOURCES = dc_restore_tests.c
  180. dc_restore_tests_LDADD = $(LIBDIR) -lspandsp
  181. dds_tests_SOURCES = dds_tests.c
  182. dds_tests_LDADD = -L$(top_builddir)/spandsp-sim -lspandsp-sim $(LIBDIR) -lspandsp
  183. dtmf_rx_tests_SOURCES = dtmf_rx_tests.c
  184. dtmf_rx_tests_LDADD = -L$(top_builddir)/spandsp-sim -lspandsp-sim $(LIBDIR) -lspandsp
  185. dtmf_tx_tests_SOURCES = dtmf_tx_tests.c
  186. dtmf_tx_tests_LDADD = -L$(top_builddir)/spandsp-sim -lspandsp-sim $(LIBDIR) -lspandsp
  187. dummy_modems_tests_SOURCES = dummy_modems_tests.c media_monitor.cpp socket_harness.c pseudo_terminals.c
  188. dummy_modems_tests_LDADD = -L$(top_builddir)/spandsp-sim -lspandsp-sim $(LIBDIR) -lspandsp -lutil
  189. echo_tests_SOURCES = echo_tests.c echo_monitor.cpp
  190. echo_tests_LDADD = -L$(top_builddir)/spandsp-sim -lspandsp-sim $(LIBDIR) -lspandsp
  191. fax_decode_SOURCES = fax_decode.c
  192. fax_decode_LDADD = $(LIBDIR) -lspandsp
  193. fax_tests_SOURCES = fax_tests.c fax_utils.c media_monitor.cpp fax_tester.c
  194. fax_tests_LDADD = -L$(top_builddir)/spandsp-sim -lspandsp-sim $(LIBDIR) -lspandsp
  195. fsk_tests_SOURCES = fsk_tests.c
  196. fsk_tests_LDADD = -L$(top_builddir)/spandsp-sim -lspandsp-sim $(LIBDIR) -lspandsp
  197. g1050_tests_SOURCES = g1050_tests.c media_monitor.cpp
  198. g1050_tests_LDADD = -L$(top_builddir)/spandsp-sim -lspandsp-sim $(LIBDIR) -lspandsp
  199. g168_tests_SOURCES = g168_tests.c
  200. g168_tests_LDADD = -L$(top_builddir)/spandsp-sim -lspandsp-sim $(LIBDIR) -lspandsp
  201. g711_tests_SOURCES = g711_tests.c
  202. g711_tests_LDADD = -L$(top_builddir)/spandsp-sim -lspandsp-sim $(LIBDIR) -lspandsp
  203. g722_tests_SOURCES = g722_tests.c
  204. g722_tests_LDADD = $(LIBDIR) -lspandsp
  205. g726_tests_SOURCES = g726_tests.c
  206. g726_tests_LDADD = -L$(top_builddir)/spandsp-sim -lspandsp-sim $(LIBDIR) -lspandsp
  207. gsm0610_tests_SOURCES = gsm0610_tests.c
  208. gsm0610_tests_LDADD = -L$(top_builddir)/spandsp-sim -lspandsp-sim $(LIBDIR) -lspandsp
  209. hdlc_tests_SOURCES = hdlc_tests.c
  210. hdlc_tests_LDADD = $(LIBDIR) -lspandsp
  211. ima_adpcm_tests_SOURCES = ima_adpcm_tests.c
  212. ima_adpcm_tests_LDADD = -L$(top_builddir)/spandsp-sim -lspandsp-sim $(LIBDIR) -lspandsp
  213. image_translate_tests_SOURCES = image_translate_tests.c
  214. image_translate_tests_LDADD = -L$(top_builddir)/spandsp-sim -lspandsp-sim $(LIBDIR) -lspandsp
  215. line_model_tests_SOURCES = line_model_tests.c
  216. line_model_tests_LDADD = -L$(top_builddir)/spandsp-sim -lspandsp-sim $(LIBDIR) -lspandsp
  217. logging_tests_SOURCES = logging_tests.c
  218. logging_tests_LDADD = $(LIBDIR) -lspandsp
  219. lpc10_tests_SOURCES = lpc10_tests.c
  220. lpc10_tests_LDADD = -L$(top_builddir)/spandsp-sim -lspandsp-sim $(LIBDIR) -lspandsp
  221. math_fixed_tests_SOURCES = math_fixed_tests.c
  222. math_fixed_tests_LDADD = -L$(top_builddir)/spandsp-sim -lspandsp-sim $(LIBDIR) -lspandsp
  223. make_g168_css_SOURCES = make_g168_css.c
  224. make_g168_css_LDADD = $(LIBDIR) -lspandsp
  225. modem_echo_tests_SOURCES = modem_echo_tests.c echo_monitor.cpp
  226. modem_echo_tests_LDADD = -L$(top_builddir)/spandsp-sim -lspandsp-sim $(LIBDIR) -lspandsp
  227. modem_connect_tones_tests_SOURCES = modem_connect_tones_tests.c
  228. modem_connect_tones_tests_LDADD = -L$(top_builddir)/spandsp-sim -lspandsp-sim $(LIBDIR) -lspandsp
  229. noise_tests_SOURCES = noise_tests.c
  230. noise_tests_LDADD = -L$(top_builddir)/spandsp-sim -lspandsp-sim $(LIBDIR) -lspandsp
  231. oki_adpcm_tests_SOURCES = oki_adpcm_tests.c
  232. oki_adpcm_tests_LDADD = -L$(top_builddir)/spandsp-sim -lspandsp-sim $(LIBDIR) -lspandsp
  233. playout_tests_SOURCES = playout_tests.c media_monitor.cpp
  234. playout_tests_LDADD = -L$(top_builddir)/spandsp-sim -lspandsp-sim $(LIBDIR) -lspandsp
  235. plc_tests_SOURCES = plc_tests.c
  236. plc_tests_LDADD = -L$(top_builddir)/spandsp-sim -lspandsp-sim $(LIBDIR) -lspandsp
  237. power_meter_tests_SOURCES = power_meter_tests.c
  238. power_meter_tests_LDADD = -L$(top_builddir)/spandsp-sim -lspandsp-sim $(LIBDIR) -lspandsp
  239. pseudo_terminal_tests_SOURCES = pseudo_terminal_tests.c fax_utils.c pseudo_terminals.c
  240. pseudo_terminal_tests_LDADD = -L$(top_builddir)/spandsp-sim -lspandsp-sim -lspandsp -lutil
  241. queue_tests_SOURCES = queue_tests.c
  242. queue_tests_LDADD = $(LIBDIR) -lspandsp
  243. r2_mf_rx_tests_SOURCES = r2_mf_rx_tests.c
  244. r2_mf_rx_tests_LDADD = $(LIBDIR) -lspandsp
  245. r2_mf_tx_tests_SOURCES = r2_mf_tx_tests.c
  246. r2_mf_tx_tests_LDADD = -L$(top_builddir)/spandsp-sim -lspandsp-sim $(LIBDIR) -lspandsp
  247. rfc2198_sim_tests_SOURCES = rfc2198_sim_tests.c media_monitor.cpp
  248. rfc2198_sim_tests_LDADD = -L$(top_builddir)/spandsp-sim -lspandsp-sim $(LIBDIR) -lspandsp
  249. saturated_tests_SOURCES = saturated_tests.c
  250. saturated_tests_LDADD = $(LIBDIR) -lspandsp
  251. schedule_tests_SOURCES = schedule_tests.c
  252. schedule_tests_LDADD = $(LIBDIR) -lspandsp
  253. sig_tone_tests_SOURCES = sig_tone_tests.c
  254. sig_tone_tests_LDADD = -L$(top_builddir)/spandsp-sim -lspandsp-sim $(LIBDIR) -lspandsp
  255. super_tone_rx_tests_SOURCES = super_tone_rx_tests.c
  256. super_tone_rx_tests_LDADD = -L$(top_builddir)/spandsp-sim -lspandsp-sim $(LIBDIR) -lspandsp
  257. super_tone_tx_tests_SOURCES = super_tone_tx_tests.c
  258. super_tone_tx_tests_LDADD = -L$(top_builddir)/spandsp-sim -lspandsp-sim $(LIBDIR) -lspandsp
  259. swept_tone_tests_SOURCES = swept_tone_tests.c
  260. swept_tone_tests_LDADD = -L$(top_builddir)/spandsp-sim -lspandsp-sim $(LIBDIR) -lspandsp
  261. t31_pseudo_terminal_tests_SOURCES = t31_pseudo_terminal_tests.c fax_utils.c pseudo_terminals.c
  262. t31_pseudo_terminal_tests_LDADD = -L$(top_builddir)/spandsp-sim -lspandsp-sim -lspandsp -lutil
  263. t31_tests_SOURCES = t31_tests.c fax_utils.c media_monitor.cpp
  264. t31_tests_LDADD = -L$(top_builddir)/spandsp-sim -lspandsp-sim $(LIBDIR) -lspandsp
  265. t35_tests_SOURCES = t35_tests.c
  266. t35_tests_LDADD = $(LIBDIR) -lspandsp
  267. t38_core_tests_SOURCES = t38_core_tests.c
  268. t38_core_tests_LDADD = $(LIBDIR) -lspandsp
  269. t38_decode_SOURCES = t38_decode.c fax_utils.c pcap_parse.c udptl.c
  270. t38_decode_LDADD = -L$(top_builddir)/spandsp-sim -lspandsp-sim $(LIBDIR) -lspandsp
  271. t38_non_ecm_buffer_tests_SOURCES = t38_non_ecm_buffer_tests.c
  272. t38_non_ecm_buffer_tests_LDADD = $(LIBDIR) -lspandsp
  273. t4_tests_SOURCES = t4_tests.c
  274. t4_tests_LDADD = $(LIBDIR) -lspandsp
  275. t4_t6_tests_SOURCES = t4_t6_tests.c
  276. t4_t6_tests_LDADD = $(LIBDIR) -lspandsp
  277. t42_tests_SOURCES = t42_tests.c
  278. t42_tests_LDADD = $(LIBDIR) -lspandsp
  279. t43_tests_SOURCES = t43_tests.c
  280. t43_tests_LDADD = $(LIBDIR) -lspandsp
  281. t81_t82_arith_coding_tests_SOURCES = t81_t82_arith_coding_tests.c
  282. t81_t82_arith_coding_tests_LDADD = $(LIBDIR) -lspandsp
  283. t85_tests_SOURCES = t85_tests.c
  284. t85_tests_LDADD = $(LIBDIR) -lspandsp
  285. time_scale_tests_SOURCES = time_scale_tests.c
  286. time_scale_tests_LDADD = $(LIBDIR) -lspandsp
  287. timezone_tests_SOURCES = timezone_tests.c
  288. timezone_tests_LDADD = $(LIBDIR) -lspandsp
  289. tone_detect_tests_SOURCES = tone_detect_tests.c
  290. tone_detect_tests_LDADD = $(LIBDIR) -lspandsp
  291. tone_generate_tests_SOURCES = tone_generate_tests.c
  292. tone_generate_tests_LDADD = -L$(top_builddir)/spandsp-sim -lspandsp-sim $(LIBDIR) -lspandsp
  293. tsb85_tests_SOURCES = tsb85_tests.c fax_utils.c fax_tester.c
  294. tsb85_tests_LDADD = -L$(top_builddir)/spandsp-sim -lspandsp-sim $(LIBDIR) -lspandsp
  295. v17_tests_SOURCES = v17_tests.c line_model_monitor.cpp modem_monitor.cpp
  296. v17_tests_LDADD = -L$(top_builddir)/spandsp-sim -lspandsp-sim $(LIBDIR) -lspandsp
  297. v18_tests_SOURCES = v18_tests.c
  298. v18_tests_LDADD = -L$(top_builddir)/spandsp-sim -lspandsp-sim $(LIBDIR) -lspandsp
  299. v22bis_tests_SOURCES = v22bis_tests.c line_model_monitor.cpp modem_monitor.cpp
  300. v22bis_tests_LDADD = -L$(top_builddir)/spandsp-sim -lspandsp-sim $(LIBDIR) -lspandsp
  301. v27ter_tests_SOURCES = v27ter_tests.c line_model_monitor.cpp modem_monitor.cpp
  302. v27ter_tests_LDADD = -L$(top_builddir)/spandsp-sim -lspandsp-sim $(LIBDIR) -lspandsp
  303. v29_tests_SOURCES = v29_tests.c line_model_monitor.cpp modem_monitor.cpp
  304. v29_tests_LDADD = -L$(top_builddir)/spandsp-sim -lspandsp-sim $(LIBDIR) -lspandsp
  305. if COND_V32BIS
  306. v32bis_tests_SOURCES = v32bis_tests.c line_model_monitor.cpp modem_monitor.cpp
  307. v32bis_tests_LDADD = -L$(top_builddir)/spandsp-sim -lspandsp-sim $(LIBDIR) -lspandsp
  308. endif
  309. if COND_V34
  310. v34_tests_SOURCES = v34_tests.c line_model_monitor.cpp modem_monitor.cpp
  311. v34_tests_LDADD = -L$(top_builddir)/spandsp-sim -lspandsp-sim $(LIBDIR) -lspandsp
  312. endif
  313. v42_tests_SOURCES = v42_tests.c
  314. v42_tests_LDADD = $(LIBDIR) -lspandsp
  315. v42bis_tests_SOURCES = v42bis_tests.c
  316. v42bis_tests_LDADD = $(LIBDIR) -lspandsp
  317. v8_tests_SOURCES = v8_tests.c
  318. v8_tests_LDADD = -L$(top_builddir)/spandsp-sim -lspandsp-sim $(LIBDIR) -lspandsp
  319. vector_float_tests_SOURCES = vector_float_tests.c
  320. vector_float_tests_LDADD = $(LIBDIR) -lspandsp
  321. vector_int_tests_SOURCES = vector_int_tests.c
  322. vector_int_tests_LDADD = $(LIBDIR) -lspandsp
  323. # We need to create the CSS files for echo cancellation tests.
  324. sound_c1_8k.wav sound_c3_8k.wav: make_g168_css$(EXEEXT)
  325. ./make_g168_css$(EXEEXT)
  326. sox sound_c1.wav -r8000 sound_c1_8k.wav
  327. sox sound_c3.wav -r8000 sound_c3_8k.wav
  328. rm sound_c1.wav sound_c3.wav