source: trunk/libtransmission/Makefile.am @ 12127

Last change on this file since 12127 was 12127, checked in by jordan, 11 years ago

(trunk libT) #117 "UDP tracker protocol support (BEP #15)" -- refactor announcer.c so that alternate tracker protocols can be supported.

This commit adds a set of package-visible structs and functions to allow delegating announces and scrapes to different protocol handlers. (Examples: struct tr_announce_request, struct tr_announce_response, struct tr_scrape_request, struct tr_scrape_response.) HTTP is the only protocol handler currently implemented; however, this provides a clean API for other protocol handlers, and having this in trunk will help shake out any bugs in this refactoring.

In addition, logging via the TR_DEBUG_FD environment variable is vastly improved in the announcer module now.

File size: 3.7 KB
Line 
1AM_CPPFLAGS = \
2    -I. \
3    -I$(top_srcdir) \
4    -I$(top_srcdir)/third-party/ \
5    -D__TRANSMISSION__ \
6    -DPACKAGE_DATA_DIR=\""$(datadir)"\"
7
8AM_CFLAGS = \
9    @DHT_CFLAGS@ \
10    @LIBUTP_CFLAGS@ \
11    @LIBEVENT_CFLAGS@ \
12    @LIBCURL_CFLAGS@ \
13    @OPENSSL_CFLAGS@ \
14    @PTHREAD_CFLAGS@ \
15    @ZLIB_CFLAGS@
16
17noinst_LIBRARIES = libtransmission.a
18
19libtransmission_a_SOURCES = \
20    announcer.c \
21    announcer-http.c \
22    bandwidth.c \
23    bencode.c \
24    bitfield.c \
25    bitset.c \
26    blocklist.c \
27    cache.c \
28    clients.c \
29    completion.c \
30    ConvertUTF.c \
31    crypto.c \
32    fdlimit.c \
33    handshake.c \
34    history.c \
35    inout.c \
36    json.c \
37    JSON_parser.c \
38    list.c \
39    magnet.c \
40    makemeta.c \
41    metainfo.c \
42    natpmp.c \
43    net.c \
44    peer-io.c \
45    peer-mgr.c \
46    peer-msgs.c \
47    platform.c \
48    port-forwarding.c \
49    ptrarray.c \
50    resume.c \
51    rpcimpl.c \
52    rpc-server.c \
53    session.c \
54    stats.c \
55    torrent.c \
56    torrent-ctor.c \
57    torrent-magnet.c \
58    tr-dht.c \
59    tr-lpd.c \
60    tr-udp.c \
61    tr-utp.c \
62    tr-getopt.c \
63    trevent.c \
64    upnp.c \
65    utils.c \
66    verify.c \
67    web.c \
68    webseed.c \
69    wildmat.c
70
71noinst_HEADERS = \
72    announcer.h \
73    announcer-common.h \
74    bandwidth.h \
75    bencode.h \
76    bitfield.h \
77    bitset.h \
78    blocklist.h \
79    cache.h \
80    clients.h \
81    ConvertUTF.h \
82    crypto.h \
83    completion.h \
84    fdlimit.h \
85    handshake.h \
86    history.h \
87    inout.h \
88    json.h \
89    JSON_parser.h \
90    list.h \
91    magnet.h \
92    makemeta.h \
93    metainfo.h \
94    natpmp.h \
95    net.h \
96    peer-common.h \
97    peer-io.h \
98    peer-mgr.h \
99    peer-msgs.h \
100    platform.h \
101    port-forwarding.h \
102    ptrarray.h \
103    resume.h \
104    rpcimpl.h \
105    rpc-server.h \
106    session.h \
107    stats.h \
108    torrent.h \
109    torrent-magnet.h \
110    tr-getopt.h \
111    transmission.h \
112    tr-dht.h \
113    tr-udp.h \
114    tr-utp.h \
115    tr-lpd.h \
116    trevent.h \
117    upnp.h \
118    utils.h \
119    verify.h \
120    version.h \
121    web.h \
122    webseed.h
123
124TESTS = \
125    blocklist-test \
126    bencode-test \
127    clients-test \
128    history-test \
129    json-test \
130    magnet-test \
131    peer-msgs-test \
132    rpc-test \
133    test-peer-id \
134    utils-test
135
136noinst_PROGRAMS = $(TESTS)
137
138apps_ldflags = \
139    @ZLIB_LDFLAGS@
140
141apps_ldadd = \
142    ./libtransmission.a  \
143    $(top_builddir)/third-party/miniupnp/libminiupnp.a \
144    $(top_builddir)/third-party/libnatpmp/libnatpmp.a \
145    @INTLLIBS@ \
146    @DHT_LIBS@ \
147    @LIBUTP_LIBS@ \
148    @LIBCURL_LIBS@ \
149    @LIBEVENT_LIBS@ \
150    @OPENSSL_LIBS@ \
151    @PTHREAD_LIBS@ \
152    @ZLIB_LIBS@
153
154bencode_test_SOURCES = bencode-test.c
155bencode_test_LDADD = ${apps_ldadd}
156bencode_test_LDFLAGS = ${apps_ldflags}
157
158blocklist_test_SOURCES = blocklist-test.c
159blocklist_test_LDADD = ${apps_ldadd}
160blocklist_test_LDFLAGS = ${apps_ldflags}
161
162clients_test_SOURCES = clients-test.c
163clients_test_LDADD = ${apps_ldadd}
164clients_test_LDFLAGS = ${apps_ldflags}
165
166history_test_SOURCES = history-test.c
167history_test_LDADD = ${apps_ldadd}
168history_test_LDFLAGS = ${apps_ldflags}
169
170json_test_SOURCES = json-test.c
171json_test_LDADD = ${apps_ldadd}
172json_test_LDFLAGS = ${apps_ldflags}
173
174magnet_test_SOURCES = magnet-test.c
175magnet_test_LDADD = ${apps_ldadd}
176magnet_test_LDFLAGS = ${apps_ldflags}
177
178rpc_test_SOURCES = rpc-test.c
179rpc_test_LDADD = ${apps_ldadd}
180rpc_test_LDFLAGS = ${apps_ldflags}
181
182test_peer_id_SOURCES = test-peer-id.c
183test_peer_id_LDADD = ${apps_ldadd}
184test_peer_id_LDFLAGS = ${apps_ldflags}
185
186peer_msgs_test_SOURCES = peer-msgs-test.c
187peer_msgs_test_LDADD = ${apps_ldadd}
188peer_msgs_test_LDFLAGS = ${apps_ldflags}
189
190utils_test_SOURCES = utils-test.c
191utils_test_LDADD = ${apps_ldadd}
192utils_test_LDFLAGS = ${apps_ldflags}
Note: See TracBrowser for help on using the repository browser.