Makefile.am 4.3 KB

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