source: trunk/libtransmission/Makefile.am @ 7154

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

(libT) yet another stab at getting bandwidth management under control. this version may suck less than previous attempts. It also breaks the mac build until someone adds iobuf.[ch] to xcode...

File size: 3.9 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    iobuf.c \
28    json.c \
29    JSON_parser.c \
30    list.c \
31    makemeta.c \
32    metainfo.c \
33    natpmp.c \
34    net.c \
35    peer-io.c \
36    peer-mgr.c \
37    peer-msgs.c \
38    platform.c \
39    port-forwarding.c \
40    ptrarray.c \
41    publish.c \
42    ratecontrol.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    trevent.c \
53    upnp.c \
54    utils.c \
55    verify.c \
56    web.c \
57    webseed.c \
58    wildmat.c
59
60noinst_HEADERS = \
61    bandwidth.c \
62    bencode.h \
63    blocklist.h \
64    clients.h \
65    ConvertUTF.h \
66    crypto.h \
67    completion.h \
68    fastresume.h \
69    fdlimit.h \
70    ggets.h \
71    handshake.h \
72    inout.h \
73    iobuf.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-mgr-private.h \
85    peer-msgs.h \
86    platform.h \
87    port-forwarding.h \
88    ptrarray.h \
89    publish.h \
90    ratecontrol.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    trevent.h \
101    upnp.h \
102    utils.h \
103    verify.h \
104    web.h \
105    webseed.h
106
107TESTS = \
108    blocklist-test \
109    bencode-test \
110    clients-test \
111    json-test \
112    rpc-test \
113    test-fastset \
114    test-peer-id \
115    utils-test
116
117noinst_PROGRAMS = $(TESTS)
118
119apps_ldflags = \
120    $(ZLIB_LDFLAGS)
121
122apps_ldadd = \
123    ./libtransmission.a  \
124    $(top_builddir)/third-party/miniupnp/libminiupnp.a \
125    $(top_builddir)/third-party/libnatpmp/libnatpmp.a \
126    $(top_builddir)/third-party/libevent/libevent.la \
127    $(INTLLIBS) \
128    $(LIBCURL_LIBS) \
129    $(OPENSSL_LIBS) \
130    $(PTHREAD_LIBS) \
131    $(ZLIB_LIBS) \
132    -lm
133
134bencode_test_SOURCES = bencode-test.c
135bencode_test_LDADD = ${apps_ldadd}
136bencode_test_LDFLAGS = ${apps_ldflags}
137
138blocklist_test_SOURCES = blocklist-test.c
139blocklist_test_LDADD = ${apps_ldadd}
140blocklist_test_LDFLAGS = ${apps_ldflags}
141
142clients_test_SOURCES = clients-test.c
143clients_test_LDADD = ${apps_ldadd}
144clients_test_LDFLAGS = ${apps_ldflags}
145
146json_test_SOURCES = json-test.c
147json_test_LDADD = ${apps_ldadd}
148json_test_LDFLAGS = ${apps_ldflags}
149
150rpc_test_SOURCES = rpc-test.c
151rpc_test_LDADD = ${apps_ldadd}
152rpc_test_LDFLAGS = ${apps_ldflags}
153
154test_fastset_SOURCES = test-fastset.c
155test_fastset_LDADD = ${apps_ldadd}
156test_fastset_LDFLAGS = ${apps_ldflags}
157
158test_peer_id_SOURCES = test-peer-id.c
159test_peer_id_LDADD = ${apps_ldadd}
160test_peer_id_LDFLAGS = ${apps_ldflags}
161
162utils_test_SOURCES = utils-test.c
163utils_test_LDADD = ${apps_ldadd}
164utils_test_LDFLAGS = ${apps_ldflags}
165
166
167
168clean-local:
169        if test -d .svn; then rm version.h; fi;
170
171EXTRA_libtransmission_a_SOURCES = \
172    version.h
173
174BUILT_SOURCES = \
175    version.h
176
177version.h:
178        echo '#define PEERID_PREFIX         "'@PEERID_PREFIX@'"' > version.h
179        echo '#define USERAGENT_PREFIX      "'@USERAGENT_PREFIX@'"' >> version.h
180        echo '#define SVN_REVISION          "'`svn info | grep "Revision" | awk -F': ' '{print $$2}'`'"' >> version.h
181        echo '#define SVN_REVISION_NUM      '`svn info | grep "Revision" | awk -F': ' '{print $$2}'`'' >> version.h
182        echo '#define SHORT_VERSION_STRING  "'@USERAGENT_PREFIX@'"' >> version.h
183        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.