cannam@125: ## Process this file with automake to produce Makefile.in cannam@125: cannam@125: if ENABLE_TEST_COVERAGE cannam@125: CPP_TEST = cannam@125: else cannam@125: CPP_TEST = cpp_test cannam@125: endif cannam@125: cannam@125: AM_CPPFLAGS = -I$(top_srcdir)/src cannam@125: cannam@125: check_PROGRAMS = sfversion floating_point_test write_read_test \ cannam@125: lossy_comp_test error_test ulaw_test alaw_test dwvw_test \ cannam@125: peak_chunk_test command_test stdin_test stdout_test stdio_test \ cannam@125: pcm_test headerless_test pipe_test benchmark header_test misc_test \ cannam@125: raw_test string_test multi_file_test dither_test chunk_test \ cannam@125: scale_clip_test win32_test fix_this aiff_rw_test virtual_io_test \ cannam@125: locale_test largefile_test win32_ordinal_test ogg_test compression_size_test \ cannam@125: checksum_test external_libs_test rdwr_test format_check_test $(CPP_TEST) \ cannam@125: channel_test long_read_write_test cannam@125: cannam@125: noinst_HEADERS = dft_cmp.h utils.h generate.h cannam@125: cannam@125: autogen_sources = write_read_test.tpl write_read_test.def \ cannam@125: pcm_test.tpl pcm_test.def \ cannam@125: header_test.tpl header_test.def \ cannam@125: utils.tpl utils.def \ cannam@125: scale_clip_test.tpl scale_clip_test.def \ cannam@125: pipe_test.tpl pipe_test.def \ cannam@125: rdwr_test.tpl rdwr_test.def \ cannam@125: floating_point_test.tpl floating_point_test.def \ cannam@125: benchmark.tpl benchmark.def cannam@125: cannam@125: EXTRA_DIST = $(autogen_sources) cannam@125: cannam@125: CLEANFILES = *~ *.exe cannam@125: cannam@125: #=============================================================================== cannam@125: # If we're cross compiling from Linux to Windows and running the test suite cannam@125: # under Wine, we need a symbolic link to the generated libsndfile DLL. cannam@125: cannam@125: if LINUX_MINGW_CROSS_TEST cannam@125: cannam@125: $(check_PROGRAMS) : libsndfile-1.dll cannam@125: cannam@125: libsndfile-1.dll : cannam@125: ln -s $(top_builddir)/src/.libs/$@ $@ cannam@125: cannam@125: clean-local : cannam@125: -rm -f libsndfile-1.dll cannam@125: cannam@125: endif cannam@125: cannam@125: #=============================================================================== cannam@125: cannam@125: check: test_wrapper.sh cannam@125: sh test_wrapper.sh cannam@125: cannam@125: # Need this target to force building of test programs. cannam@125: checkprograms : $(check_PROGRAMS) cannam@125: cannam@125: #=============================================================================== cannam@125: cannam@125: sfversion_SOURCES = sfversion.c cannam@125: sfversion_LDADD = $(top_builddir)/src/libsndfile.la cannam@125: cannam@125: write_read_test_SOURCES = utils.c generate.c write_read_test.c cannam@125: write_read_test_LDADD = $(top_builddir)/src/libsndfile.la cannam@125: cannam@125: lossy_comp_test_SOURCES = utils.c lossy_comp_test.c cannam@125: lossy_comp_test_LDADD = $(top_builddir)/src/libsndfile.la cannam@125: cannam@125: fix_this_SOURCES = utils.c fix_this.c cannam@125: fix_this_LDADD = $(top_builddir)/src/libsndfile.la cannam@125: cannam@125: error_test_SOURCES = error_test.c utils.c cannam@125: error_test_LDADD = $(top_builddir)/src/libsndfile.la cannam@125: cannam@125: ulaw_test_SOURCES = utils.c ulaw_test.c cannam@125: ulaw_test_LDADD = $(top_builddir)/src/libsndfile.la cannam@125: cannam@125: alaw_test_SOURCES = utils.c alaw_test.c cannam@125: alaw_test_LDADD = $(top_builddir)/src/libsndfile.la cannam@125: cannam@125: aiff_rw_test_SOURCES = utils.c aiff_rw_test.c cannam@125: aiff_rw_test_LDADD = $(top_builddir)/src/libsndfile.la cannam@125: cannam@125: command_test_SOURCES = command_test.c utils.c cannam@125: command_test_LDADD = $(top_builddir)/src/libsndfile.la cannam@125: cannam@125: locale_test_SOURCES = locale_test.c utils.c cannam@125: locale_test_LDADD = $(top_builddir)/src/libsndfile.la cannam@125: cannam@125: largefile_test_SOURCES = largefile_test.c utils.c cannam@125: largefile_test_LDADD = $(top_builddir)/src/libsndfile.la cannam@125: cannam@125: pcm_test_SOURCES = pcm_test.c utils.c cannam@125: pcm_test_LDADD = $(top_builddir)/src/libsndfile.la cannam@125: cannam@125: headerless_test_SOURCES = utils.c headerless_test.c cannam@125: headerless_test_LDADD = $(top_builddir)/src/libsndfile.la cannam@125: cannam@125: stdin_test_SOURCES = stdin_test.c utils.c cannam@125: stdin_test_LDADD = $(top_builddir)/src/libsndfile.la cannam@125: cannam@125: stdout_test_SOURCES = stdout_test.c cannam@125: stdout_test_LDADD = $(top_builddir)/src/libsndfile.la cannam@125: cannam@125: stdio_test_SOURCES = stdio_test.c utils.c cannam@125: stdio_test_LDADD = $(top_builddir)/src/libsndfile.la cannam@125: cannam@125: pipe_test_SOURCES = pipe_test.c utils.c cannam@125: pipe_test_LDADD = $(top_builddir)/src/libsndfile.la cannam@125: cannam@125: benchmark_SOURCES = benchmark.c cannam@125: benchmark_LDADD = $(top_builddir)/src/libsndfile.la cannam@125: cannam@125: header_test_SOURCES = header_test.c utils.c cannam@125: header_test_LDADD = $(top_builddir)/src/libsndfile.la cannam@125: cannam@125: misc_test_SOURCES = misc_test.c utils.c cannam@125: misc_test_LDADD = $(top_builddir)/src/libsndfile.la cannam@125: cannam@125: raw_test_SOURCES = raw_test.c utils.c cannam@125: raw_test_LDADD = $(top_builddir)/src/libsndfile.la cannam@125: cannam@125: string_test_SOURCES = string_test.c utils.c cannam@125: string_test_LDADD = $(top_builddir)/src/libsndfile.la cannam@125: cannam@125: dither_test_SOURCES = dither_test.c utils.c cannam@125: dither_test_LDADD = $(top_builddir)/src/libsndfile.la cannam@125: cannam@125: chunk_test_SOURCES = chunk_test.c utils.c cannam@125: chunk_test_LDADD = $(top_builddir)/src/libsndfile.la cannam@125: cannam@125: multi_file_test_SOURCES = multi_file_test.c utils.c cannam@125: multi_file_test_LDADD = $(top_builddir)/src/libsndfile.la cannam@125: cannam@125: virtual_io_test_SOURCES = virtual_io_test.c utils.c cannam@125: virtual_io_test_LDADD = $(top_builddir)/src/libsndfile.la cannam@125: cannam@125: ogg_test_SOURCES = ogg_test.c utils.c cannam@125: ogg_test_LDADD = $(top_builddir)/src/libsndfile.la cannam@125: cannam@125: compression_size_test_SOURCES = compression_size_test.c utils.c cannam@125: compression_size_test_LDADD = $(top_builddir)/src/libsndfile.la cannam@125: cannam@125: rdwr_test_SOURCES = rdwr_test.c utils.c cannam@125: rdwr_test_LDADD = $(top_builddir)/src/libsndfile.la cannam@125: cannam@125: win32_test_SOURCES = win32_test.c cannam@125: # Link lib here so that generating the testsuite tarball works correctly. cannam@125: win32_test_LDADD = $(top_builddir)/src/libsndfile.la cannam@125: cannam@125: win32_ordinal_test_SOURCES = win32_ordinal_test.c utils.c cannam@125: win32_ordinal_test_LDADD = $(top_builddir)/src/libsndfile.la cannam@125: cannam@125: external_libs_test_SOURCES = external_libs_test.c utils.c cannam@125: external_libs_test_LDADD = $(top_builddir)/src/libsndfile.la cannam@125: cannam@125: format_check_test_SOURCES = format_check_test.c utils.c cannam@125: format_check_test_LDADD = $(top_builddir)/src/libsndfile.la cannam@125: cannam@125: channel_test_SOURCES = channel_test.c utils.c cannam@125: channel_test_LDADD = $(top_builddir)/src/libsndfile.la cannam@125: cannam@125: long_read_write_test_SOURCES = long_read_write_test.c utils.c cannam@125: long_read_write_test_LDADD = $(top_builddir)/src/libsndfile.la cannam@125: cannam@125: cpp_test_SOURCES = cpp_test.cc utils.c cannam@125: cpp_test_LDADD = $(top_builddir)/src/libsndfile.la cannam@125: cannam@125: checksum_test_SOURCES = checksum_test.c utils.c cannam@125: checksum_test_LDADD = $(top_builddir)/src/libsndfile.la cannam@125: cannam@125: # Lite remove start cannam@125: dwvw_test_SOURCES = utils.c dwvw_test.c cannam@125: dwvw_test_LDADD = $(top_builddir)/src/libsndfile.la cannam@125: cannam@125: floating_point_test_SOURCES = utils.c dft_cmp.c floating_point_test.c cannam@125: floating_point_test_LDADD = $(top_builddir)/src/libsndfile.la cannam@125: cannam@125: peak_chunk_test_SOURCES = peak_chunk_test.c utils.c cannam@125: peak_chunk_test_LDADD = $(top_builddir)/src/libsndfile.la cannam@125: cannam@125: scale_clip_test_SOURCES = scale_clip_test.c utils.c cannam@125: scale_clip_test_LDADD = $(top_builddir)/src/libsndfile.la cannam@125: # Lite remove end cannam@125: cannam@125: #=============================================================================== cannam@125: cannam@125: write_read_test.c: write_read_test.def write_read_test.tpl cannam@125: (cd $(srcdir) && autogen --writable write_read_test.def) cannam@125: cannam@125: pcm_test.c: pcm_test.def pcm_test.tpl cannam@125: (cd $(srcdir) && autogen --writable pcm_test.def) cannam@125: cannam@125: header_test.c: header_test.def header_test.tpl cannam@125: (cd $(srcdir) && autogen --writable header_test.def) cannam@125: cannam@125: utils.c utils.h : utils.def utils.tpl cannam@125: (cd $(srcdir) && autogen --writable utils.def) cannam@125: cannam@125: scale_clip_test.c: scale_clip_test.def scale_clip_test.tpl cannam@125: (cd $(srcdir) && autogen --writable scale_clip_test.def) cannam@125: cannam@125: pipe_test.c: pipe_test.def pipe_test.tpl cannam@125: (cd $(srcdir) && autogen --writable pipe_test.def) cannam@125: cannam@125: rdwr_test.c: rdwr_test.def rdwr_test.tpl cannam@125: (cd $(srcdir) && autogen --writable rdwr_test.def) cannam@125: cannam@125: floating_point_test.c: floating_point_test.def floating_point_test.tpl cannam@125: (cd $(srcdir) && autogen --writable floating_point_test.def) cannam@125: cannam@125: benchmark.c: benchmark.def benchmark.tpl cannam@125: (cd $(srcdir) && autogen --writable benchmark.def) cannam@125: cannam@125: genfiles : write_read_test.c pcm_test.c header_test.c utils.c \ cannam@125: scale_clip_test.c pipe_test.c floating_point_test.c rdwr_test.c \ cannam@125: benchmark.c cannam@125: