monotone

monotone Mtn Source Tree

Root/Makefile.am

1AUTOMAKE_OPTIONS=subdir-objects 1.7.1
2ACLOCAL_AMFLAGS = -I m4
3
4MOST_SOURCES =\
5 app_state.cc commands.cc diff_patch.cc lua.cc\
6 nntp_tasks.cc patch_set.cc transforms.cc update.cc work.cc\
7 cert.cc database.cc file_io.cc keys.cc manifest.cc\
8 proto_machine.cc packet.cc sanity.cc vocab.cc\
9 rcs_file.cc rcs_import.cc xdelta.cc network.cc\
10 http_tasks.cc ui.cc schema_migration.cc smtp_tasks.cc\
11 constants.cc url.cc netsync.cc netcmd.cc merkle_tree.cc \
12\
13 app_state.hh commands.hh file_io.hh manifest.hh packet.hh\
14 sanity.hh update.hh work.hh cert.hh database.hh keys.hh\
15 proto_machine.hh packet_types.hh transforms.hh vocab.hh\
16 cleanup.hh diff_patch.hh lua.hh nntp_tasks.hh patch_set.hh\
17 unit_tests.hh vocab_terms.hh interner.hh cycle_detector.hh\
18 randomfile.hh rcs_file.hh rcs_import.hh xdelta.hh adler32.hh\
19 lcs.hh network.hh http_tasks.hh constants.hh ui.hh\
20 schema_migration.hh smtp_tasks.hh quick_alloc.hh mac.hh url.hh \
21 netsync.hh netcmd.hh netio.hh merkle_tree.hh numeric_vocab.hh
22
23NETXX_SOURCES = \
24Netxx/Accept.cxx Netxx/Accept.h Netxx/Address.cxx Netxx/Address.h \
25Netxx/common.h Netxx/compat.h Netxx/Datagram.cxx Netxx/Datagram.h \
26Netxx/DatagramServer.cxx Netxx/DatagramServer.h Netxx/inet6.cxx \
27Netxx/inet6.h Netxx/Netbuf.h Netxx/OSError.cxx Netxx/OSError.h \
28Netxx/Peer.cxx Netxx/Peer.h Netxx/Probe.cxx Netxx/Probe.h \
29Netxx/Probe_impl.h Netxx/ProbeInfo.h Netxx/Probe_select.cxx \
30Netxx/RecvFrom.cxx Netxx/RecvFrom.h Netxx/Resolve_gethostbyname.cxx \
31Netxx/Resolve_getservbyname.cxx Netxx/Resolve.h Netxx/ServerBase.cxx \
32Netxx/ServerBase.h Netxx/SockAddr.cxx Netxx/SockAddr.h Netxx/Socket.cxx \
33Netxx/Socket.h Netxx/SockOpt.cxx Netxx/SockOpt.h Netxx/StreamBase.cxx \
34Netxx/StreamBase.h Netxx/Stream.cxx Netxx/Stream.h Netxx/StreamServer.cxx \
35Netxx/StreamServer.h Netxx/Timeout.h Netxx/Types.h
36
37CRYPTOPP_SOURCES = \
38 cryptopp/algebra.cpp cryptopp/algparam.cpp cryptopp/arc4.cpp \
39 cryptopp/asn.cpp cryptopp/base64.cpp cryptopp/basecode.cpp \
40 cryptopp/crc.cpp cryptopp/cryptlib.cpp cryptopp/des.cpp cryptopp/dessp.cpp \
41 cryptopp/eprecomp.cpp cryptopp/files.cpp cryptopp/filters.cpp \
42 cryptopp/fips140.cpp cryptopp/gzip.cpp cryptopp/hex.cpp \
43 cryptopp/integer.cpp cryptopp/iterhash.cpp cryptopp/misc.cpp \
44 cryptopp/modes.cpp cryptopp/mqueue.cpp cryptopp/nbtheory.cpp \
45 cryptopp/oaep.cpp cryptopp/osrng.cpp cryptopp/pch.cpp cryptopp/pkcspad.cpp \
46 cryptopp/pssr.cpp cryptopp/pubkey.cpp cryptopp/queue.cpp \
47 cryptopp/randpool.cpp cryptopp/rng.cpp cryptopp/rsa.cpp cryptopp/sha.cpp \
48 cryptopp/strciphr.cpp cryptopp/trdlocal.cpp cryptopp/zdeflate.cpp \
49 cryptopp/zinflate.cpp \
50\
51 cryptopp/algebra.h cryptopp/algparam.h cryptopp/arc4.h cryptopp/argnames.h \
52 cryptopp/asn.h cryptopp/base64.h cryptopp/basecode.h cryptopp/config.h \
53 cryptopp/crc.h cryptopp/cryptlib.h cryptopp/des.h cryptopp/eprecomp.h \
54 cryptopp/files.h cryptopp/filters.h cryptopp/fips140.h cryptopp/fltrimpl.h \
55 cryptopp/gzip.h cryptopp/hex.h cryptopp/integer.h cryptopp/iterhash.h \
56 cryptopp/mdc.h cryptopp/misc.h cryptopp/modarith.h cryptopp/modes.h \
57 cryptopp/mqueue.h cryptopp/nbtheory.h cryptopp/oaep.h cryptopp/oids.h \
58 cryptopp/osrng.h cryptopp/pch.h cryptopp/pkcspad.h cryptopp/pssr.h \
59 cryptopp/pubkey.h cryptopp/queue.h cryptopp/randpool.h cryptopp/rng.h \
60 cryptopp/rsa.h cryptopp/secblock.h cryptopp/seckey.h cryptopp/sha.h \
61 cryptopp/simple.h cryptopp/smartptr.h cryptopp/strciphr.h \
62 cryptopp/trdlocal.h cryptopp/words.h cryptopp/zdeflate.h \
63 cryptopp/zinflate.h cryptopp/hmac.h
64
65BOOST_SANDBOX_SOURCES = \
66boost/socket/src/impl/address_storage.cpp \
67boost/socket/src/impl/impl.cpp \
68boost/socket/src/impl/socket_init.cpp \
69boost/socket/src/ip4/address.cpp \
70boost/socket/src/ip4/protocol.cpp \
71boost/socket/src/address_info.cpp \
72boost/socket/src/any_address.cpp \
73boost/socket/src/default_socket_impl.cpp \
74boost/socket/src/interface.cpp \
75boost/socket/src/socket_option.cpp \
76\
77 boost/socket/concept/address.hpp \
78 boost/socket/concept/error_policy.hpp \
79 boost/socket/concept/protocol.hpp \
80 boost/socket/acceptor_socket.hpp \
81 boost/socket/address_info.hpp \
82 boost/socket/any_address.hpp \
83 boost/socket/any_protocol.hpp \
84 boost/socket/asynch_acceptor.hpp \
85 boost/socket/asynch_data_socket.hpp \
86 boost/socket/asynch_socket_base.hpp \
87 boost/socket/config.hpp \
88 boost/socket/connector_socket.hpp \
89 boost/socket/data_socket.hpp \
90 boost/socket/interface.hpp \
91 boost/socket/ip4.hpp \
92 boost/socket/proactor.hpp \
93 boost/socket/socket_base.hpp \
94 boost/socket/socket_errors.hpp \
95 boost/socket/socket_exception.hpp \
96 boost/socket/socket_option.hpp \
97 boost/socket/socket_set.hpp \
98 boost/socket/socket_streambuf.hpp \
99 boost/socket/socketstream.hpp \
100 boost/socket/time_value.hpp \
101 boost/socket/impl/address_storage.hpp \
102 boost/socket/impl/default_asynch_socket_impl.hpp \
103 boost/socket/impl/default_error_policy.hpp \
104 boost/socket/impl/default_socket_impl.hpp \
105 boost/socket/impl/default_socket_proactor.hpp \
106 boost/socket/impl/socket_init.hpp \
107 boost/socket/ip4/address.hpp \
108 boost/socket/ip4/protocol.hpp \
109 boost/socket/src/impl/win32/overlapped.hpp \
110 boost/io/streambuf_wrapping.hpp \
111 \
112 boost/circular_buffer_adaptor.hpp \
113boost/circular_buffer_base.hpp \
114boost/circular_buffer_fwd.hpp \
115boost/circular_buffer.hpp
116
117# warning: we're *not* currently building on win32. we'll figure out
118# how to do that someday, I suspect, but not today.
119#
120# BOOST_SANDBOX_WIN32_SOURCES = \
121# boost/socket/src/impl/win32/default_asynch_socket_impl.cpp \
122# boost/socket/src/impl/win32/default_socket_proactor.cpp
123
124
125SQLITE_SOURCES = \
126 sqlite/attach.c sqlite/auth.c sqlite/btree.c sqlite/btree_rb.c \
127 sqlite/build.c sqlite/copy.c sqlite/delete.c sqlite/expr.c sqlite/func.c \
128 sqlite/hash.c sqlite/insert.c sqlite/main.c sqlite/opcodes.c sqlite/os.c \
129 sqlite/pager.c sqlite/parse.c sqlite/pragma.c sqlite/printf.c \
130 sqlite/random.c sqlite/select.c sqlite/table.c sqlite/tokenize.c \
131 sqlite/trigger.c sqlite/update.c sqlite/util.c sqlite/vacuum.c \
132 sqlite/vdbe.c sqlite/where.c \
133\
134 sqlite/btree.h sqlite/config.h sqlite/hash.h sqlite/opcodes.h sqlite/os.h \
135 sqlite/parse.h sqlite/sqlite.h sqlite/sqliteInt.h sqlite/vdbe.h sqlite/pager.h
136
137LUA_SOURCES = \
138lua/lapi.c lua/lapi.h lua/lauxlib.c lua/lauxlib.h lua/lbaselib.c \
139lua/lcode.c lua/lcode.h lua/ldblib.c lua/ldebug.c lua/ldebug.h lua/ldo.c \
140lua/ldo.h lua/ldump.c lua/lfunc.c lua/lfunc.h lua/lgc.c lua/lgc.h \
141lua/liolib.c lua/llex.c lua/llex.h lua/llimits.h lua/lmathlib.c lua/lmem.c \
142lua/lmem.h lua/loadlib.c lua/lobject.c lua/lobject.h lua/lopcodes.c \
143lua/lopcodes.h lua/lparser.c lua/lparser.h lua/lstate.c lua/lstate.h \
144lua/lstring.c lua/lstring.h lua/lstrlib.c lua/ltable.c lua/ltable.h \
145lua/ltablib.c lua/ltests.c lua/ltm.c lua/ltm.h lua/lua.h lua/lualib.h \
146lua/lundump.c lua/lundump.h lua/lvm.c lua/lvm.h lua/lzio.c lua/lzio.h
147
148ADNS_SOURCES = \
149adns/adns.h adns/check.c adns/config.h adns/dlist.h adns/event.c \
150adns/general.c adns/internal.h adns/parse.c adns/poll.c adns/query.c \
151adns/reply.c adns/setup.c adns/transmit.c adns/tvarith.h adns/types.c
152
153IDNA_SOURCES = \
154idna/gunibreak.h idna/gunidecomp.h idna/idna.h idna/nfkc.c\
155idna/punycode.c idna/rfc3454.c idna/stringprep.h idna/version.c \
156idna/gunicomp.h idna/idna.c idna/idn-int.h idna/profiles.c\
157idna/punycode.h idna/stringprep.c idna/toutf8.c
158
159bin_PROGRAMS = monotone depot.cgi
160check_PROGRAMS = unit_tests
161noinst_PROGRAMS = txt2c
162
163monotone_SOURCES = $(MOST_SOURCES) monotone.cc
164unit_tests_SOURCES = $(MOST_SOURCES) unit_tests.cc
165depot_cgi_SOURCES = constants.cc schema_migration.cc depot.cc
166txt2c_SOURCES = txt2c.cc
167
168noinst_LIBRARIES = lib3rdparty.a
169lib3rdparty_a_SOURCES = $(CRYPTOPP_SOURCES) \
170 $(SQLITE_SOURCES) \
171 $(BOOST_SANDBOX_SOURCES) \
172 $(LUA_SOURCES) \
173$(ADNS_SOURCES) \
174$(IDNA_SOURCES) \
175$(NETXX_SOURCES)
176
177if STATIC_BOOST
178BOOSTLIBS=@BOOST_LIBDIR@/libboost_filesystem.a @BOOST_LIBDIR@/libboost_date_time.a @BOOST_LIBDIR@/libboost_regex.a
179monotone_LDADD = lib3rdparty.a $(BOOSTLIBS) @BOOST_LIBDIR@/libboost_prg_exec_monitor.a
180unit_tests_LDADD = lib3rdparty.a $(BOOSTLIBS) @BOOST_LIBDIR@/libboost_unit_test_framework.a
181depot_cgi_LDADD = lib3rdparty.a $(BOOSTLIBS)
182else
183monotone_LDADD = lib3rdparty.a -lboost_prg_exec_monitor
184unit_tests_LDADD = lib3rdparty.a -lboost_unit_test_framework
185depot_cgi_LDADD = lib3rdparty.a
186endif
187
188monotone_LDFLAGS =
189monotone_CPPFLAGS =
190
191unit_tests_LDFLAGS =
192unit_tests_CPPFLAGS = -DBUILD_UNIT_TESTS
193
194depot_cgi_LDFLAGS =
195
196AM_CFLAGS = -DTEMP_STORE=1 -DNDEBUG -DBOOST_DISABLE_THREADS -Wall
197AM_LDFLAGS =
198AM_CXXFLAGS = -DNDEBUG -DBOOST_DISABLE_THREADS -Wall
199
200SUBDIRS = po
201datadir = @datadir@
202localedir = $(datadir)/locale
203DEFS = -DLOCALEDIR=\"$(localedir)\" @DEFS@
204
205man1_MANS = monotone.1
206info_TEXINFOS = monotone.texi
207EXTRA_DIST = $(man1_MANS) \
208 texinfo.css \
209 schema.sql depot_schema.sql \
210 std_hooks.lua test_hooks.lua \
211 testsuite.at \
212 $(wildcard tests/t_*.at) \
213 testsuite \
214 tests/atconfig.in \
215 tests/atlocal.in \
216 package.m4 \
217 $(wildcard m4/*.m4)
218
219# testsuite stuff (could this possibly be more ugly?)
220
221TESTS = unit_tests $(srcdir)/testsuite
222
223MOSTLYCLEANFILES = \
224testsuite.dir/at-check-line \
225testsuite.dir/at-stdout \
226testsuite.dir/at-stder1 \
227testsuite.dir/at-stderr \
228testsuite.dir/at-times \
229testsuite.log
230
231DISTCLEANFILES = tests/atconfig \
232 idna/idn-int.h
233
234# note: these targets are all in srcdir; they are *not* built during
235# the VPATH build part of distcheck (with non-writable source
236# directory) but only during the initial dist stage.
237
238$(srcdir)/package.m4: $(top_srcdir)/configure.ac
239{ \
240 echo '# Signature of the current package.'; \
241 echo 'm4_define([AT_PACKAGE_NAME], [@PACKAGE_NAME@])'; \
242 echo 'm4_define([AT_PACKAGE_TARNAME], [@PACKAGE_TARNAME@])'; \
243 echo 'm4_define([AT_PACKAGE_VERSION], [@PACKAGE_VERSION@])'; \
244 echo 'm4_define([AT_PACKAGE_STRING], [@PACKAGE_STRING@])'; \
245 echo 'm4_define([AT_PACKAGE_BUGREPORT], [@PACKAGE_BUGREPORT@])'; \
246} >$(srcdir)/package.m4
247
248$(srcdir)/testsuite: $(srcdir)/testsuite.at $(wildcard $(srcdir)/tests/t_*.at) \
249 $(srcdir)/package.m4
250autom4te --language=Autotest -I $(srcdir) $< -o $@.tmp
251mv $@.tmp $@
252
253# we generate some headers to copy data into the executable
254
255BUILT_SOURCES = std_hooks.h test_hooks.h schema.h depot_schema.h
256CLEANFILES = $(BUILT_SOURCES)
257
258txt2c: txt2c.cc Makefile
259$(CXX) -Wall -o $@ $<
260chmod 0755 $@
261
262%.h: %.sql txt2c Makefile
263./txt2c $< $(*F) >$@
264
265%.h: %.lua txt2c Makefile
266./txt2c $< $(*F) >$@
267
268# automake doesn't build html docs
269
270html: monotone.texi texinfo.css
271mkdir -p html
272makeinfo --number-sections --html --output html $<
273perl -i -pe 's@<head>@<head>\n<link type="text/css" rel="stylesheet" href="texinfo.css" />@' html/*.html
274cp texinfo.css html

Archive Download this file

Branches

Tags

Quick Links:     www.monotone.ca    -     Downloads    -     Documentation    -     Wiki    -     Code Forge    -     Build Status