source: trunk/libtransmission/Makefile.am @ 7186

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

(libT) #1532: patch from jhujhiti to remove (unused) fast extensions

File size: 3.7 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.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    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-peer-id \
114    utils-test
115
116noinst_PROGRAMS = $(TESTS)
117
118apps_ldflags = \
119    $(ZLIB_LDFLAGS)
120
121apps_ldadd = \
122    ./libtransmission.a  \
123    $(top_builddir)/third-party/miniupnp/libminiupnp.a \
124    $(top_builddir)/third-party/libnatpmp/libnatpmp.a \
125    $(top_builddir)/third-party/libevent/libevent.la \
126    $(INTLLIBS) \
127    $(LIBCURL_LIBS) \
128    $(OPENSSL_LIBS) \
129    $(PTHREAD_LIBS) \
130    $(ZLIB_LIBS) \
131    -lm
132
133bencode_test_SOURCES = bencode-test.c
134bencode_test_LDADD = ${apps_ldadd}
135bencode_test_LDFLAGS = ${apps_ldflags}
136
137blocklist_test_SOURCES = blocklist-test.c
138blocklist_test_LDADD = ${apps_ldadd}
139blocklist_test_LDFLAGS = ${apps_ldflags}
140
141clients_test_SOURCES = clients-test.c
142clients_test_LDADD = ${apps_ldadd}
143clients_test_LDFLAGS = ${apps_ldflags}
144
145json_test_SOURCES = json-test.c
146json_test_LDADD = ${apps_ldadd}
147json_test_LDFLAGS = ${apps_ldflags}
148
149rpc_test_SOURCES = rpc-test.c
150rpc_test_LDADD = ${apps_ldadd}
151rpc_test_LDFLAGS = ${apps_ldflags}
152
153test_peer_id_SOURCES = test-peer-id.c
154test_peer_id_LDADD = ${apps_ldadd}
155test_peer_id_LDFLAGS = ${apps_ldflags}
156
157utils_test_SOURCES = utils-test.c
158utils_test_LDADD = ${apps_ldadd}
159utils_test_LDFLAGS = ${apps_ldflags}
160
161
162
163clean-local:
164        if test -d .svn; then rm version.h; fi;
165
166EXTRA_libtransmission_a_SOURCES = \
167    version.h
168
169BUILT_SOURCES = \
170    version.h
171
172version.h:
173        echo '#define PEERID_PREFIX         "'@PEERID_PREFIX@'"' > version.h
174        echo '#define USERAGENT_PREFIX      "'@USERAGENT_PREFIX@'"' >> version.h
175        echo '#define SVN_REVISION          "'`svn info | grep "Revision" | awk -F': ' '{print $$2}'`'"' >> version.h
176        echo '#define SVN_REVISION_NUM      '`svn info | grep "Revision" | awk -F': ' '{print $$2}'`'' >> version.h
177        echo '#define SHORT_VERSION_STRING  "'@USERAGENT_PREFIX@'"' >> version.h
178        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.