OLD | NEW |
| (Empty) |
1 ## Process this file with automake to produce Makefile.in | |
2 | |
3 # Make sure that when we re-make ./configure, we get the macros we need | |
4 # ACLOCAL_AMFLAGS = -I m4 | |
5 | |
6 # This is so we can #include <google/foo> | |
7 AM_CPPFLAGS = -I$(top_srcdir)/src | |
8 | |
9 # For a non-optimized (debug) build, change "-DNDEBUG" to "-DDEBUG". | |
10 AM_CXXFLAGS = -DNDEBUG | |
11 | |
12 # Enable verbose gcc warnings. We use the older option name "-W" to be | |
13 # compatible with gcc v3.3 and earlier. That option should be changed to | |
14 # "-Wextra" when we can be sure that early gcc versions will not be used. | |
15 if GCC | |
16 AM_CXXFLAGS += -Wall -Wwrite-strings -Woverloaded-virtual -W | |
17 endif | |
18 | |
19 AM_LDFLAGS = -no-undefined | |
20 | |
21 googleincludedir = $(includedir)/google | |
22 ## The .h files you want to install (that is, .h files that people | |
23 ## who install this package can include in their own applications.) | |
24 googleinclude_HEADERS = src/google/vcdecoder.h src/google/vcencoder.h \ | |
25 src/google/output_string.h | |
26 | |
27 docdir = $(prefix)/share/doc/$(PACKAGE)-$(VERSION) | |
28 ## This is for HTML and other documentation you want to install. | |
29 ## Add your documentation files (in doc/) in addition to these | |
30 ## top-level boilerplate files. Also add a TODO file if you have one. | |
31 dist_doc_DATA = AUTHORS COPYING ChangeLog INSTALL NEWS README THANKS | |
32 | |
33 ## The libraries (.so's) you want to install | |
34 lib_LTLIBRARIES = | |
35 | |
36 ## Internal libraries that will not be installed | |
37 noinst_LTLIBRARIES = | |
38 | |
39 ## Binaries to be built; these are added in the RULES section | |
40 bin_PROGRAMS = | |
41 | |
42 ## unittests you want to run when people type 'make check'. | |
43 ## Individual tests are added to TESTS in the RULES section. | |
44 ## TESTS is for binary unittests, check_SCRIPTS for script-based unittests. | |
45 ## TESTS_ENVIRONMENT sets environment variables for when you run unittest, | |
46 ## but it only seems to take effect for *binary* unittests (argh!) | |
47 TESTS = | |
48 TESTS_ENVIRONMENT = SRCDIR="$(top_srcdir)" | |
49 check_SCRIPTS = | |
50 # Every time you add a unittest to check_SCRIPTS, add it here too | |
51 noinst_SCRIPTS = | |
52 | |
53 ## vvvv RULES TO MAKE THE LIBRARIES, BINARIES, AND UNITTESTS | |
54 | |
55 # google-gflags: Used for command-line client | |
56 # Please refer to http://code.google.com/p/google-gflags/ for details | |
57 noinst_LTLIBRARIES += libgflags.la | |
58 libgflags_la_SOURCES = src/google/gflags.h \ | |
59 src/gflags.cc \ | |
60 src/gflags_reporting.cc | |
61 | |
62 # gtest (Google Test): Used for unit tests only | |
63 # Please refer to http://code.google.com/p/googletest/ for details | |
64 noinst_LTLIBRARIES += libgtest.la | |
65 libgtest_la_SOURCES = src/gtest/gtest.h \ | |
66 src/gtest/gtest-death-test.h \ | |
67 src/gtest/gtest-message.h \ | |
68 src/gtest/gtest_pred_impl.h \ | |
69 src/gtest/gtest-spi.h \ | |
70 src/gtest/gtest_prod.h \ | |
71 src/gtest/internal/gtest-death-test-internal.h \ | |
72 src/gtest/internal/gtest-filepath.h \ | |
73 src/gtest/internal/gtest-internal.h \ | |
74 src/gtest/internal/gtest-port.h \ | |
75 src/gtest/internal/gtest-string.h \ | |
76 src/gtest/src/gtest-internal-inl.h \ | |
77 src/gtest/gtest.cc \ | |
78 src/gtest/gtest-death-test.cc \ | |
79 src/gtest/gtest-filepath.cc \ | |
80 src/gtest/gtest-port.cc \ | |
81 src/testing.h | |
82 | |
83 noinst_LTLIBRARIES += libgtest_main.la | |
84 libgtest_main_la_SOURCES = src/gtest/gtest_main.cc | |
85 libgtest_main_la_LIBADD = libgtest.la | |
86 | |
87 # libvcdcom: The open-vcdiff *common* library | |
88 lib_LTLIBRARIES += libvcdcom.la | |
89 libvcdcom_la_SOURCES = src/google/output_string.h \ | |
90 src/addrcache.h \ | |
91 src/checksum.h \ | |
92 src/codetable.h \ | |
93 src/logging.h \ | |
94 src/varint_bigendian.h \ | |
95 src/vcdiff_defs.h \ | |
96 src/zlib.h \ | |
97 src/zconf.h \ | |
98 src/adler32.c \ | |
99 src/addrcache.cc \ | |
100 src/codetable.cc \ | |
101 src/logging.cc \ | |
102 src/varint_bigendian.cc | |
103 | |
104 # libvcddec: The open-vcdiff *decoder* library | |
105 lib_LTLIBRARIES += libvcddec.la | |
106 libvcddec_la_SOURCES = src/google/vcdecoder.h \ | |
107 src/decodetable.h \ | |
108 src/headerparser.h \ | |
109 src/decodetable.cc \ | |
110 src/headerparser.cc \ | |
111 src/vcdecoder.cc | |
112 libvcddec_la_LIBADD = libvcdcom.la | |
113 | |
114 # libvcdenc: The open-vcdiff *encoder* library | |
115 lib_LTLIBRARIES += libvcdenc.la | |
116 libvcdenc_la_SOURCES = src/google/vcencoder.h \ | |
117 src/blockhash.h \ | |
118 src/compile_assert.h \ | |
119 src/encodetable.h \ | |
120 src/rolling_hash.h \ | |
121 src/vcdiffengine.h \ | |
122 src/blockhash.cc \ | |
123 src/encodetable.cc \ | |
124 src/vcdiffengine.cc \ | |
125 src/vcencoder.cc | |
126 libvcdenc_la_LIBADD = libvcdcom.la | |
127 | |
128 bin_PROGRAMS += vcdiff | |
129 vcdiff_SOURCES = src/vcdiff_main.cc | |
130 vcdiff_LDADD = libvcddec.la libvcdenc.la libgflags.la | |
131 | |
132 TESTS += addrcache_test | |
133 addrcache_test_SOURCES = src/addrcache_test.cc | |
134 addrcache_test_LDADD = libvcdcom.la libgtest_main.la | |
135 | |
136 TESTS += blockhash_test | |
137 blockhash_test_SOURCES = src/blockhash_test.cc | |
138 blockhash_test_LDADD = libvcdenc.la libgtest_main.la | |
139 | |
140 TESTS += codetable_test | |
141 codetable_test_SOURCES = src/codetable_test.cc | |
142 codetable_test_LDADD = libvcdcom.la libgtest_main.la | |
143 | |
144 TESTS += decodetable_test | |
145 decodetable_test_SOURCES = src/decodetable_test.cc | |
146 decodetable_test_LDADD = libvcddec.la libgtest_main.la | |
147 | |
148 TESTS += encodetable_test | |
149 encodetable_test_SOURCES = src/encodetable_test.cc | |
150 encodetable_test_LDADD = libvcdenc.la libgtest_main.la | |
151 | |
152 TESTS += headerparser_test | |
153 headerparser_test_SOURCES = src/headerparser_test.cc | |
154 headerparser_test_LDADD = libvcddec.la libgtest_main.la | |
155 | |
156 TESTS += output_string_test | |
157 output_string_test_SOURCES = src/output_string_test.cc | |
158 output_string_test_LDADD = libgtest_main.la | |
159 | |
160 TESTS += rolling_hash_test | |
161 rolling_hash_test_SOURCES = src/rolling_hash_test.cc | |
162 rolling_hash_test_LDADD = libvcdcom.la libgtest_main.la | |
163 | |
164 TESTS += varint_bigendian_test | |
165 varint_bigendian_test_SOURCES = src/varint_bigendian_test.cc | |
166 varint_bigendian_test_LDADD = libvcdcom.la libgtest_main.la | |
167 | |
168 TESTS += vcdecoder_test | |
169 vcdecoder_test_SOURCES = src/vcdecoder_test.cc | |
170 vcdecoder_test_LDADD = libvcddec.la libgtest_main.la | |
171 | |
172 TESTS += vcdiffengine_test | |
173 vcdiffengine_test_SOURCES = src/vcdiffengine_test.cc | |
174 vcdiffengine_test_LDADD = libvcdenc.la libgtest_main.la | |
175 | |
176 TESTS += vcencoder_test | |
177 vcencoder_test_SOURCES = src/vcencoder_test.cc | |
178 vcencoder_test_LDADD = libvcddec.la libvcdenc.la libgtest_main.la | |
179 | |
180 ## ^^^^ END OF RULES TO MAKE THE LIBRARIES, BINARIES, AND UNITTESTS | |
181 | |
182 ## This should always include $(TESTS), but may also include other | |
183 ## binaries that you compile but don't want automatically installed. | |
184 noinst_PROGRAMS = $(TESTS) | |
185 | |
186 rpm: dist-gzip packages/rpm.sh packages/rpm/rpm.spec | |
187 @cd packages && ./rpm.sh ${PACKAGE} ${VERSION} | |
188 | |
189 deb: dist-gzip packages/deb.sh packages/deb/* | |
190 @cd packages && ./deb.sh ${PACKAGE} ${VERSION} | |
191 | |
192 libtool: $(LIBTOOL_DEPS) | |
193 $(SHELL) ./config.status --recheck | |
194 | |
195 EXTRA_DIST = packages/rpm.sh packages/rpm/rpm.spec packages/deb.sh \ | |
196 packages/deb autogen.sh $(SCRIPTS) libtool | |
OLD | NEW |