source: trunk/libtransmission/Makefile.am @ 8149

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

(trunk) If avahi's zeroconf implementation is available, use it to advertise our web ui

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    $(AVAHI_CFLAGS)   \
11    $(ZLIB_CFLAGS)
12
13noinst_LIBRARIES = libtransmission.a
14
15libtransmission_a_SOURCES = \
16    bandwidth.c \
17    bencode.c \
18    blocklist.c \
19    clients.c \
20    completion.c \
21    ConvertUTF.c \
22    crypto.c \
23    fastresume.c \
24    fdlimit.c \
25    ggets.c \
26    handshake.c \
27    inout.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    request-list.c \
44    resume.c \
45    rpcimpl.c \
46    rpc-server.c \
47    session.c \
48    stats.c \
49    torrent.c \
50    torrent-ctor.c \
51    tr-getopt.c \
52    tracker.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    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    peer-msgs-test \
113    request-list-test \
114    rpc-test \
115    test-peer-id \
116    utils-test
117
118noinst_PROGRAMS = $(TESTS)
119
120apps_ldflags = \
121    $(ZLIB_LDFLAGS)
122
123apps_ldadd = \
124    ./libtransmission.a  \
125    $(top_builddir)/third-party/miniupnp/libminiupnp.a \
126    $(top_builddir)/third-party/libnatpmp/libnatpmp.a \
127    $(top_builddir)/third-party/libevent/libevent.la \
128    $(INTLLIBS) \
129    $(LIBCURL_LIBS) \
130    $(OPENSSL_LIBS) \
131    $(PTHREAD_LIBS) \
132    $(AVAHI_LIBS) \
133    $(ZLIB_LIBS) \
134    -lm
135
136bencode_test_SOURCES = bencode-test.c
137bencode_test_LDADD = ${apps_ldadd}
138bencode_test_LDFLAGS = ${apps_ldflags}
139
140blocklist_test_SOURCES = blocklist-test.c
141blocklist_test_LDADD = ${apps_ldadd}
142blocklist_test_LDFLAGS = ${apps_ldflags}
143
144clients_test_SOURCES = clients-test.c
145clients_test_LDADD = ${apps_ldadd}
146clients_test_LDFLAGS = ${apps_ldflags}
147
148json_test_SOURCES = json-test.c
149json_test_LDADD = ${apps_ldadd}
150json_test_LDFLAGS = ${apps_ldflags}
151
152rpc_test_SOURCES = rpc-test.c
153rpc_test_LDADD = ${apps_ldadd}
154rpc_test_LDFLAGS = ${apps_ldflags}
155
156test_peer_id_SOURCES = test-peer-id.c
157test_peer_id_LDADD = ${apps_ldadd}
158test_peer_id_LDFLAGS = ${apps_ldflags}
159
160request_list_test_SOURCES = request-list-test.c
161request_list_test_LDADD = ${apps_ldadd}
162request_list_test_LDFLAGS = ${apps_ldflags}
163
164peer_msgs_test_SOURCES = peer-msgs-test.c
165peer_msgs_test_LDADD = ${apps_ldadd}
166peer_msgs_test_LDFLAGS = ${apps_ldflags}
167
168utils_test_SOURCES = utils-test.c
169utils_test_LDADD = ${apps_ldadd}
170utils_test_LDFLAGS = ${apps_ldflags}
171
172
173
174clean-local:
175        if test -d .svn; then if test -e version.h; then rm version.h; fi; fi;
176
177EXTRA_libtransmission_a_SOURCES = \
178    version.h
179
180BUILT_SOURCES = \
181    version.h
182
183version.h:
184        echo '#define PEERID_PREFIX         "'@PEERID_PREFIX@'"' > version.h
185        echo '#define USERAGENT_PREFIX      "'@USERAGENT_PREFIX@'"' >> version.h
186        echo '#define SVN_REVISION          "'`svn info | grep "Revision" | awk -F': ' '{print $$2}'`'"' >> version.h
187        echo '#define SVN_REVISION_NUM      '`svn info | grep "Revision" | awk -F': ' '{print $$2}'`'' >> version.h
188        echo '#define SHORT_VERSION_STRING  "'@USERAGENT_PREFIX@'"' >> version.h
189        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.