Makefile.am 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151
  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 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
  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. celt_tests_test_unit_cwrs32_SOURCES = celt/tests/test_unit_cwrs32.c
  36. celt_tests_test_unit_cwrs32_LDADD = -lm
  37. celt_tests_test_unit_dft_SOURCES = celt/tests/test_unit_dft.c
  38. celt_tests_test_unit_dft_LDADD = -lm
  39. celt_tests_test_unit_entropy_SOURCES = celt/tests/test_unit_entropy.c
  40. celt_tests_test_unit_entropy_LDADD = -lm
  41. celt_tests_test_unit_laplace_SOURCES = celt/tests/test_unit_laplace.c
  42. celt_tests_test_unit_laplace_LDADD = -lm
  43. celt_tests_test_unit_mathops_SOURCES = celt/tests/test_unit_mathops.c
  44. celt_tests_test_unit_mathops_LDADD = -lm
  45. celt_tests_test_unit_mdct_SOURCES = celt/tests/test_unit_mdct.c
  46. celt_tests_test_unit_mdct_LDADD = -lm
  47. celt_tests_test_unit_rotation_SOURCES = celt/tests/test_unit_rotation.c
  48. celt_tests_test_unit_rotation_LDADD = -lm
  49. celt_tests_test_unit_types_SOURCES = celt/tests/test_unit_types.c
  50. celt_tests_test_unit_types_LDADD = -lm
  51. if CUSTOM_MODES
  52. pkginclude_HEADERS += include/opus_custom.h
  53. noinst_PROGRAMS += opus_custom_demo
  54. opus_custom_demo_SOURCES = celt/opus_custom_demo.c
  55. opus_custom_demo_LDADD = libopus.la -lm
  56. endif
  57. EXTRA_DIST = version.mk \
  58. opus.pc.in \
  59. opus-uninstalled.pc.in \
  60. opus.m4 \
  61. Makefile.unix \
  62. tests/run_vectors.sh \
  63. opus.sln \
  64. celt/celt.vcxproj \
  65. celt/celt.vcxproj.filters \
  66. src/opus_demo.vcxproj \
  67. src/opus.vcxproj \
  68. src/opus.vcxproj.filters \
  69. src/opus_demo.vcxproj.filters \
  70. tests/test_opus_decode.vcxproj.filters \
  71. tests/test_opus_decode.vcxproj \
  72. tests/test_opus_encode.vcxproj.filters \
  73. tests/test_opus_encode.vcxproj \
  74. tests/test_opus_api.vcxproj.filters \
  75. tests/test_opus_api.vcxproj \
  76. silk/float/silk_float.vcxproj.filters \
  77. silk/float/silk_float.vcxproj \
  78. silk/fixed/silk_fixed.vcxproj.filters \
  79. silk/fixed/silk_fixed.vcxproj \
  80. silk/silk_common.vcxproj \
  81. silk/silk_common.vcxproj.filters \
  82. win32/genversion.bat \
  83. win32/config.h
  84. pkgconfigdir = $(libdir)/pkgconfig
  85. pkgconfig_DATA = opus.pc
  86. m4datadir = $(datadir)/aclocal
  87. m4data_DATA = opus.m4
  88. # Targets to build and install just the library without the docs
  89. opus check-opus install-opus: export NO_DOXYGEN = 1
  90. opus: all
  91. check-opus: check
  92. install-opus: install
  93. # Or just the docs
  94. docs:
  95. ( cd doc && $(MAKE) $(AM_MAKEFLAGS) )
  96. install-docs:
  97. ( cd doc && $(MAKE) $(AM_MAKEFLAGS) install )
  98. # Or everything (by default)
  99. all-local:
  100. @[ -n "$(NO_DOXYGEN)" ] || ( cd doc && $(MAKE) $(AM_MAKEFLAGS) )
  101. install-data-local:
  102. @[ -n "$(NO_DOXYGEN)" ] || ( cd doc && $(MAKE) $(AM_MAKEFLAGS) install )
  103. clean-local:
  104. -( cd doc && $(MAKE) $(AM_MAKEFLAGS) clean )
  105. uninstall-local:
  106. ( cd doc && $(MAKE) $(AM_MAKEFLAGS) uninstall )
  107. .PHONY: opus check-opus install-opus docs install-docs