source: trunk/libtransmission/Makefile.am @ 7147

Last change on this file since 7147 was 7147, checked in by charles, 12 years ago

(libT) #1468: another stab at getting the peer transfer speeds both fast and a little more consistent.

File size: 3.8 KB
Line 
1AM_CPPFLAGS = \
2        -I. -I$(top_srcdir) -I$(top_srcdir)/third-party/ \
3        -D__TRANSMISSION__ $(LIBEVENT_CPPFLAGS) \
4        -DPACKAGE_DATA_DIR=\""$(datadir)"\"
5
6AM_CFLAGS = \
7    $(LIBCURL_CFLAGS) \
8    $(OPENSSL_CFLAGS) \
9    $(PTHREAD_CFLAGS) \
10    $(ZLIB_CFLAGS)
11
12noinst_LIBRARIES = libtransmission.a
13
14libtransmission_a_SOURCES = \
15    bandwidth.c \
16    bencode.c \
17    blocklist.c \
18    clients.c \
19    completion.c \
20    ConvertUTF.c \
21    crypto.c \
22    fastresume.c \
23    fdlimit.c \
24    ggets.c \
25    handshake.c \
26    inout.c \
27    json.c \
28    JSON_parser.c \
29    list.c \
30    makemeta.c \
31    metainfo.c \
32    natpmp.c \
33    net.c \
34    peer-io.c \
35    peer-mgr.c \
36    peer-msgs.c \
37    platform.c \
38    port-forwarding.c \
39    ptrarray.c \
40    publish.c \
41    ratecontrol.c \
42    resume.c \
43    rpcimpl.c \
44    rpc-server.c \
45    session.c \
46    stats.c \
47    torrent.c \
48    torrent-ctor.c \
49    tr-getopt.c \
50    tracker.c \
51    trevent.c \
52    upnp.c \
53    utils.c \
54    verify.c \
55    web.c \
56    webseed.c \
57    wildmat.c
58
59noinst_HEADERS = \
60    bandwidth.c \
61    bencode.h \
62    blocklist.h \
63    clients.h \
64    ConvertUTF.h \
65    crypto.h \
66    completion.h \
67    fastresume.h \
68    fdlimit.h \
69    ggets.h \
70    handshake.h \
71    inout.h \
72    json.h \
73    JSON_parser.h \
74    list.h \
75    makemeta.h \
76    metainfo.h \
77    natpmp.h \
78    net.h \
79    peer-common.h \
80    peer-io.h \
81    peer-mgr.h \
82    peer-mgr-private.h \
83    peer-msgs.h \
84    platform.h \
85    port-forwarding.h \
86    ptrarray.h \
87    publish.h \
88    ratecontrol.h \
89    resume.h \
90    rpcimpl.h \
91    rpc-server.h \
92    session.h \
93    stats.h \
94    torrent.h \
95    tracker.h \
96    tr-getopt.h \
97    transmission.h \
98    trevent.h \
99    upnp.h \
100    utils.h \
101    verify.h \
102    web.h \
103    webseed.h
104
105TESTS = \
106    blocklist-test \
107    bencode-test \
108    clients-test \
109    json-test \
110    rpc-test \
111    test-fastset \
112    test-peer-id \
113    utils-test
114
115noinst_PROGRAMS = $(TESTS)
116
117apps_ldflags = \
118    $(ZLIB_LDFLAGS)
119
120apps_ldadd = \
121    ./libtransmission.a  \
122    $(top_builddir)/third-party/miniupnp/libminiupnp.a \
123    $(top_builddir)/third-party/libnatpmp/libnatpmp.a \
124    $(top_builddir)/third-party/libevent/libevent.la \
125    $(INTLLIBS) \
126    $(LIBCURL_LIBS) \
127    $(OPENSSL_LIBS) \
128    $(PTHREAD_LIBS) \
129    $(ZLIB_LIBS) \
130    -lm
131
132bencode_test_SOURCES = bencode-test.c
133bencode_test_LDADD = ${apps_ldadd}
134bencode_test_LDFLAGS = ${apps_ldflags}
135
136blocklist_test_SOURCES = blocklist-test.c
137blocklist_test_LDADD = ${apps_ldadd}
138blocklist_test_LDFLAGS = ${apps_ldflags}
139
140clients_test_SOURCES = clients-test.c
141clients_test_LDADD = ${apps_ldadd}
142clients_test_LDFLAGS = ${apps_ldflags}
143
144json_test_SOURCES = json-test.c
145json_test_LDADD = ${apps_ldadd}
146json_test_LDFLAGS = ${apps_ldflags}
147
148rpc_test_SOURCES = rpc-test.c
149rpc_test_LDADD = ${apps_ldadd}
150rpc_test_LDFLAGS = ${apps_ldflags}
151
152test_fastset_SOURCES = test-fastset.c
153test_fastset_LDADD = ${apps_ldadd}
154test_fastset_LDFLAGS = ${apps_ldflags}
155
156test_peer_id_SOURCES = test-peer-id.c
157test_peer_id_LDADD = ${apps_ldadd}
158test_peer_id_LDFLAGS = ${apps_ldflags}
159
160utils_test_SOURCES = utils-test.c
161utils_test_LDADD = ${apps_ldadd}
162utils_test_LDFLAGS = ${apps_ldflags}
163
164
165
166clean-local:
167        if test -d .svn; then rm version.h; fi;
168
169EXTRA_libtransmission_a_SOURCES = \
170    version.h
171
172BUILT_SOURCES = \
173    version.h
174
175version.h:
176        echo '#define PEERID_PREFIX         "'@PEERID_PREFIX@'"' > version.h
177        echo '#define USERAGENT_PREFIX      "'@USERAGENT_PREFIX@'"' >> version.h
178        echo '#define SVN_REVISION          "'`svn info | grep "Revision" | awk -F': ' '{print $$2}'`'"' >> version.h
179        echo '#define SVN_REVISION_NUM      '`svn info | grep "Revision" | awk -F': ' '{print $$2}'`'' >> version.h
180        echo '#define SHORT_VERSION_STRING  "'@USERAGENT_PREFIX@'"' >> version.h
181        echo '#define LONG_VERSION_STRING   "'@USERAGENT_PREFIX@' ('`svn info | grep "Revision" | awk -F': ' '{print $$2}'`')"' >> version.h
Note: See TracBrowser for help on using the repository browser.