Makefile.am 6.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186
  1. AUTOMAKE_OPTIONS = subdir-objects
  2. lib_LTLIBRARIES = libopus.la
  3. DIST_SUBDIRS = doc
  4. INCLUDES = -I$(top_srcdir)/include -I$(top_srcdir)/celt -I$(top_srcdir)/silk -I$(top_srcdir)/silk/float -I$(top_srcdir)/silk/fixed
  5. include celt_sources.mk
  6. include silk_sources.mk
  7. include opus_sources.mk
  8. if FIXED_POINT
  9. SILK_SOURCES += $(SILK_SOURCES_FIXED)
  10. else
  11. SILK_SOURCES += $(SILK_SOURCES_FLOAT)
  12. endif
  13. include celt_headers.mk
  14. include silk_headers.mk
  15. include opus_headers.mk
  16. libopus_la_SOURCES = $(CELT_SOURCES) $(SILK_SOURCES) $(OPUS_SOURCES)
  17. libopus_la_LDFLAGS = -no-undefined -version-info @OPUS_LT_CURRENT@:@OPUS_LT_REVISION@:@OPUS_LT_AGE@
  18. pkginclude_HEADERS = include/opus.h include/opus_multistream.h include/opus_types.h include/opus_defines.h
  19. noinst_HEADERS = $(OPUS_HEAD) $(SILK_HEAD) $(CELT_HEAD)
  20. noinst_PROGRAMS = opus_demo repacketizer_demo opus_compare tests/test_opus_api tests/test_opus_encode tests/test_opus_decode celt/tests/test_unit_cwrs32 celt/tests/test_unit_dft celt/tests/test_unit_entropy celt/tests/test_unit_laplace celt/tests/test_unit_mathops celt/tests/test_unit_mdct celt/tests/test_unit_rotation celt/tests/test_unit_types
  21. TESTS = celt/tests/test_unit_types celt/tests/test_unit_mathops celt/tests/test_unit_entropy celt/tests/test_unit_laplace celt/tests/test_unit_dft celt/tests/test_unit_mdct celt/tests/test_unit_rotation celt/tests/test_unit_cwrs32 tests/test_opus_api tests/test_opus_decode tests/test_opus_encode
  22. opus_demo_SOURCES = src/opus_demo.c
  23. opus_demo_LDADD = libopus.la -lm
  24. repacketizer_demo_SOURCES = src/repacketizer_demo.c
  25. repacketizer_demo_LDADD = libopus.la -lm
  26. opus_compare_SOURCES = src/opus_compare.c
  27. opus_compare_LDADD = -lm
  28. tests_test_opus_api_SOURCES = tests/test_opus_api.c tests/test_opus_common.h
  29. tests_test_opus_api_LDADD = libopus.la -lm
  30. tests_test_opus_encode_SOURCES = tests/test_opus_encode.c tests/test_opus_common.h
  31. tests_test_opus_encode_LDADD = libopus.la -lm
  32. tests_test_opus_decode_SOURCES = tests/test_opus_decode.c tests/test_opus_common.h
  33. tests_test_opus_decode_LDADD = libopus.la -lm
  34. celt_tests_test_unit_cwrs32_SOURCES = celt/tests/test_unit_cwrs32.c
  35. celt_tests_test_unit_cwrs32_LDADD = -lm
  36. celt_tests_test_unit_dft_SOURCES = celt/tests/test_unit_dft.c
  37. celt_tests_test_unit_dft_LDADD = -lm
  38. celt_tests_test_unit_entropy_SOURCES = celt/tests/test_unit_entropy.c
  39. celt_tests_test_unit_entropy_LDADD = -lm
  40. celt_tests_test_unit_laplace_SOURCES = celt/tests/test_unit_laplace.c
  41. celt_tests_test_unit_laplace_LDADD = -lm
  42. celt_tests_test_unit_mathops_SOURCES = celt/tests/test_unit_mathops.c
  43. celt_tests_test_unit_mathops_LDADD = -lm
  44. celt_tests_test_unit_mdct_SOURCES = celt/tests/test_unit_mdct.c
  45. celt_tests_test_unit_mdct_LDADD = -lm
  46. celt_tests_test_unit_rotation_SOURCES = celt/tests/test_unit_rotation.c
  47. celt_tests_test_unit_rotation_LDADD = -lm
  48. celt_tests_test_unit_types_SOURCES = celt/tests/test_unit_types.c
  49. celt_tests_test_unit_types_LDADD = -lm
  50. if CUSTOM_MODES
  51. pkginclude_HEADERS += include/opus_custom.h
  52. noinst_PROGRAMS += opus_custom_demo
  53. opus_custom_demo_SOURCES = celt/opus_custom_demo.c
  54. opus_custom_demo_LDADD = libopus.la -lm
  55. endif
  56. EXTRA_DIST = version.mk \
  57. opus.pc.in \
  58. opus-uninstalled.pc.in \
  59. opus.m4 \
  60. Makefile.unix \
  61. tests/run_vectors.sh \
  62. opus.sln \
  63. celt/celt.vcxproj \
  64. celt/celt.vcxproj.filters \
  65. src/opus_demo.vcxproj \
  66. src/opus.vcxproj \
  67. src/opus.vcxproj.filters \
  68. src/opus_demo.vcxproj.filters \
  69. tests/test_opus_decode.vcxproj.filters \
  70. tests/test_opus_decode.vcxproj \
  71. tests/test_opus_encode.vcxproj.filters \
  72. tests/test_opus_encode.vcxproj \
  73. tests/test_opus_api.vcxproj.filters \
  74. tests/test_opus_api.vcxproj \
  75. silk/float/silk_float.vcxproj.filters \
  76. silk/float/silk_float.vcxproj \
  77. silk/fixed/silk_fixed.vcxproj.filters \
  78. silk/fixed/silk_fixed.vcxproj \
  79. silk/silk_common.vcxproj \
  80. silk/silk_common.vcxproj.filters \
  81. win32/genversion.bat \
  82. win32/config.h
  83. pkgconfigdir = $(libdir)/pkgconfig
  84. pkgconfig_DATA = opus.pc
  85. m4datadir = $(datadir)/aclocal
  86. m4data_DATA = opus.m4
  87. # Targets to build and install just the library without the docs
  88. opus check-opus install-opus: export NO_DOXYGEN = 1
  89. opus: all
  90. check-opus: check
  91. install-opus: install
  92. # Or just the docs
  93. docs:
  94. ( cd doc && $(MAKE) $(AM_MAKEFLAGS) )
  95. install-docs:
  96. ( cd doc && $(MAKE) $(AM_MAKEFLAGS) install )
  97. # Or everything (by default)
  98. all-local:
  99. @[ -n "$(NO_DOXYGEN)" ] || ( cd doc && $(MAKE) $(AM_MAKEFLAGS) )
  100. install-data-local:
  101. @[ -n "$(NO_DOXYGEN)" ] || ( cd doc && $(MAKE) $(AM_MAKEFLAGS) install )
  102. clean-local:
  103. -( cd doc && $(MAKE) $(AM_MAKEFLAGS) clean )
  104. uninstall-local:
  105. ( cd doc && $(MAKE) $(AM_MAKEFLAGS) uninstall )
  106. # We check this every time make is run, with configure.ac being touched to
  107. # trigger an update of the build system files if update_version changes the
  108. # current PACKAGE_VERSION (or if package_version was modified manually by a
  109. # user with either AUTO_UPDATE=no or no update_version script present - the
  110. # latter being the normal case for tarball releases).
  111. #
  112. # We can't just add the package_version file to CONFIGURE_DEPENDENCIES since
  113. # simply running autoconf will not actually regenerate configure for us when
  114. # the content of that file changes (due to autoconf dependency checking not
  115. # knowing about that without us creating yet another file for it to include).
  116. #
  117. # The MAKECMDGOALS check is a gnu-make'ism, but will degrade 'gracefully' for
  118. # makes that don't support it. The only loss of functionality is not forcing
  119. # an update of package_version for `make dist` if AUTO_UPDATE=no, but that is
  120. # unlikely to be a real problem for any real user.
  121. $(top_srcdir)/configure.ac: force
  122. @case "$(MAKECMDGOALS)" in \
  123. dist-hook) exit 0 ;; \
  124. dist-* | dist | distcheck | distclean) _arg=release ;; \
  125. esac; \
  126. if ! $(top_srcdir)/update_version $$_arg 2> /dev/null; then \
  127. if [ ! -e $(top_srcdir)/package_version ]; then \
  128. echo 'PACKAGE_VERSION="unknown"' > $(top_srcdir)/package_version; \
  129. fi; \
  130. . $(top_srcdir)/package_version || exit 1; \
  131. [ "$(PACKAGE_VERSION)" != "$$PACKAGE_VERSION" ] || exit 0; \
  132. fi; \
  133. touch $@
  134. force:
  135. # Create a minimal package_version file when make dist is run.
  136. dist-hook:
  137. echo 'PACKAGE_VERSION="$(PACKAGE_VERSION)"' > $(top_distdir)/package_version
  138. .PHONY: opus check-opus install-opus docs install-docs