Makefile.am 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113
  1. ACLOCAL_AMFLAGS = -I m4
  2. #AUTOMAKE_OPTIONS = subdir-objects 1.6 dist-zip
  3. AUTOMAKE_OPTIONS = subdir-objects 1.11 dist-zip dist-xz
  4. SUBDIRS = .
  5. AM_CPPFLAGS = -I$(top_srcdir)/src -I$(top_srcdir)/win32 -D_FORTIFY_SOURCE=2
  6. AM_CFLAGS = $(OPUS_CFLAGS) $(OGG_CFLAGS)
  7. bin_PROGRAMS = opusenc opusdec opusinfo
  8. noinst_PROGRAMS = opusrtp
  9. noinst_HEADERS = src/arch.h \
  10. src/diag_range.h \
  11. src/flac.h \
  12. src/info_opus.h \
  13. src/encoder.h \
  14. src/opus_header.h \
  15. src/opusinfo.h \
  16. src/os_support.h \
  17. src/picture.h \
  18. src/resample_sse.h \
  19. src/speex_resampler.h \
  20. src/stack_alloc.h \
  21. win32/unicode_support.h \
  22. src/cpusupport.h \
  23. src/wave_out.h \
  24. src/wav_io.h
  25. EXTRA_DIST = Makefile.unix \
  26. man/opusrtp.1 \
  27. include/getopt.h \
  28. share/getopt.c \
  29. share/getopt1.c \
  30. win32/genversion.bat \
  31. win32/config.h \
  32. win32/unicode_support.h \
  33. win32/unicode_support.c \
  34. win32/VS2015/generate_version.vcxproj \
  35. win32/VS2015/opusdec.vcxproj \
  36. win32/VS2015/opusdec.vcxproj.filters \
  37. win32/VS2015/opusenc.vcxproj \
  38. win32/VS2015/opusenc.vcxproj.filters \
  39. win32/VS2015/opusinfo.vcxproj \
  40. win32/VS2015/opusinfo.vcxproj.filters \
  41. win32/VS2015/opus-tools.sln \
  42. win32/VS2015/common.props \
  43. win32/VS2015/opus-tools.props
  44. dist_man_MANS = man/opusenc.1 man/opusdec.1 man/opusinfo.1
  45. resampler_CPPFLAGS = -DSPX_RESAMPLE_EXPORT= -DRANDOM_PREFIX=opustools -DOUTSIDE_SPEEX -DFLOATING_POINT
  46. opusenc_SOURCES = src/opus_header.c src/opusenc.c src/picture.c src/audio-in.c src/diag_range.c src/flac.c win32/unicode_support.c
  47. opusenc_CPPFLAGS = $(AM_CPPFLAGS)
  48. opusenc_CFLAGS = $(AM_CFLAGS) $(LIBOPUSENC_CFLAGS) $(FLAC_CFLAGS)
  49. opusenc_LDADD = $(LIBOPUSENC_LIBS) $(OPUS_LIBS) $(FLAC_LIBS) $(OGG_LIBS) $(LIBM)
  50. opusenc_MANS = man/opusenc.1
  51. opusdec_SOURCES = src/opus_header.c src/wav_io.c src/wave_out.c src/opusdec.c src/resample.c src/diag_range.c win32/unicode_support.c
  52. opusdec_CPPFLAGS = $(AM_CPPFLAGS) $(resampler_CPPFLAGS)
  53. opusdec_CFLAGS = $(AM_CFLAGS) $(OPUSURL_CFLAGS)
  54. opusdec_LDADD = $(OPUSURL_LIBS) $(OPUS_LIBS) $(LIBM)
  55. opusdec_MANS = man/opusdec.1
  56. opusinfo_SOURCES = src/opus_header.c src/opusinfo.c src/info_opus.c src/picture.c win32/unicode_support.c
  57. opusinfo_CPPFLAGS = $(AM_CPPFLAGS) -DOPUSTOOLS
  58. opusinfo_LDADD = $(OGG_LIBS)
  59. opusinfo_MANS = man/opusinfo.1
  60. opusrtp_SOURCES = src/opusrtp.c
  61. opusrtp_LDADD = $(OPUS_LIBS) $(OGG_LIBS) @LIBPCAP@
  62. #TESTS = FIXME
  63. # We check this every time make is run, with configure.ac being touched to
  64. # trigger an update of the build system files if update_version changes the
  65. # current PACKAGE_VERSION (or if package_version was modified manually by a
  66. # user with either AUTO_UPDATE=no or no update_version script present - the
  67. # latter being the normal case for tarball releases).
  68. #
  69. # We can't just add the package_version file to CONFIGURE_DEPENDENCIES since
  70. # simply running autoconf will not actually regenerate configure for us when
  71. # the content of that file changes (due to autoconf dependency checking not
  72. # knowing about that without us creating yet another file for it to include).
  73. #
  74. # The MAKECMDGOALS check is a gnu-make'ism, but will degrade 'gracefully' for
  75. # makes that don't support it. The only loss of functionality is not forcing
  76. # an update of package_version for `make dist` if AUTO_UPDATE=no, but that is
  77. # unlikely to be a real problem for any real user.
  78. $(top_srcdir)/configure.ac: force
  79. @case "$(MAKECMDGOALS)" in \
  80. dist-hook) exit 0 ;; \
  81. dist-* | dist | distcheck | distclean) _arg=release ;; \
  82. esac; \
  83. if ! $(top_srcdir)/update_version $$_arg 2> /dev/null; then \
  84. if [ ! -e $(top_srcdir)/package_version ]; then \
  85. echo 'PACKAGE_VERSION="unknown"' > $(top_srcdir)/package_version; \
  86. fi; \
  87. . $(top_srcdir)/package_version || exit 1; \
  88. [ "$(PACKAGE_VERSION)" != "$$PACKAGE_VERSION" ] || exit 0; \
  89. fi; \
  90. touch $@
  91. force:
  92. # Create a minimal package_version file when make dist is run.
  93. dist-hook:
  94. echo 'PACKAGE_VERSION="$(PACKAGE_VERSION)"' > $(top_distdir)/package_version