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 | |
Ron | 9a89d56 | 2012-06-12 04:40:42 +0930 | [diff] [blame] | 5 | DIST_SUBDIRS = doc |
| 6 | |
Jean-Marc Valin | 4923f3f | 2011-10-26 21:36:57 -0400 | [diff] [blame] | 7 | 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] | 8 | |
Jean-Marc Valin | 8e4f5a8 | 2011-04-30 00:35:55 -0400 | [diff] [blame] | 9 | include celt_sources.mk |
| 10 | include silk_sources.mk |
| 11 | include opus_sources.mk |
Jean-Marc Valin | e7a2a03 | 2011-02-14 21:18:08 -0500 | [diff] [blame] | 12 | |
Jean-Marc Valin | b2c00d2 | 2011-08-02 08:13:42 -0400 | [diff] [blame] | 13 | if FIXED_POINT |
| 14 | SILK_SOURCES += $(SILK_SOURCES_FIXED) |
| 15 | else |
| 16 | SILK_SOURCES += $(SILK_SOURCES_FLOAT) |
| 17 | endif |
| 18 | |
Ralph Giles | cd539df | 2012-04-05 09:23:47 -0700 | [diff] [blame] | 19 | include celt_headers.mk |
| 20 | include silk_headers.mk |
| 21 | include opus_headers.mk |
Jean-Marc Valin | 3596fed | 2011-07-09 09:20:51 -0400 | [diff] [blame] | 22 | |
Jean-Marc Valin | 8e4f5a8 | 2011-04-30 00:35:55 -0400 | [diff] [blame] | 23 | libopus_la_SOURCES = $(CELT_SOURCES) $(SILK_SOURCES) $(OPUS_SOURCES) |
Gregory Maxwell | 8d2e9ad | 2012-08-10 17:21:28 -0400 | [diff] [blame] | 24 | libopus_la_LDFLAGS = -no-undefined -version-info @OPUS_LT_CURRENT@:@OPUS_LT_REVISION@:@OPUS_LT_AGE@ |
Jean-Marc Valin | e05aaf2 | 2011-04-29 19:48:42 -0400 | [diff] [blame] | 25 | |
Jean-Marc Valin | 4923f3f | 2011-10-26 21:36:57 -0400 | [diff] [blame] | 26 | 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] | 27 | |
Jean-Marc Valin | 3596fed | 2011-07-09 09:20:51 -0400 | [diff] [blame] | 28 | noinst_HEADERS = $(OPUS_HEAD) $(SILK_HEAD) $(CELT_HEAD) |
| 29 | |
Gregory Maxwell | 9652f81 | 2011-10-26 23:55:33 -0400 | [diff] [blame] | 30 | 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] | 31 | |
Gregory Maxwell | 9652f81 | 2011-10-26 23:55:33 -0400 | [diff] [blame] | 32 | 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] | 33 | |
Gregory Maxwell | a5ff49e | 2011-10-26 19:56:00 -0400 | [diff] [blame] | 34 | opus_demo_SOURCES = src/opus_demo.c |
| 35 | |
| 36 | opus_demo_LDADD = libopus.la -lm |
Jean-Marc Valin | e8dbcb8 | 2011-08-10 09:47:30 -0400 | [diff] [blame] | 37 | |
Gregory Maxwell | 38805f3 | 2011-10-26 20:05:56 -0400 | [diff] [blame] | 38 | repacketizer_demo_SOURCES = src/repacketizer_demo.c |
Jean-Marc Valin | e8dbcb8 | 2011-08-10 09:47:30 -0400 | [diff] [blame] | 39 | |
Gregory Maxwell | 38805f3 | 2011-10-26 20:05:56 -0400 | [diff] [blame] | 40 | repacketizer_demo_LDADD = libopus.la -lm |
Ralph Giles | 9f71309 | 2011-08-28 22:32:13 +1200 | [diff] [blame] | 41 | |
Jean-Marc Valin | c4ca21f | 2011-09-15 10:10:40 -0700 | [diff] [blame] | 42 | opus_compare_SOURCES = src/opus_compare.c |
| 43 | opus_compare_LDADD = -lm |
| 44 | |
Gregory Maxwell | 9652f81 | 2011-10-26 23:55:33 -0400 | [diff] [blame] | 45 | tests_test_opus_api_SOURCES = tests/test_opus_api.c tests/test_opus_common.h |
| 46 | tests_test_opus_api_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_encode_SOURCES = tests/test_opus_encode.c tests/test_opus_common.h |
| 49 | tests_test_opus_encode_LDADD = libopus.la -lm |
Gregory Maxwell | a5ff49e | 2011-10-26 19:56:00 -0400 | [diff] [blame] | 50 | |
Gregory Maxwell | 9652f81 | 2011-10-26 23:55:33 -0400 | [diff] [blame] | 51 | tests_test_opus_decode_SOURCES = tests/test_opus_decode.c tests/test_opus_common.h |
| 52 | tests_test_opus_decode_LDADD = libopus.la -lm |
| 53 | |
| 54 | celt_tests_test_unit_cwrs32_SOURCES = celt/tests/test_unit_cwrs32.c |
| 55 | celt_tests_test_unit_cwrs32_LDADD = -lm |
| 56 | |
| 57 | celt_tests_test_unit_dft_SOURCES = celt/tests/test_unit_dft.c |
| 58 | celt_tests_test_unit_dft_LDADD = -lm |
| 59 | |
| 60 | celt_tests_test_unit_entropy_SOURCES = celt/tests/test_unit_entropy.c |
| 61 | celt_tests_test_unit_entropy_LDADD = -lm |
| 62 | |
| 63 | celt_tests_test_unit_laplace_SOURCES = celt/tests/test_unit_laplace.c |
| 64 | celt_tests_test_unit_laplace_LDADD = -lm |
| 65 | |
| 66 | celt_tests_test_unit_mathops_SOURCES = celt/tests/test_unit_mathops.c |
| 67 | celt_tests_test_unit_mathops_LDADD = -lm |
| 68 | |
| 69 | celt_tests_test_unit_mdct_SOURCES = celt/tests/test_unit_mdct.c |
| 70 | celt_tests_test_unit_mdct_LDADD = -lm |
| 71 | |
| 72 | celt_tests_test_unit_rotation_SOURCES = celt/tests/test_unit_rotation.c |
| 73 | celt_tests_test_unit_rotation_LDADD = -lm |
| 74 | |
| 75 | celt_tests_test_unit_types_SOURCES = celt/tests/test_unit_types.c |
| 76 | celt_tests_test_unit_types_LDADD = -lm |
Gregory Maxwell | a5ff49e | 2011-10-26 19:56:00 -0400 | [diff] [blame] | 77 | |
Jean-Marc Valin | 06237d7 | 2011-09-01 13:20:40 -0400 | [diff] [blame] | 78 | if CUSTOM_MODES |
Jean-Marc Valin | 4923f3f | 2011-10-26 21:36:57 -0400 | [diff] [blame] | 79 | pkginclude_HEADERS += include/opus_custom.h |
Gregory Maxwell | a5ff49e | 2011-10-26 19:56:00 -0400 | [diff] [blame] | 80 | noinst_PROGRAMS += opus_custom_demo |
| 81 | opus_custom_demo_SOURCES = celt/opus_custom_demo.c |
| 82 | opus_custom_demo_LDADD = libopus.la -lm |
Jean-Marc Valin | 06237d7 | 2011-09-01 13:20:40 -0400 | [diff] [blame] | 83 | endif |
| 84 | |
Ralph Giles | 59c5a82 | 2012-08-16 11:39:56 -0700 | [diff] [blame] | 85 | EXTRA_DIST = version.mk \ |
| 86 | opus.pc.in \ |
Gregory Maxwell | e852c34 | 2012-08-09 07:29:58 -0400 | [diff] [blame] | 87 | opus-uninstalled.pc.in \ |
Gregory Maxwell | 6e2dd16 | 2012-08-30 12:26:34 -0400 | [diff] [blame] | 88 | opus.m4 \ |
Jean-Marc Valin | e91dfa0 | 2012-08-31 23:10:12 -0400 | [diff] [blame] | 89 | Makefile.unix \ |
Gregory Maxwell | 1b58bc7 | 2012-08-19 16:45:20 -0400 | [diff] [blame] | 90 | tests/run_vectors.sh \ |
Gregory Maxwell | e852c34 | 2012-08-09 07:29:58 -0400 | [diff] [blame] | 91 | opus.sln \ |
| 92 | celt/celt.vcxproj \ |
| 93 | celt/celt.vcxproj.filters \ |
| 94 | src/opus_demo.vcxproj \ |
| 95 | src/opus.vcxproj \ |
| 96 | src/opus.vcxproj.filters \ |
| 97 | src/opus_demo.vcxproj.filters \ |
| 98 | tests/test_opus_decode.vcxproj.filters \ |
| 99 | tests/test_opus_decode.vcxproj \ |
| 100 | tests/test_opus_encode.vcxproj.filters \ |
| 101 | tests/test_opus_encode.vcxproj \ |
| 102 | tests/test_opus_api.vcxproj.filters \ |
| 103 | tests/test_opus_api.vcxproj \ |
| 104 | silk/float/silk_float.vcxproj.filters \ |
| 105 | silk/float/silk_float.vcxproj \ |
| 106 | silk/fixed/silk_fixed.vcxproj.filters \ |
| 107 | silk/fixed/silk_fixed.vcxproj \ |
| 108 | silk/silk_common.vcxproj \ |
| 109 | silk/silk_common.vcxproj.filters \ |
| 110 | win32/genversion.bat \ |
| 111 | win32/config.h |
Ralph Giles | 9f71309 | 2011-08-28 22:32:13 +1200 | [diff] [blame] | 112 | |
| 113 | pkgconfigdir = $(libdir)/pkgconfig |
| 114 | pkgconfig_DATA = opus.pc |
Ron | b6512b4 | 2012-05-21 23:16:39 +0930 | [diff] [blame] | 115 | |
Gregory Maxwell | 6e2dd16 | 2012-08-30 12:26:34 -0400 | [diff] [blame] | 116 | m4datadir = $(datadir)/aclocal |
| 117 | m4data_DATA = opus.m4 |
Ron | b6512b4 | 2012-05-21 23:16:39 +0930 | [diff] [blame] | 118 | |
| 119 | # Targets to build and install just the library without the docs |
| 120 | opus check-opus install-opus: export NO_DOXYGEN = 1 |
| 121 | |
| 122 | opus: all |
| 123 | check-opus: check |
| 124 | install-opus: install |
| 125 | |
| 126 | |
| 127 | # Or just the docs |
| 128 | docs: |
Gregory Maxwell | 5467ce7 | 2012-08-29 10:31:16 -0400 | [diff] [blame] | 129 | cd doc && $(MAKE) $(AM_MAKEFLAGS) |
Ron | b6512b4 | 2012-05-21 23:16:39 +0930 | [diff] [blame] | 130 | |
| 131 | install-docs: |
Gregory Maxwell | 5467ce7 | 2012-08-29 10:31:16 -0400 | [diff] [blame] | 132 | cd doc && $(MAKE) $(AM_MAKEFLAGS) install |
Ron | b6512b4 | 2012-05-21 23:16:39 +0930 | [diff] [blame] | 133 | |
| 134 | |
| 135 | # Or everything (by default) |
| 136 | all-local: |
Gregory Maxwell | 5467ce7 | 2012-08-29 10:31:16 -0400 | [diff] [blame] | 137 | @[ -n "$(NO_DOXYGEN)" ] || cd doc && $(MAKE) $(AM_MAKEFLAGS) |
Ron | b6512b4 | 2012-05-21 23:16:39 +0930 | [diff] [blame] | 138 | |
| 139 | install-data-local: |
Gregory Maxwell | 5467ce7 | 2012-08-29 10:31:16 -0400 | [diff] [blame] | 140 | @[ -n "$(NO_DOXYGEN)" ] || cd doc && $(MAKE) $(AM_MAKEFLAGS) install |
Ron | b6512b4 | 2012-05-21 23:16:39 +0930 | [diff] [blame] | 141 | |
| 142 | clean-local: |
Gregory Maxwell | 5467ce7 | 2012-08-29 10:31:16 -0400 | [diff] [blame] | 143 | -cd doc && $(MAKE) $(AM_MAKEFLAGS) clean |
Ron | b6512b4 | 2012-05-21 23:16:39 +0930 | [diff] [blame] | 144 | |
| 145 | uninstall-local: |
Gregory Maxwell | 5467ce7 | 2012-08-29 10:31:16 -0400 | [diff] [blame] | 146 | cd doc && $(MAKE) $(AM_MAKEFLAGS) uninstall |
Ron | b6512b4 | 2012-05-21 23:16:39 +0930 | [diff] [blame] | 147 | |
| 148 | |
| 149 | .PHONY: opus check-opus install-opus docs install-docs |