Makefile.am 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154
  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. OPUS_SOURCES += $(OPUS_SOURCES_FLOAT)
  13. endif
  14. include celt_headers.mk
  15. include silk_headers.mk
  16. include opus_headers.mk
  17. libopus_la_SOURCES = $(CELT_SOURCES) $(SILK_SOURCES) $(OPUS_SOURCES)
  18. libopus_la_LDFLAGS = -no-undefined -version-info @OPUS_LT_CURRENT@:@OPUS_LT_REVISION@:@OPUS_LT_AGE@
  19. pkginclude_HEADERS = include/opus.h include/opus_multistream.h include/opus_types.h include/opus_defines.h
  20. noinst_HEADERS = $(OPUS_HEAD) $(SILK_HEAD) $(CELT_HEAD)
  21. noinst_PROGRAMS = opus_demo repacketizer_demo opus_compare tests/test_opus_api tests/test_opus_encode tests/test_opus_decode tests/test_opus_padding 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
  22. 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 tests/test_opus_padding
  23. opus_demo_SOURCES = src/opus_demo.c
  24. opus_demo_LDADD = libopus.la -lm
  25. repacketizer_demo_SOURCES = src/repacketizer_demo.c
  26. repacketizer_demo_LDADD = libopus.la -lm
  27. opus_compare_SOURCES = src/opus_compare.c
  28. opus_compare_LDADD = -lm
  29. tests_test_opus_api_SOURCES = tests/test_opus_api.c tests/test_opus_common.h
  30. tests_test_opus_api_LDADD = libopus.la -lm
  31. tests_test_opus_encode_SOURCES = tests/test_opus_encode.c tests/test_opus_common.h
  32. tests_test_opus_encode_LDADD = libopus.la -lm
  33. tests_test_opus_decode_SOURCES = tests/test_opus_decode.c tests/test_opus_common.h
  34. tests_test_opus_decode_LDADD = libopus.la -lm
  35. tests_test_opus_padding_SOURCES = tests/test_opus_padding.c tests/test_opus_common.h
  36. tests_test_opus_padding_LDADD = libopus.la -lm
  37. celt_tests_test_unit_cwrs32_SOURCES = celt/tests/test_unit_cwrs32.c
  38. celt_tests_test_unit_cwrs32_LDADD = -lm
  39. celt_tests_test_unit_dft_SOURCES = celt/tests/test_unit_dft.c
  40. celt_tests_test_unit_dft_LDADD = -lm
  41. celt_tests_test_unit_entropy_SOURCES = celt/tests/test_unit_entropy.c
  42. celt_tests_test_unit_entropy_LDADD = -lm
  43. celt_tests_test_unit_laplace_SOURCES = celt/tests/test_unit_laplace.c
  44. celt_tests_test_unit_laplace_LDADD = -lm
  45. celt_tests_test_unit_mathops_SOURCES = celt/tests/test_unit_mathops.c
  46. celt_tests_test_unit_mathops_LDADD = -lm
  47. celt_tests_test_unit_mdct_SOURCES = celt/tests/test_unit_mdct.c
  48. celt_tests_test_unit_mdct_LDADD = -lm
  49. celt_tests_test_unit_rotation_SOURCES = celt/tests/test_unit_rotation.c
  50. celt_tests_test_unit_rotation_LDADD = -lm
  51. celt_tests_test_unit_types_SOURCES = celt/tests/test_unit_types.c
  52. celt_tests_test_unit_types_LDADD = -lm
  53. if CUSTOM_MODES
  54. pkginclude_HEADERS += include/opus_custom.h
  55. noinst_PROGRAMS += opus_custom_demo
  56. opus_custom_demo_SOURCES = celt/opus_custom_demo.c
  57. opus_custom_demo_LDADD = libopus.la -lm
  58. endif
  59. EXTRA_DIST = version.mk \
  60. opus.pc.in \
  61. opus-uninstalled.pc.in \
  62. opus.m4 \
  63. Makefile.unix \
  64. tests/run_vectors.sh \
  65. opus.sln \
  66. celt/celt.vcxproj \
  67. celt/celt.vcxproj.filters \
  68. src/opus_demo.vcxproj \
  69. src/opus.vcxproj \
  70. src/opus.vcxproj.filters \
  71. src/opus_demo.vcxproj.filters \
  72. tests/test_opus_decode.vcxproj.filters \
  73. tests/test_opus_decode.vcxproj \
  74. tests/test_opus_encode.vcxproj.filters \
  75. tests/test_opus_encode.vcxproj \
  76. tests/test_opus_api.vcxproj.filters \
  77. tests/test_opus_api.vcxproj \
  78. silk/float/silk_float.vcxproj.filters \
  79. silk/float/silk_float.vcxproj \
  80. silk/fixed/silk_fixed.vcxproj.filters \
  81. silk/fixed/silk_fixed.vcxproj \
  82. silk/silk_common.vcxproj \
  83. silk/silk_common.vcxproj.filters \
  84. win32/genversion.bat \
  85. win32/config.h
  86. pkgconfigdir = $(libdir)/pkgconfig
  87. pkgconfig_DATA = opus.pc
  88. m4datadir = $(datadir)/aclocal
  89. m4data_DATA = opus.m4
  90. # Targets to build and install just the library without the docs
  91. opus check-opus install-opus: export NO_DOXYGEN = 1
  92. opus: all
  93. check-opus: check
  94. install-opus: install
  95. # Or just the docs
  96. docs:
  97. ( cd doc && $(MAKE) $(AM_MAKEFLAGS) )
  98. install-docs:
  99. ( cd doc && $(MAKE) $(AM_MAKEFLAGS) install )
  100. # Or everything (by default)
  101. all-local:
  102. @[ -n "$(NO_DOXYGEN)" ] || ( cd doc && $(MAKE) $(AM_MAKEFLAGS) )
  103. install-data-local:
  104. @[ -n "$(NO_DOXYGEN)" ] || ( cd doc && $(MAKE) $(AM_MAKEFLAGS) install )
  105. clean-local:
  106. -( cd doc && $(MAKE) $(AM_MAKEFLAGS) clean )
  107. uninstall-local:
  108. ( cd doc && $(MAKE) $(AM_MAKEFLAGS) uninstall )
  109. .PHONY: opus check-opus install-opus docs install-docs