Gregory Maxwell | 135e5d3 | 2012-04-29 20:24:36 -0400 | [diff] [blame] | 1 | AUTOMAKE_OPTIONS = subdir-objects |
Ralph Giles | 2852cb1 | 2011-08-02 11:43:43 -0700 | [diff] [blame] | 2 | |
Jean-Marc Valin | e05aaf2 | 2011-04-29 19:48:42 -0400 | [diff] [blame] | 3 | lib_LTLIBRARIES = libopus.la |
Jean-Marc Valin | a0cbeca | 2010-07-08 11:27:20 -0400 | [diff] [blame] | 4 | |
Jean-Marc Valin | 4923f3f | 2011-10-26 21:36:57 -0400 | [diff] [blame] | 5 | INCLUDES = -I$(top_srcdir)/include -I$(top_srcdir)/celt -I$(top_srcdir)/silk -I$(top_srcdir)/silk/float -I$(top_srcdir)/silk/fixed |
Jean-Marc Valin | a0cbeca | 2010-07-08 11:27:20 -0400 | [diff] [blame] | 6 | |
Jean-Marc Valin | 8e4f5a8 | 2011-04-30 00:35:55 -0400 | [diff] [blame] | 7 | include celt_sources.mk |
| 8 | include silk_sources.mk |
| 9 | include opus_sources.mk |
Jean-Marc Valin | e7a2a03 | 2011-02-14 21:18:08 -0500 | [diff] [blame] | 10 | |
Jean-Marc Valin | b2c00d2 | 2011-08-02 08:13:42 -0400 | [diff] [blame] | 11 | if FIXED_POINT |
| 12 | SILK_SOURCES += $(SILK_SOURCES_FIXED) |
| 13 | else |
| 14 | SILK_SOURCES += $(SILK_SOURCES_FLOAT) |
| 15 | endif |
| 16 | |
Ralph Giles | cd539df | 2012-04-05 09:23:47 -0700 | [diff] [blame] | 17 | include celt_headers.mk |
| 18 | include silk_headers.mk |
| 19 | include opus_headers.mk |
Jean-Marc Valin | 3596fed | 2011-07-09 09:20:51 -0400 | [diff] [blame] | 20 | |
Jean-Marc Valin | 8e4f5a8 | 2011-04-30 00:35:55 -0400 | [diff] [blame] | 21 | libopus_la_SOURCES = $(CELT_SOURCES) $(SILK_SOURCES) $(OPUS_SOURCES) |
Jean-Marc Valin | e05aaf2 | 2011-04-29 19:48:42 -0400 | [diff] [blame] | 22 | |
Jean-Marc Valin | 4923f3f | 2011-10-26 21:36:57 -0400 | [diff] [blame] | 23 | pkginclude_HEADERS = include/opus.h include/opus_multistream.h include/opus_types.h include/opus_defines.h |
Jean-Marc Valin | e05aaf2 | 2011-04-29 19:48:42 -0400 | [diff] [blame] | 24 | |
Jean-Marc Valin | 3596fed | 2011-07-09 09:20:51 -0400 | [diff] [blame] | 25 | noinst_HEADERS = $(OPUS_HEAD) $(SILK_HEAD) $(CELT_HEAD) |
| 26 | |
Gregory Maxwell | 9652f81 | 2011-10-26 23:55:33 -0400 | [diff] [blame] | 27 | 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 |
Jean-Marc Valin | e05aaf2 | 2011-04-29 19:48:42 -0400 | [diff] [blame] | 28 | |
Gregory Maxwell | 9652f81 | 2011-10-26 23:55:33 -0400 | [diff] [blame] | 29 | 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 |
Jean-Marc Valin | e05aaf2 | 2011-04-29 19:48:42 -0400 | [diff] [blame] | 30 | |
Gregory Maxwell | a5ff49e | 2011-10-26 19:56:00 -0400 | [diff] [blame] | 31 | opus_demo_SOURCES = src/opus_demo.c |
| 32 | |
| 33 | opus_demo_LDADD = libopus.la -lm |
Jean-Marc Valin | e8dbcb8 | 2011-08-10 09:47:30 -0400 | [diff] [blame] | 34 | |
Gregory Maxwell | 38805f3 | 2011-10-26 20:05:56 -0400 | [diff] [blame] | 35 | repacketizer_demo_SOURCES = src/repacketizer_demo.c |
Jean-Marc Valin | e8dbcb8 | 2011-08-10 09:47:30 -0400 | [diff] [blame] | 36 | |
Gregory Maxwell | 38805f3 | 2011-10-26 20:05:56 -0400 | [diff] [blame] | 37 | repacketizer_demo_LDADD = libopus.la -lm |
Ralph Giles | 9f71309 | 2011-08-28 22:32:13 +1200 | [diff] [blame] | 38 | |
Jean-Marc Valin | c4ca21f | 2011-09-15 10:10:40 -0700 | [diff] [blame] | 39 | opus_compare_SOURCES = src/opus_compare.c |
| 40 | opus_compare_LDADD = -lm |
| 41 | |
Gregory Maxwell | 9652f81 | 2011-10-26 23:55:33 -0400 | [diff] [blame] | 42 | tests_test_opus_api_SOURCES = tests/test_opus_api.c tests/test_opus_common.h |
| 43 | tests_test_opus_api_LDADD = libopus.la -lm |
Gregory Maxwell | a5ff49e | 2011-10-26 19:56:00 -0400 | [diff] [blame] | 44 | |
Gregory Maxwell | 9652f81 | 2011-10-26 23:55:33 -0400 | [diff] [blame] | 45 | tests_test_opus_encode_SOURCES = tests/test_opus_encode.c tests/test_opus_common.h |
| 46 | tests_test_opus_encode_LDADD = libopus.la -lm |
Gregory Maxwell | a5ff49e | 2011-10-26 19:56:00 -0400 | [diff] [blame] | 47 | |
Gregory Maxwell | 9652f81 | 2011-10-26 23:55:33 -0400 | [diff] [blame] | 48 | tests_test_opus_decode_SOURCES = tests/test_opus_decode.c tests/test_opus_common.h |
| 49 | tests_test_opus_decode_LDADD = libopus.la -lm |
| 50 | |
| 51 | celt_tests_test_unit_cwrs32_SOURCES = celt/tests/test_unit_cwrs32.c |
| 52 | celt_tests_test_unit_cwrs32_LDADD = -lm |
| 53 | |
| 54 | celt_tests_test_unit_dft_SOURCES = celt/tests/test_unit_dft.c |
| 55 | celt_tests_test_unit_dft_LDADD = -lm |
| 56 | |
| 57 | celt_tests_test_unit_entropy_SOURCES = celt/tests/test_unit_entropy.c |
| 58 | celt_tests_test_unit_entropy_LDADD = -lm |
| 59 | |
| 60 | celt_tests_test_unit_laplace_SOURCES = celt/tests/test_unit_laplace.c |
| 61 | celt_tests_test_unit_laplace_LDADD = -lm |
| 62 | |
| 63 | celt_tests_test_unit_mathops_SOURCES = celt/tests/test_unit_mathops.c |
| 64 | celt_tests_test_unit_mathops_LDADD = -lm |
| 65 | |
| 66 | celt_tests_test_unit_mdct_SOURCES = celt/tests/test_unit_mdct.c |
| 67 | celt_tests_test_unit_mdct_LDADD = -lm |
| 68 | |
| 69 | celt_tests_test_unit_rotation_SOURCES = celt/tests/test_unit_rotation.c |
| 70 | celt_tests_test_unit_rotation_LDADD = -lm |
| 71 | |
| 72 | celt_tests_test_unit_types_SOURCES = celt/tests/test_unit_types.c |
| 73 | celt_tests_test_unit_types_LDADD = -lm |
Gregory Maxwell | a5ff49e | 2011-10-26 19:56:00 -0400 | [diff] [blame] | 74 | |
Jean-Marc Valin | 06237d7 | 2011-09-01 13:20:40 -0400 | [diff] [blame] | 75 | if CUSTOM_MODES |
Jean-Marc Valin | 4923f3f | 2011-10-26 21:36:57 -0400 | [diff] [blame] | 76 | pkginclude_HEADERS += include/opus_custom.h |
Gregory Maxwell | a5ff49e | 2011-10-26 19:56:00 -0400 | [diff] [blame] | 77 | noinst_PROGRAMS += opus_custom_demo |
| 78 | opus_custom_demo_SOURCES = celt/opus_custom_demo.c |
| 79 | opus_custom_demo_LDADD = libopus.la -lm |
Jean-Marc Valin | 06237d7 | 2011-09-01 13:20:40 -0400 | [diff] [blame] | 80 | endif |
| 81 | |
Ron | b6512b4 | 2012-05-21 23:16:39 +0930 | [diff] [blame] | 82 | EXTRA_DIST = opus.pc.in opus-uninstalled.pc.in doc |
Ralph Giles | 9f71309 | 2011-08-28 22:32:13 +1200 | [diff] [blame] | 83 | |
| 84 | pkgconfigdir = $(libdir)/pkgconfig |
| 85 | pkgconfig_DATA = opus.pc |
Ron | b6512b4 | 2012-05-21 23:16:39 +0930 | [diff] [blame] | 86 | |
| 87 | |
| 88 | # Targets to build and install just the library without the docs |
| 89 | opus check-opus install-opus: export NO_DOXYGEN = 1 |
| 90 | |
| 91 | opus: all |
| 92 | check-opus: check |
| 93 | install-opus: install |
| 94 | |
| 95 | |
| 96 | # Or just the docs |
| 97 | docs: |
| 98 | $(MAKE) $(AM_MAKEFLAGS) -C doc |
| 99 | |
| 100 | install-docs: |
| 101 | $(MAKE) $(AM_MAKEFLAGS) -C doc install |
| 102 | |
| 103 | |
| 104 | # Or everything (by default) |
| 105 | all-local: |
| 106 | @[ -n "$(NO_DOXYGEN)" ] || $(MAKE) $(AM_MAKEFLAGS) -C doc |
| 107 | |
| 108 | install-data-local: |
| 109 | @[ -n "$(NO_DOXYGEN)" ] || $(MAKE) $(AM_MAKEFLAGS) -C doc install |
| 110 | |
| 111 | clean-local: |
| 112 | $(MAKE) $(AM_MAKEFLAGS) -C doc clean |
| 113 | |
| 114 | distclean-local: |
| 115 | $(MAKE) $(AM_MAKEFLAGS) -C doc distclean |
| 116 | |
| 117 | uninstall-local: |
| 118 | $(MAKE) $(AM_MAKEFLAGS) -C doc uninstall |
| 119 | |
| 120 | |
| 121 | .PHONY: opus check-opus install-opus docs install-docs |