Makefile.am 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121
  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. pkginclude_HEADERS = include/opus.h include/opus_multistream.h include/opus_types.h include/opus_defines.h
  18. noinst_HEADERS = $(OPUS_HEAD) $(SILK_HEAD) $(CELT_HEAD)
  19. 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
  20. 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
  21. opus_demo_SOURCES = src/opus_demo.c
  22. opus_demo_LDADD = libopus.la -lm
  23. repacketizer_demo_SOURCES = src/repacketizer_demo.c
  24. repacketizer_demo_LDADD = libopus.la -lm
  25. opus_compare_SOURCES = src/opus_compare.c
  26. opus_compare_LDADD = -lm
  27. tests_test_opus_api_SOURCES = tests/test_opus_api.c tests/test_opus_common.h
  28. tests_test_opus_api_LDADD = libopus.la -lm
  29. tests_test_opus_encode_SOURCES = tests/test_opus_encode.c tests/test_opus_common.h
  30. tests_test_opus_encode_LDADD = libopus.la -lm
  31. tests_test_opus_decode_SOURCES = tests/test_opus_decode.c tests/test_opus_common.h
  32. tests_test_opus_decode_LDADD = libopus.la -lm
  33. celt_tests_test_unit_cwrs32_SOURCES = celt/tests/test_unit_cwrs32.c
  34. celt_tests_test_unit_cwrs32_LDADD = -lm
  35. celt_tests_test_unit_dft_SOURCES = celt/tests/test_unit_dft.c
  36. celt_tests_test_unit_dft_LDADD = -lm
  37. celt_tests_test_unit_entropy_SOURCES = celt/tests/test_unit_entropy.c
  38. celt_tests_test_unit_entropy_LDADD = -lm
  39. celt_tests_test_unit_laplace_SOURCES = celt/tests/test_unit_laplace.c
  40. celt_tests_test_unit_laplace_LDADD = -lm
  41. celt_tests_test_unit_mathops_SOURCES = celt/tests/test_unit_mathops.c
  42. celt_tests_test_unit_mathops_LDADD = -lm
  43. celt_tests_test_unit_mdct_SOURCES = celt/tests/test_unit_mdct.c
  44. celt_tests_test_unit_mdct_LDADD = -lm
  45. celt_tests_test_unit_rotation_SOURCES = celt/tests/test_unit_rotation.c
  46. celt_tests_test_unit_rotation_LDADD = -lm
  47. celt_tests_test_unit_types_SOURCES = celt/tests/test_unit_types.c
  48. celt_tests_test_unit_types_LDADD = -lm
  49. if CUSTOM_MODES
  50. pkginclude_HEADERS += include/opus_custom.h
  51. noinst_PROGRAMS += opus_custom_demo
  52. opus_custom_demo_SOURCES = celt/opus_custom_demo.c
  53. opus_custom_demo_LDADD = libopus.la -lm
  54. endif
  55. EXTRA_DIST = opus.pc.in opus-uninstalled.pc.in
  56. pkgconfigdir = $(libdir)/pkgconfig
  57. pkgconfig_DATA = opus.pc
  58. # Targets to build and install just the library without the docs
  59. opus check-opus install-opus: export NO_DOXYGEN = 1
  60. opus: all
  61. check-opus: check
  62. install-opus: install
  63. # Or just the docs
  64. docs:
  65. $(MAKE) $(AM_MAKEFLAGS) -C doc
  66. install-docs:
  67. $(MAKE) $(AM_MAKEFLAGS) -C doc install
  68. # Or everything (by default)
  69. all-local:
  70. @[ -n "$(NO_DOXYGEN)" ] || $(MAKE) $(AM_MAKEFLAGS) -C doc
  71. install-data-local:
  72. @[ -n "$(NO_DOXYGEN)" ] || $(MAKE) $(AM_MAKEFLAGS) -C doc install
  73. clean-local:
  74. -$(MAKE) $(AM_MAKEFLAGS) -C doc clean
  75. uninstall-local:
  76. $(MAKE) $(AM_MAKEFLAGS) -C doc uninstall
  77. .PHONY: opus check-opus install-opus docs install-docs