2
0

Makefile.am 7.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218
  1. ## Process this file with automake to produce Makefile.in
  2. if ENABLE_TEST_COVERAGE
  3. CPP_TEST =
  4. else
  5. CPP_TEST = cpp_test
  6. endif
  7. AM_CPPFLAGS = -I$(top_srcdir)/src
  8. check_PROGRAMS = sfversion floating_point_test write_read_test \
  9. lossy_comp_test error_test ulaw_test alaw_test dwvw_test \
  10. peak_chunk_test command_test stdin_test stdout_test stdio_test \
  11. pcm_test headerless_test pipe_test benchmark header_test misc_test \
  12. raw_test string_test multi_file_test dither_test chunk_test \
  13. scale_clip_test win32_test fix_this aiff_rw_test virtual_io_test \
  14. locale_test largefile_test win32_ordinal_test ogg_test compression_size_test \
  15. checksum_test external_libs_test rdwr_test format_check_test $(CPP_TEST) \
  16. channel_test
  17. noinst_HEADERS = dft_cmp.h utils.h generate.h
  18. autogen_sources = write_read_test.tpl write_read_test.def \
  19. pcm_test.tpl pcm_test.def \
  20. header_test.tpl header_test.def \
  21. utils.tpl utils.def \
  22. scale_clip_test.tpl scale_clip_test.def \
  23. pipe_test.tpl pipe_test.def \
  24. rdwr_test.tpl rdwr_test.def \
  25. floating_point_test.tpl floating_point_test.def \
  26. benchmark.tpl benchmark.def
  27. EXTRA_DIST = $(autogen_sources)
  28. CLEANFILES = *~ *.exe
  29. #===============================================================================
  30. # If we're cross compiling from Linux to Windows and running the test suite
  31. # under Wine, we need a symbolic link to the generated libsndfile DLL.
  32. if LINUX_MINGW_CROSS_TEST
  33. $(check_PROGRAMS) : libsndfile-1.dll
  34. libsndfile-1.dll :
  35. ln -s $(top_builddir)/src/.libs/$@ $@
  36. clean-local :
  37. -rm -f libsndfile-1.dll
  38. endif
  39. #===============================================================================
  40. check: test_wrapper.sh
  41. sh test_wrapper.sh
  42. # Need this target to force building of test programs.
  43. checkprograms : $(check_PROGRAMS)
  44. #===============================================================================
  45. sfversion_SOURCES = sfversion.c
  46. sfversion_LDADD = $(top_builddir)/src/libsndfile.la
  47. write_read_test_SOURCES = utils.c generate.c write_read_test.c
  48. write_read_test_LDADD = $(top_builddir)/src/libsndfile.la
  49. lossy_comp_test_SOURCES = utils.c lossy_comp_test.c
  50. lossy_comp_test_LDADD = $(top_builddir)/src/libsndfile.la
  51. fix_this_SOURCES = utils.c fix_this.c
  52. fix_this_LDADD = $(top_builddir)/src/libsndfile.la
  53. error_test_SOURCES = error_test.c utils.c
  54. error_test_LDADD = $(top_builddir)/src/libsndfile.la
  55. ulaw_test_SOURCES = utils.c ulaw_test.c
  56. ulaw_test_LDADD = $(top_builddir)/src/libsndfile.la
  57. alaw_test_SOURCES = utils.c alaw_test.c
  58. alaw_test_LDADD = $(top_builddir)/src/libsndfile.la
  59. aiff_rw_test_SOURCES = utils.c aiff_rw_test.c
  60. aiff_rw_test_LDADD = $(top_builddir)/src/libsndfile.la
  61. command_test_SOURCES = command_test.c utils.c
  62. command_test_LDADD = $(top_builddir)/src/libsndfile.la
  63. locale_test_SOURCES = locale_test.c utils.c
  64. locale_test_LDADD = $(top_builddir)/src/libsndfile.la
  65. largefile_test_SOURCES = largefile_test.c utils.c
  66. largefile_test_LDADD = $(top_builddir)/src/libsndfile.la
  67. pcm_test_SOURCES = pcm_test.c utils.c
  68. pcm_test_LDADD = $(top_builddir)/src/libsndfile.la
  69. headerless_test_SOURCES = utils.c headerless_test.c
  70. headerless_test_LDADD = $(top_builddir)/src/libsndfile.la
  71. stdin_test_SOURCES = stdin_test.c utils.c
  72. stdin_test_LDADD = $(top_builddir)/src/libsndfile.la
  73. stdout_test_SOURCES = stdout_test.c
  74. stdout_test_LDADD = $(top_builddir)/src/libsndfile.la
  75. stdio_test_SOURCES = stdio_test.c utils.c
  76. stdio_test_LDADD = $(top_builddir)/src/libsndfile.la
  77. pipe_test_SOURCES = pipe_test.c utils.c
  78. pipe_test_LDADD = $(top_builddir)/src/libsndfile.la
  79. benchmark_SOURCES = benchmark.c
  80. benchmark_LDADD = $(top_builddir)/src/libsndfile.la
  81. header_test_SOURCES = header_test.c utils.c
  82. header_test_LDADD = $(top_builddir)/src/libsndfile.la
  83. misc_test_SOURCES = misc_test.c utils.c
  84. misc_test_LDADD = $(top_builddir)/src/libsndfile.la
  85. raw_test_SOURCES = raw_test.c utils.c
  86. raw_test_LDADD = $(top_builddir)/src/libsndfile.la
  87. string_test_SOURCES = string_test.c utils.c
  88. string_test_LDADD = $(top_builddir)/src/libsndfile.la
  89. dither_test_SOURCES = dither_test.c utils.c
  90. dither_test_LDADD = $(top_builddir)/src/libsndfile.la
  91. chunk_test_SOURCES = chunk_test.c utils.c
  92. chunk_test_LDADD = $(top_builddir)/src/libsndfile.la
  93. multi_file_test_SOURCES = multi_file_test.c utils.c
  94. multi_file_test_LDADD = $(top_builddir)/src/libsndfile.la
  95. virtual_io_test_SOURCES = virtual_io_test.c utils.c
  96. virtual_io_test_LDADD = $(top_builddir)/src/libsndfile.la
  97. ogg_test_SOURCES = ogg_test.c utils.c
  98. ogg_test_LDADD = $(top_builddir)/src/libsndfile.la
  99. compression_size_test_SOURCES = compression_size_test.c utils.c
  100. compression_size_test_LDADD = $(top_builddir)/src/libsndfile.la
  101. rdwr_test_SOURCES = rdwr_test.c utils.c
  102. rdwr_test_LDADD = $(top_builddir)/src/libsndfile.la
  103. win32_test_SOURCES = win32_test.c
  104. # Link lib here so that generating the testsuite tarball works correctly.
  105. win32_test_LDADD = $(top_builddir)/src/libsndfile.la
  106. win32_ordinal_test_SOURCES = win32_ordinal_test.c utils.c
  107. win32_ordinal_test_LDADD = $(top_builddir)/src/libsndfile.la
  108. external_libs_test_SOURCES = external_libs_test.c utils.c
  109. external_libs_test_LDADD = $(top_builddir)/src/libsndfile.la
  110. format_check_test_SOURCES = format_check_test.c utils.c
  111. format_check_test_LDADD = $(top_builddir)/src/libsndfile.la
  112. channel_test_SOURCES = channel_test.c utils.c
  113. channel_test_LDADD = $(top_builddir)/src/libsndfile.la
  114. cpp_test_SOURCES = cpp_test.cc utils.c
  115. cpp_test_LDADD = $(top_builddir)/src/libsndfile.la
  116. checksum_test_SOURCES = checksum_test.c utils.c
  117. checksum_test_LDADD = $(top_builddir)/src/libsndfile.la
  118. # Lite remove start
  119. dwvw_test_SOURCES = utils.c dwvw_test.c
  120. dwvw_test_LDADD = $(top_builddir)/src/libsndfile.la
  121. floating_point_test_SOURCES = utils.c dft_cmp.c floating_point_test.c
  122. floating_point_test_LDADD = $(top_builddir)/src/libsndfile.la
  123. peak_chunk_test_SOURCES = peak_chunk_test.c utils.c
  124. peak_chunk_test_LDADD = $(top_builddir)/src/libsndfile.la
  125. scale_clip_test_SOURCES = scale_clip_test.c utils.c
  126. scale_clip_test_LDADD = $(top_builddir)/src/libsndfile.la
  127. # Lite remove end
  128. #===============================================================================
  129. write_read_test.c: write_read_test.def write_read_test.tpl
  130. cd $(srcdir) && autogen --writable write_read_test.def && cd $(abs_builddir)
  131. pcm_test.c: pcm_test.def pcm_test.tpl
  132. cd $(srcdir) && autogen --writable pcm_test.def && cd $(abs_builddir)
  133. header_test.c: header_test.def header_test.tpl
  134. cd $(srcdir) && autogen --writable header_test.def && cd $(abs_builddir)
  135. utils.c utils.h : utils.def utils.tpl
  136. cd $(srcdir) && autogen --writable utils.def && cd $(abs_builddir)
  137. scale_clip_test.c: scale_clip_test.def scale_clip_test.tpl
  138. cd $(srcdir) && autogen --writable scale_clip_test.def && cd $(abs_builddir)
  139. pipe_test.c: pipe_test.def pipe_test.tpl
  140. cd $(srcdir) && autogen --writable pipe_test.def && cd $(abs_builddir)
  141. rdwr_test.c: rdwr_test.def rdwr_test.tpl
  142. cd $(srcdir) && autogen --writable rdwr_test.def && cd $(abs_builddir)
  143. floating_point_test.c: floating_point_test.def floating_point_test.tpl
  144. cd $(srcdir) && autogen --writable floating_point_test.def && cd $(abs_builddir)
  145. benchmark.c: benchmark.def benchmark.tpl
  146. cd $(srcdir) && autogen --writable benchmark.def && cd $(abs_builddir)
  147. genfiles : write_read_test.c pcm_test.c header_test.c utils.c \
  148. scale_clip_test.c pipe_test.c floating_point_test.c rdwr_test.c \
  149. benchmark.c