source: branches/1.5x/libtransmission/Makefile.am @ 7855

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

(1.5x libT) backport #1671, #1798

File size: 4.0 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    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.h \
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    json.h \
74    JSON_parser.h \
75    list.h \
76    makemeta.h \
77    metainfo.h \
78    natpmp.h \
79    net.h \
80    peer-common.h \
81    peer-io.h \
82    peer-mgr.h \
83    peer-msgs.h \
84    platform.h \
85    port-forwarding.h \
86    ptrarray.h \
87    publish.h \
88    ratecontrol.h \
89    request-list.h \
90    resume.h \
91    rpcimpl.h \
92    rpc-server.h \
93    session.h \
94    stats.h \
95    torrent.h \
96    tracker.h \
97    tr-getopt.h \
98    transmission.h \
99    trevent.h \
100    upnp.h \
101    utils.h \
102    verify.h \
103    web.h \
104    webseed.h
105
106TESTS = \
107    blocklist-test \
108    bencode-test \
109    clients-test \
110    json-test \
111    peer-msgs-test \
112    request-list-test \
113    rpc-test \
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_peer_id_SOURCES = test-peer-id.c
155test_peer_id_LDADD = ${apps_ldadd}
156test_peer_id_LDFLAGS = ${apps_ldflags}
157
158request_list_test_SOURCES = request-list-test.c
159request_list_test_LDADD = ${apps_ldadd}
160request_list_test_LDFLAGS = ${apps_ldflags}
161
162peer_msgs_test_SOURCES = peer-msgs-test.c
163peer_msgs_test_LDADD = ${apps_ldadd}
164peer_msgs_test_LDFLAGS = ${apps_ldflags}
165
166utils_test_SOURCES = utils-test.c
167utils_test_LDADD = ${apps_ldadd}
168utils_test_LDFLAGS = ${apps_ldflags}
169
170
171
172clean-local:
173        if test -d .svn; then if test -e version.h; then rm version.h; fi; fi;
174
175EXTRA_libtransmission_a_SOURCES = \
176    version.h
177
178BUILT_SOURCES = \
179    version.h
180
181version.h:
182        echo '#define PEERID_PREFIX         "'@PEERID_PREFIX@'"' > version.h
183        echo '#define USERAGENT_PREFIX      "'@USERAGENT_PREFIX@'"' >> version.h
184        echo '#define SVN_REVISION          "'`svn info | grep "Revision" | awk -F': ' '{print $$2}'`'"' >> version.h
185        echo '#define SVN_REVISION_NUM      '`svn info | grep "Revision" | awk -F': ' '{print $$2}'`'' >> version.h
186        echo '#define SHORT_VERSION_STRING  "'@USERAGENT_PREFIX@'"' >> version.h
187        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.