source: trunk/libtransmission/Makefile.am @ 8433

Last change on this file since 8433 was 8433, checked in by charles, 13 years ago

(trunk) #7: DHT support. This is a work in progress... no gui/rpc support yet

File size: 4.1 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    request-list.c \
43    resume.c \
44    rpcimpl.c \
45    rpc-server.c \
46    session.c \
47    stats.c \
48    torrent.c \
49    torrent-ctor.c \
50    tr-getopt.c \
51    tracker.c \
52    tr-dht.c \
53    trevent.c \
54    upnp.c \
55    utils.c \
56    verify.c \
57    web.c \
58    webseed.c \
59    wildmat.c
60
61noinst_HEADERS = \
62    bandwidth.h \
63    bencode.h \
64    blocklist.h \
65    clients.h \
66    ConvertUTF.h \
67    crypto.h \
68    completion.h \
69    fastresume.h \
70    fdlimit.h \
71    ggets.h \
72    handshake.h \
73    inout.h \
74    json.h \
75    JSON_parser.h \
76    list.h \
77    makemeta.h \
78    metainfo.h \
79    natpmp.h \
80    net.h \
81    peer-common.h \
82    peer-io.h \
83    peer-mgr.h \
84    peer-msgs.h \
85    platform.h \
86    port-forwarding.h \
87    ptrarray.h \
88    publish.h \
89    ratecontrol.h \
90    request-list.h \
91    resume.h \
92    rpcimpl.h \
93    rpc-server.h \
94    session.h \
95    stats.h \
96    torrent.h \
97    tracker.h \
98    tr-getopt.h \
99    transmission.h \
100    tr-dht.h \
101    trevent.h \
102    upnp.h \
103    utils.h \
104    verify.h \
105    web.h \
106    webseed.h
107
108TESTS = \
109    blocklist-test \
110    bencode-test \
111    clients-test \
112    json-test \
113    peer-msgs-test \
114    request-list-test \
115    rpc-test \
116    test-peer-id \
117    utils-test
118
119noinst_PROGRAMS = $(TESTS)
120
121apps_ldflags = \
122    $(ZLIB_LDFLAGS)
123
124apps_ldadd = \
125    ./libtransmission.a  \
126    $(top_builddir)/third-party/miniupnp/libminiupnp.a \
127    $(top_builddir)/third-party/libnatpmp/libnatpmp.a \
128    $(top_builddir)/third-party/libevent/libevent.la \
129    $(top_builddir)/third-party/dht/libdht.a \
130    $(INTLLIBS) \
131    $(LIBCURL_LIBS) \
132    $(OPENSSL_LIBS) \
133    $(PTHREAD_LIBS) \
134    $(ZLIB_LIBS) \
135    -lm
136
137bencode_test_SOURCES = bencode-test.c
138bencode_test_LDADD = ${apps_ldadd}
139bencode_test_LDFLAGS = ${apps_ldflags}
140
141blocklist_test_SOURCES = blocklist-test.c
142blocklist_test_LDADD = ${apps_ldadd}
143blocklist_test_LDFLAGS = ${apps_ldflags}
144
145clients_test_SOURCES = clients-test.c
146clients_test_LDADD = ${apps_ldadd}
147clients_test_LDFLAGS = ${apps_ldflags}
148
149json_test_SOURCES = json-test.c
150json_test_LDADD = ${apps_ldadd}
151json_test_LDFLAGS = ${apps_ldflags}
152
153rpc_test_SOURCES = rpc-test.c
154rpc_test_LDADD = ${apps_ldadd}
155rpc_test_LDFLAGS = ${apps_ldflags}
156
157test_peer_id_SOURCES = test-peer-id.c
158test_peer_id_LDADD = ${apps_ldadd}
159test_peer_id_LDFLAGS = ${apps_ldflags}
160
161request_list_test_SOURCES = request-list-test.c
162request_list_test_LDADD = ${apps_ldadd}
163request_list_test_LDFLAGS = ${apps_ldflags}
164
165peer_msgs_test_SOURCES = peer-msgs-test.c
166peer_msgs_test_LDADD = ${apps_ldadd}
167peer_msgs_test_LDFLAGS = ${apps_ldflags}
168
169utils_test_SOURCES = utils-test.c
170utils_test_LDADD = ${apps_ldadd}
171utils_test_LDFLAGS = ${apps_ldflags}
172
173
174
175clean-local:
176        if test -d .svn; then if test -e version.h; then rm version.h; fi; fi;
177
178EXTRA_libtransmission_a_SOURCES = \
179    version.h
180
181BUILT_SOURCES = \
182    version.h
183
184version.h:
185        echo '#define PEERID_PREFIX         "'@PEERID_PREFIX@'"' > version.h
186        echo '#define USERAGENT_PREFIX      "'@USERAGENT_PREFIX@'"' >> version.h
187        echo '#define SVN_REVISION          "'`svn info | grep "Revision" | awk -F': ' '{print $$2}'`'"' >> version.h
188        echo '#define SVN_REVISION_NUM      '`svn info | grep "Revision" | awk -F': ' '{print $$2}'`'' >> version.h
189        echo '#define SHORT_VERSION_STRING  "'@USERAGENT_PREFIX@'"' >> version.h
190        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.