1## Process this file with automake to produce Makefile.in 2 3AM_CPPFLAGS = -I$(top_srcdir)/src -I$(top_srcdir)/include -I$(top_builddir)/include $(OS_SPECIFIC_CFLAGS) 4 5DISTCHECK_CONFIGURE_FLAGS = --enable-werror 6 7CLEANFILES = programs/*.wav octave-workspace 8 9if FULL_SUITE 10if BUILD_OCTAVE_MOD 11SUBDIRS = Octave 12endif 13endif 14 15EXTRA_DIST = libsndfile.spec.in sndfile.pc.in Scripts/android-configure.sh \ 16 NEWS.OLD CHANGELOG.md Scripts/linux-to-win-cross-configure.sh \ 17 CMakeLists.txt $(cmake_files) Win32 SECURITY.md 18 19cmake_files = cmake/ClipMode.cmake cmake/FindFLAC.cmake \ 20 cmake/CMakeAutoGen.cmake cmake/CMakeAutoGenScript.cmake \ 21 cmake/FindOgg.cmake cmake/FindVorbis.cmake cmake/FindSndio.cmake \ 22 cmake/FindSpeex.cmake cmake/sqlite/FindSQLite3.cmake \ 23 cmake/SndFileChecks.cmake cmake/TestInline.cmake \ 24 cmake/TestLargeFiles.cmake cmake/TestInline.c.in \ 25 cmake/FindOpus.cmake cmake/SndFileConfig.cmake.in \ 26 cmake/CheckCPUArch.cmake cmake/CheckCPUArch.c.in \ 27 cmake/Findmp3lame.cmake cmake/FindMpg123.cmake \ 28 cmake/SetupABIVersions.cmake 29 30pkgconfig_DATA = sndfile.pc 31 32noinst_PROGRAMS = 33 34#=============================================================================== 35 36test: check 37 38# Need this target to force building of test programs. 39checkprograms: $(check_PROGRAMS) 40 41######## 42# src/ # 43######## 44 45BUILT_SOURCES = src/test_endswap.c 46 47SYMBOL_FILES = src/Symbols.gnu-binutils src/Symbols.darwin src/libsndfile-1.def src/Symbols.os2 src/Symbols.static 48 49EXTRA_DIST += src/config.h.in src/test_endswap.tpl src/test_endswap.def \ 50 $(SYMBOL_FILES) src/create_symbols_file.py src/binheader_writef_check.py \ 51 src/GSM610/README src/GSM610/COPYRIGHT src/GSM610/ChangeLog \ 52 src/G72x/README src/G72x/README.original src/G72x/ChangeLog \ 53 src/make-static-lib-hidden-privates.sh \ 54 src/config.h.cmake 55 56if USE_WIN_VERSION_FILE 57WIN_VERSION_FILE = src/version-metadata.rc 58else 59WIN_VERSION_FILE = 60endif 61 62#=============================================================================== 63 64lib_LTLIBRARIES = src/libsndfile.la 65include_HEADERS = include/sndfile.h include/sndfile.hh 66src_libsndfile_la_CFLAGS = $(EXTERNAL_XIPH_CFLAGS) $(MPEG_CFLAGS) 67# MinGW requires -no-undefined if a DLL is to be built. 68src_libsndfile_la_LDFLAGS = -no-undefined -version-info $(SHARED_VERSION_INFO) $(SHLIB_VERSION_ARG) 69src_libsndfile_la_SOURCES = src/sndfile.c src/aiff.c src/au.c src/avr.c src/caf.c src/dwd.c src/flac.c src/g72x.c src/htk.c src/ircam.c \ 70 src/macos.c src/mat4.c src/mat5.c src/nist.c src/paf.c src/pvf.c src/raw.c src/rx2.c src/sd2.c \ 71 src/sds.c src/svx.c src/txw.c src/voc.c src/wve.c src/w64.c src/wavlike.c src/wav.c src/xi.c src/mpc2k.c src/rf64.c \ 72 src/ogg.c src/ogg.h src/ogg_vorbis.c src/ogg_speex.c src/ogg_pcm.c src/ogg_opus.c src/ogg_vcomment.c src/ogg_vcomment.h \ 73 src/common.h src/sfconfig.h src/sfendian.h src/wavlike.h src/sf_unistd.h src/chanmap.h src/mpeg.c 74nodist_src_libsndfile_la_SOURCES = $(nodist_include_HEADERS) 75src_libsndfile_la_LIBADD = src/GSM610/libgsm.la src/G72x/libg72x.la src/ALAC/libalac.la \ 76 src/libcommon.la $(EXTERNAL_XIPH_LIBS) -lm $(MPEG_LIBS) 77EXTRA_src_libsndfile_la_DEPENDENCIES = $(SYMBOL_FILES) 78 79noinst_LTLIBRARIES = src/libcommon.la 80src_libcommon_la_CFLAGS = $(EXTERNAL_XIPH_CFLAGS) $(MPEG_CFLAGS) 81src_libcommon_la_SOURCES = src/common.c src/file_io.c src/command.c src/pcm.c src/ulaw.c src/alaw.c \ 82 src/float32.c src/double64.c src/ima_adpcm.c src/ms_adpcm.c src/gsm610.c src/dwvw.c src/vox_adpcm.c \ 83 src/interleave.c src/strings.c src/dither.c src/cart.c src/broadcast.c src/audio_detect.c \ 84 src/ima_oki_adpcm.c src/ima_oki_adpcm.h src/alac.c src/chunk.c src/chanmap.c \ 85 src/windows.c src/id3.c src/id3.h src/nms_adpcm.c src/mpeg_decode.c src/mpeg_l3_encode.c src/mpeg.h $(WIN_VERSION_FILE) 86 87check_PROGRAMS = src/test_main 88src_test_main_SOURCES = src/test_main.c src/test_main.h src/test_conversions.c src/test_float.c src/test_endswap.c \ 89 src/test_audio_detect.c src/test_log_printf.c src/test_file_io.c src/test_ima_oki_adpcm.c \ 90 src/test_strncpy_crlf.c src/test_broadcast_var.c src/test_cart_var.c \ 91 src/test_binheader_writef.c src/test_nms_adpcm.c 92src_test_main_LDADD = src/libcommon.la 93 94############## 95# src/GSM610 # 96############## 97 98noinst_LTLIBRARIES += src/GSM610/libgsm.la 99src_GSM610_libgsm_la_SOURCES = src/GSM610/config.h src/GSM610/gsm.h src/GSM610/gsm610_priv.h \ 100 src/GSM610/add.c src/GSM610/code.c src/GSM610/decode.c src/GSM610/gsm_create.c \ 101 src/GSM610/gsm_decode.c src/GSM610/gsm_destroy.c src/GSM610/gsm_encode.c \ 102 src/GSM610/gsm_option.c src/GSM610/long_term.c src/GSM610/lpc.c src/GSM610/preprocess.c \ 103 src/GSM610/rpe.c src/GSM610/short_term.c src/GSM610/table.c 104 105############ 106# src/G72x # 107############ 108 109noinst_LTLIBRARIES += src/G72x/libg72x.la 110src_G72x_libg72x_la_SOURCES = src/G72x/g72x.h src/G72x/g72x_priv.h \ 111 src/G72x/g721.c src/G72x/g723_16.c src/G72x/g723_24.c src/G72x/g723_40.c src/G72x/g72x.c 112 113check_PROGRAMS += src/G72x/g72x_test 114src_G72x_g72x_test_SOURCES = src/G72x/g72x_test.c 115src_G72x_g72x_test_LDADD = src/G72x/libg72x.la 116 117############ 118# src/ALAC # 119############ 120 121noinst_LTLIBRARIES += src/ALAC/libalac.la 122src_ALAC_libalac_la_SOURCES = src/ALAC/ALACAudioTypes.h src/ALAC/ALACBitUtilities.h \ 123 src/ALAC/EndianPortable.h src/ALAC/aglib.h src/ALAC/dplib.h src/ALAC/matrixlib.h \ 124 src/ALAC/alac_codec.h src/ALAC/shift.h \ 125 src/ALAC/ALACBitUtilities.c src/ALAC/ag_dec.c \ 126 src/ALAC/ag_enc.c src/ALAC/dp_dec.c src/ALAC/dp_enc.c src/ALAC/matrix_dec.c \ 127 src/ALAC/matrix_enc.c src/ALAC/alac_decoder.c src/ALAC/alac_encoder.c 128 129#=============================================================================== 130# Generate an OS specific Symbols files. This is done when the author 131# builds the distribution tarball. There should be not need for the 132# end user to create these files. 133 134# "$<" cannot portably be used in the recipe across Make implementations 135# https://www.gnu.org/software/autoconf/manual/autoconf.html#g_t_0024_003c-in-Ordinary-Make-Rules 136SYMBOL_SCRIPT = $(top_srcdir)/src/create_symbols_file.py 137 138src/Symbols.gnu-binutils: $(SYMBOL_SCRIPT) 139 $(PYTHON) $(SYMBOL_SCRIPT) linux $(ABI_VERSION) > $(top_srcdir)/$@ 140 141src/Symbols.darwin: $(SYMBOL_SCRIPT) 142 $(PYTHON) $(SYMBOL_SCRIPT) darwin $(ABI_VERSION) > $(top_srcdir)/$@ 143 144src/libsndfile-1.def: $(SYMBOL_SCRIPT) 145 $(PYTHON) $(SYMBOL_SCRIPT) win32 $(ABI_VERSION) > $(top_srcdir)/$@ 146 147src/Symbols.os2: $(SYMBOL_SCRIPT) 148 $(PYTHON) $(SYMBOL_SCRIPT) os2 $(ABI_VERSION) > $(top_srcdir)/$@ 149 150src/Symbols.static: $(SYMBOL_SCRIPT) 151 $(PYTHON) $(SYMBOL_SCRIPT) static $(ABI_VERSION) > $(top_srcdir)/$@ 152 153#=============================================================================== 154# Building windows resource files (if needed). 155 156.rc.lo: 157 $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --tag=RC --mode=compile $(RC) $(RCFLAGS) $< -o $@ 158 159#=============================================================================== 160# Disable autoheader. 161AUTOHEADER=echo 162 163######## 164# docs/ # 165######## 166 167if FULL_SUITE 168dist_doc_DATA = docs/index.md docs/libsndfile.jpg docs/libsndfile.css docs/print.css docs/api.md \ 169 docs/command.md docs/bugs.md docs/formats.md docs/sndfile_info.md docs/new_file_type_howto.md \ 170 docs/win32.md docs/FAQ.md docs/lists.md docs/embedded_files.md docs/octave.md \ 171 docs/tutorial.md 172endif 173 174############# 175# examples/ # 176############# 177 178check_PROGRAMS += examples/make_sine examples/sfprocess examples/list_formats examples/generate examples/sndfilehandle \ 179 examples/sndfile-to-text examples/sndfile-loopify 180 181examples_sndfile_to_text_SOURCES = examples/sndfile-to-text.c 182examples_sndfile_to_text_LDADD = src/libsndfile.la 183 184examples_sndfile_loopify_SOURCES = examples/sndfile-loopify.c 185examples_sndfile_loopify_LDADD = src/libsndfile.la 186 187examples_make_sine_SOURCES = examples/make_sine.c 188examples_make_sine_LDADD = src/libsndfile.la 189 190examples_sfprocess_SOURCES = examples/sfprocess.c 191examples_sfprocess_LDADD = src/libsndfile.la 192 193examples_list_formats_SOURCES = examples/list_formats.c 194examples_list_formats_LDADD = src/libsndfile.la 195 196examples_generate_SOURCES = examples/generate.c 197examples_generate_LDADD = src/libsndfile.la 198 199examples_sndfilehandle_SOURCES = examples/sndfilehandle.cc 200examples_sndfilehandle_LDADD = src/libsndfile.la 201 202########## 203# tests/ # 204########## 205 206TESTS_ENVIRONMENT = $(SHELL) tests/test_wrapper.sh 207 208if ENABLE_TEST_COVERAGE 209CPP_TEST = 210else 211CPP_TEST = tests/cpp_test 212endif 213 214TESTS = tests/pedantic-header-test.sh 215 216check_PROGRAMS += tests/sfversion tests/floating_point_test tests/write_read_test \ 217 tests/lossy_comp_test tests/error_test tests/ulaw_test tests/alaw_test tests/dwvw_test \ 218 tests/peak_chunk_test tests/command_test tests/stdio_test \ 219 tests/pcm_test tests/headerless_test tests/pipe_test tests/header_test tests/misc_test \ 220 tests/raw_test tests/string_test tests/multi_file_test tests/chunk_test \ 221 tests/scale_clip_test tests/win32_test tests/aiff_rw_test tests/virtual_io_test \ 222 tests/locale_test tests/win32_ordinal_test tests/ogg_test tests/compression_size_test \ 223 tests/checksum_test tests/external_libs_test tests/rdwr_test tests/format_check_test $(CPP_TEST) \ 224 tests/channel_test tests/long_read_write_test tests/stdin_test tests/stdout_test \ 225 tests/dither_test tests/fix_this tests/largefile_test tests/benchmark tests/ogg_opus_test \ 226 tests/mpeg_test 227 228BUILT_SOURCES += \ 229 tests/write_read_test.c \ 230 tests/pcm_test.c \ 231 tests/header_test.c \ 232 tests/utils.c \ 233 tests/scale_clip_test.c \ 234 tests/pipe_test.c \ 235 tests/rdwr_test.c \ 236 tests/floating_point_test.c \ 237 tests/benchmark.c 238 239EXTRA_DIST += $(BUILT_SOURCES) \ 240 tests/write_read_test.tpl tests/write_read_test.def \ 241 tests/pcm_test.tpl tests/pcm_test.def \ 242 tests/header_test.tpl tests/header_test.def \ 243 tests/utils.tpl tests/utils.def \ 244 tests/scale_clip_test.tpl tests/scale_clip_test.def \ 245 tests/pipe_test.tpl tests/pipe_test.def \ 246 tests/rdwr_test.tpl tests/rdwr_test.def \ 247 tests/floating_point_test.tpl tests/floating_point_test.def \ 248 tests/benchmark.tpl tests/benchmark.def 249 250# If we're cross compiling from Linux to Windows and running the test suite 251# under Wine, we need a symbolic link to the generated libsndfile DLL. 252 253if LINUX_MINGW_CROSS_TEST 254 255$(check_PROGRAMS) : libsndfile-1.dll 256 257libsndfile-1.dll : 258 $(LN_S) src/.libs/$@ $@ 259 260clean-local : 261 -rm -f libsndfile-1.dll 262 263endif 264 265#=============================================================================== 266 267tests_sfversion_SOURCES = tests/sfversion.c 268tests_sfversion_LDADD = src/libsndfile.la 269 270tests_write_read_test_SOURCES = tests/utils.c tests/generate.c tests/generate.h tests/write_read_test.c tests/utils.h 271tests_write_read_test_LDADD = src/libsndfile.la 272 273tests_lossy_comp_test_SOURCES = tests/utils.c tests/lossy_comp_test.c tests/utils.h 274tests_lossy_comp_test_LDADD = src/libsndfile.la 275 276tests_fix_this_SOURCES = tests/utils.c tests/fix_this.c tests/utils.h 277tests_fix_this_LDADD = src/libsndfile.la 278 279tests_error_test_SOURCES = tests/error_test.c tests/utils.c tests/utils.h 280tests_error_test_LDADD = src/libsndfile.la 281 282tests_ulaw_test_SOURCES = tests/utils.c tests/ulaw_test.c tests/utils.h 283tests_ulaw_test_LDADD = src/libsndfile.la 284 285tests_alaw_test_SOURCES = tests/utils.c tests/alaw_test.c tests/utils.h 286tests_alaw_test_LDADD = src/libsndfile.la 287 288tests_aiff_rw_test_SOURCES = tests/utils.c tests/aiff_rw_test.c tests/utils.h 289tests_aiff_rw_test_LDADD = src/libsndfile.la 290 291tests_command_test_SOURCES = tests/command_test.c tests/utils.c tests/utils.h 292tests_command_test_LDADD = src/libsndfile.la 293 294tests_locale_test_SOURCES = tests/locale_test.c tests/utils.c tests/utils.h 295tests_locale_test_LDADD = src/libsndfile.la 296 297tests_largefile_test_SOURCES = tests/largefile_test.c tests/utils.c tests/utils.h 298tests_largefile_test_LDADD = src/libsndfile.la 299 300tests_pcm_test_SOURCES = tests/pcm_test.c tests/utils.c tests/utils.h 301tests_pcm_test_LDADD = src/libsndfile.la 302 303tests_headerless_test_SOURCES = tests/utils.c tests/headerless_test.c tests/utils.h 304tests_headerless_test_LDADD = src/libsndfile.la 305 306tests_stdin_test_SOURCES = tests/stdin_test.c tests/utils.c tests/utils.h 307tests_stdin_test_LDADD = src/libsndfile.la 308 309tests_stdout_test_SOURCES = tests/stdout_test.c tests/utils.h 310tests_stdout_test_LDADD = src/libsndfile.la 311 312tests_stdio_test_SOURCES = tests/stdio_test.c tests/utils.c tests/utils.h 313tests_stdio_test_LDADD = src/libsndfile.la 314 315tests_pipe_test_SOURCES = tests/pipe_test.c tests/utils.c tests/utils.h 316tests_pipe_test_LDADD = src/libsndfile.la 317 318tests_benchmark_SOURCES = tests/benchmark.c tests/utils.h 319tests_benchmark_LDADD = src/libsndfile.la 320 321tests_header_test_SOURCES = tests/header_test.c tests/utils.c tests/utils.h 322tests_header_test_LDADD = src/libsndfile.la 323 324tests_misc_test_SOURCES = tests/misc_test.c tests/utils.c tests/utils.h 325tests_misc_test_LDADD = src/libsndfile.la 326 327tests_raw_test_SOURCES = tests/raw_test.c tests/utils.c tests/utils.h 328tests_raw_test_LDADD = src/libsndfile.la 329 330tests_string_test_SOURCES = tests/string_test.c tests/utils.c tests/utils.h 331tests_string_test_LDADD = src/libsndfile.la 332 333tests_dither_test_SOURCES = tests/dither_test.c tests/utils.c tests/utils.h 334tests_dither_test_LDADD = src/libsndfile.la 335 336tests_chunk_test_SOURCES = tests/chunk_test.c tests/utils.c tests/utils.h 337tests_chunk_test_LDADD = src/libsndfile.la 338 339tests_multi_file_test_SOURCES = tests/multi_file_test.c tests/utils.c tests/utils.h 340tests_multi_file_test_LDADD = src/libsndfile.la 341 342tests_virtual_io_test_SOURCES = tests/virtual_io_test.c tests/utils.c tests/utils.h 343tests_virtual_io_test_LDADD = src/libsndfile.la 344 345tests_ogg_test_SOURCES = tests/ogg_test.c tests/utils.c tests/utils.h 346tests_ogg_test_LDADD = src/libsndfile.la 347 348tests_ogg_opus_test_SOURCES = tests/ogg_opus_test.c tests/utils.c tests/utils.h 349tests_ogg_opus_test_LDADD = src/libsndfile.la 350 351tests_compression_size_test_SOURCES = tests/compression_size_test.c tests/utils.c tests/utils.h tests/dft_cmp.h 352tests_compression_size_test_LDADD = src/libsndfile.la 353 354tests_rdwr_test_SOURCES = tests/rdwr_test.c tests/utils.c tests/utils.h 355tests_rdwr_test_LDADD = src/libsndfile.la 356 357tests_win32_test_SOURCES = tests/win32_test.c 358# Link lib here so that generating the testsuite tarball works correctly. 359tests_win32_test_LDADD = src/libsndfile.la 360 361tests_win32_ordinal_test_SOURCES = tests/win32_ordinal_test.c tests/utils.c tests/utils.h 362tests_win32_ordinal_test_LDADD = src/libsndfile.la 363 364tests_external_libs_test_SOURCES = tests/external_libs_test.c tests/utils.c tests/utils.h 365tests_external_libs_test_LDADD = src/libsndfile.la 366 367tests_format_check_test_SOURCES = tests/format_check_test.c tests/utils.c tests/utils.h 368tests_format_check_test_LDADD = src/libsndfile.la 369 370tests_channel_test_SOURCES = tests/channel_test.c tests/utils.c tests/utils.h 371tests_channel_test_LDADD = src/libsndfile.la 372 373tests_long_read_write_test_SOURCES = tests/long_read_write_test.c tests/utils.c tests/utils.h tests/dft_cmp.h 374tests_long_read_write_test_LDADD = src/libsndfile.la 375 376tests_cpp_test_SOURCES = tests/cpp_test.cc tests/utils.c tests/utils.h 377tests_cpp_test_LDADD = src/libsndfile.la 378 379tests_checksum_test_SOURCES = tests/checksum_test.c tests/utils.c tests/utils.h 380tests_checksum_test_LDADD = src/libsndfile.la 381 382tests_mpeg_test_SOURCES = tests/mpeg_test.c tests/utils.c tests/utils.h 383tests_mpeg_test_LDADD = src/libsndfile.la 384 385# Lite remove start 386tests_dwvw_test_SOURCES = tests/dwvw_test.c tests/utils.c tests/utils.h 387tests_dwvw_test_LDADD = src/libsndfile.la 388 389tests_floating_point_test_SOURCES = tests/utils.c tests/utils.h tests/dft_cmp.c tests/dft_cmp.h tests/floating_point_test.c 390tests_floating_point_test_LDADD = src/libsndfile.la 391 392tests_peak_chunk_test_SOURCES = tests/peak_chunk_test.c tests/utils.c tests/utils.h 393tests_peak_chunk_test_LDADD = src/libsndfile.la 394 395tests_scale_clip_test_SOURCES = tests/scale_clip_test.c tests/utils.c tests/utils.h 396tests_scale_clip_test_LDADD = src/libsndfile.la 397# Lite remove end 398 399#=============================================================================== 400# Autogen generated sources. 401# Coerce the multiple inputs -> multiple outputs problem 402# into suffix rules by "linearising" the dependency graph. 403# Yes, this sucks, but GNU make patterns aren't portable, 404# see also https://github.com/libsndfile/libsndfile/issues/369 405 406SUFFIXES = .tpl .def 407 408.tpl.def: 409 touch $@ 410 411# unconditionally running touch on the .def 412# files is necessary to keep all timestamps 413# consistent, in order to prevent stale files 414# from calling autogen in tarball releases. 415.def.c: 416 $(MAKE) $(AM_MAKEFLAGS) $< 417 cd $(top_srcdir)/$(@D) && autogen --writable $(<F) 418 419# recommended Automake way for multi-output targets: 420# https://www.gnu.org/software/automake/manual/html_node/Multiple-Outputs.html 421tests/utils.h : tests/utils.c 422 @if test -f $@; then :; else \ 423 cd $(top_srcdir) && \ 424 rm -f tests/utils.c && \ 425 $(MAKE) $(AM_MAKEFLAGS) tests/utils.c; \ 426 fi 427 428######## 429# man/ # 430######## 431 432if FULL_SUITE 433dist_man_MANS = man/sndfile-info.1 man/sndfile-play.1 man/sndfile-convert.1 man/sndfile-cmp.1 \ 434 man/sndfile-metadata-get.1 man/sndfile-metadata-set.1 man/sndfile-concat.1 \ 435 man/sndfile-interleave.1 man/sndfile-deinterleave.1 man/sndfile-salvage.1 436 437# Same manpage for both programs. 438man/sndfile-metadata-set.1: man/sndfile-metadata-get.1 439 -rm -f $@ 440 cd $(top_srcdir)/man && $(LN_S) sndfile-metadata-get.1 sndfile-metadata-set.1 441 442man/sndfile-deinterleave.1: man/sndfile-interleave.1 443 -rm -f $@ 444 cd $(top_srcdir)/man && $(LN_S) sndfile-interleave.1 sndfile-deinterleave.1 445 446############ 447# ossfuzz/ # 448############ 449 450if USE_OSSFUZZ_FLAG 451FUZZ_FLAG = $(LIB_FUZZING_ENGINE) 452FUZZ_LDADD = 453else 454if USE_OSSFUZZ_STATIC 455FUZZ_LDADD = $(LIB_FUZZING_ENGINE) 456FUZZ_FLAG = 457else 458FUZZ_LDADD = libstandaloneengine.la 459FUZZ_FLAG = 460endif 461endif 462 463if USE_OSSFUZZERS 464noinst_PROGRAMS += \ 465 ossfuzz/sndfile_fuzzer \ 466 ossfuzz/sndfile_alt_fuzzer 467 468noinst_LTLIBRARIES += \ 469 ossfuzz/libstandaloneengine.la 470endif 471 472ossfuzz_sndfile_fuzzer_SOURCES = ossfuzz/sndfile_fuzzer.cc 473ossfuzz_sndfile_fuzzer_CXXFLAGS = $(AM_CXXFLAGS) $(FUZZ_FLAG) 474ossfuzz_sndfile_fuzzer_LDFLAGS = $(AM_LDFLAGS) -static 475ossfuzz_sndfile_fuzzer_LDADD = src/libsndfile.la $(FUZZ_LDADD) 476 477ossfuzz_sndfile_alt_fuzzer_SOURCES = ossfuzz/sndfile_alt_fuzzer.cc 478ossfuzz_sndfile_alt_fuzzer_CXXFLAGS = $(AM_CXXFLAGS) $(FUZZ_FLAG) 479ossfuzz_sndfile_alt_fuzzer_LDFLAGS = $(AM_LDFLAGS) -static 480ossfuzz_sndfile_alt_fuzzer_LDADD = src/libsndfile.la $(FUZZ_LDADD) 481 482ossfuzz_libstandaloneengine_la_SOURCES = ossfuzz/standaloneengine.cc ossfuzz/testinput.h 483ossfuzz_libstandaloneengine_la_CXXFLAGS = $(AM_CXXFLAGS) 484 485############# 486# programs/ # 487############# 488 489bin_PROGRAMS = programs/sndfile-info programs/sndfile-play programs/sndfile-convert programs/sndfile-cmp \ 490 programs/sndfile-metadata-set programs/sndfile-metadata-get programs/sndfile-interleave \ 491 programs/sndfile-deinterleave programs/sndfile-concat programs/sndfile-salvage 492endif 493 494# required by test-sndfile-metadata-set.py 495check_PROGRAMS += programs/sndfile-metadata-set programs/sndfile-metadata-get 496 497EXTRA_DIST += programs/test-sndfile-metadata-set.py 498 499programs_sndfile_info_SOURCES = programs/sndfile-info.c programs/common.c programs/common.h 500programs_sndfile_info_LDADD = src/libsndfile.la 501 502programs_sndfile_play_SOURCES = programs/sndfile-play.c programs/common.c programs/common.h 503programs_sndfile_play_LDADD = src/libsndfile.la $(OS_SPECIFIC_LINKS) $(ALSA_LIBS) $(SNDIO_LIBS) 504 505programs_sndfile_convert_SOURCES = programs/sndfile-convert.c programs/common.c programs/common.h 506programs_sndfile_convert_LDADD = src/libsndfile.la 507 508programs_sndfile_cmp_SOURCES = programs/sndfile-cmp.c programs/common.c programs/common.h 509programs_sndfile_cmp_LDADD = src/libsndfile.la 510 511programs_sndfile_metadata_set_SOURCES = programs/sndfile-metadata-set.c programs/common.c programs/common.h 512programs_sndfile_metadata_set_LDADD = src/libsndfile.la 513 514programs_sndfile_metadata_get_SOURCES = programs/sndfile-metadata-get.c programs/common.c programs/common.h 515programs_sndfile_metadata_get_LDADD = src/libsndfile.la 516 517programs_sndfile_interleave_SOURCES = programs/sndfile-interleave.c programs/common.c programs/common.h 518programs_sndfile_interleave_LDADD = src/libsndfile.la 519 520programs_sndfile_deinterleave_SOURCES = programs/sndfile-deinterleave.c programs/common.c programs/common.h 521programs_sndfile_deinterleave_LDADD = src/libsndfile.la 522 523programs_sndfile_concat_SOURCES = programs/sndfile-concat.c programs/common.c programs/common.h 524programs_sndfile_concat_LDADD = src/libsndfile.la 525 526programs_sndfile_salvage_SOURCES = programs/sndfile-salvage.c programs/common.c programs/common.h 527programs_sndfile_salvage_LDADD = src/libsndfile.la 528 529############ 530# regtest/ # 531############ 532 533if HAVE_SQLITE3 534check_PROGRAMS += regtest/sndfile-regtest 535endif 536 537regtest_sndfile_regtest_SOURCES = regtest/regtest.h regtest/sndfile-regtest.c regtest/database.c regtest/checksum.c 538regtest_sndfile_CPPFLAGS = -I$(top_srcdir)/src $(SQLITE3_CFLAGS) $(OS_SPECIFIC_CFLAGS) 539regtest_sndfile_regtest_LDADD = src/libsndfile.la $(SQLITE3_LIBS) 540 541################ 542# test-tarball # 543################ 544test-tarball : Scripts/build-test-tarball.mk 545 $(MAKE) $(bin_PROGRAMS) $(check_PROGRAMS) 546 $(MAKE) -f Scripts/build-test-tarball.mk 547