source: trunk/libtransmission/Makefile.am @ 5860

Last change on this file since 5860 was 5860, checked in by charles, 15 years ago

(1) RPC "add-torrent" now lets clients embed base64-encoded metainfo directly into the request
(2) remove the RISON code; it didn't make the final cut
(3) add base64 encode/decode utilities and unit tests

File size: 3.1 KB
Line 
1AM_CPPFLAGS = -I. -I$(top_srcdir) -I$(top_srcdir)/third-party/ -D__TRANSMISSION__ $(LIBEVENT_CPPFLAGS)
2AM_CFLAGS = $(OPENSSL_CFLAGS) $(LIBCURL_CFLAGS) $(PTHREAD_CFLAGS)
3
4noinst_LIBRARIES = libtransmission.a
5
6libtransmission_a_SOURCES = \
7    bencode.c \
8    blocklist.c \
9    clients.c \
10    completion.c \
11    ConvertUTF.c \
12    crypto.c \
13    fastresume.c \
14    fdlimit.c \
15    ggets.c \
16    handshake.c \
17    inout.c \
18    json.c \
19    JSON_checker.c \
20    list.c \
21    makemeta.c \
22    metainfo.c \
23    natpmp.c \
24    net.c \
25    peer-io.c \
26    peer-mgr.c \
27    peer-msgs.c \
28    platform.c \
29    port-forwarding.c \
30    ptrarray.c \
31    publish.c \
32    ratecontrol.c \
33    resume.c \
34    rpc.c \
35    rpc-server.c \
36    session.c \
37    stats.c \
38    torrent.c \
39    torrent-ctor.c \
40    tracker.c \
41    trevent.c \
42    upnp.c \
43    utils.c \
44    verify.c \
45    web.c
46
47noinst_HEADERS = \
48    bencode.h \
49    blocklist.h \
50    clients.h \
51    ConvertUTF.h \
52    crypto.h \
53    completion.h \
54    fastresume.h \
55    fdlimit.h \
56    ggets.h \
57    handshake.h \
58    inout.h \
59    json.h \
60    JSON_checker.h \
61    list.h \
62    makemeta.h \
63    metainfo.h \
64    natpmp.h \
65    net.h \
66    peer-io.h \
67    peer-mgr.h \
68    peer-mgr-private.h \
69    peer-msgs.h \
70    platform.h \
71    port-forwarding.h \
72    ptrarray.h \
73    publish.h \
74    ratecontrol.h \
75    resume.h \
76    rpc.h \
77    rpc-server.h \
78    session.h \
79    stats.h \
80    torrent.h \
81    tracker.h \
82    transmission.h \
83    trevent.h \
84    upnp.h \
85    utils.h \
86    verify.h \
87    web.h
88
89TESTS = \
90    blocklist-test \
91    bencode-test \
92    clients-test \
93    json-test \
94    test-fastset \
95    test-peer-id \
96    utils-test
97
98noinst_PROGRAMS = $(TESTS)
99
100APPS_LDADD = \
101    ./libtransmission.a  \
102    $(top_builddir)/third-party/shttpd/libshttpd.a \
103    $(top_builddir)/third-party/miniupnp/libminiupnp.a \
104    $(top_builddir)/third-party/libnatpmp/libnatpmp.a \
105    $(top_builddir)/third-party/libevent/libevent.la \
106    $(INTLLIBS) \
107    $(OPENSSL_LIBS) \
108    $(LIBCURL_LIBS) \
109    $(PTHREAD_LIBS) \
110    -lm
111
112bencode_test_SOURCES = bencode-test.c
113bencode_test_LDADD = $(APPS_LDADD)
114blocklist_test_SOURCES = blocklist-test.c
115blocklist_test_LDADD = $(APPS_LDADD)
116clients_test_SOURCES = clients-test.c
117clients_test_LDADD = $(APPS_LDADD)
118json_test_SOURCES = json-test.c
119json_test_LDADD = $(APPS_LDADD)
120test_fastset_SOURCES = test-fastset.c
121test_fastset_LDADD = $(APPS_LDADD)
122test_peer_id_SOURCES = test-peer-id.c
123test_peer_id_LDADD = $(APPS_LDADD)
124utils_test_SOURCES = utils-test.c
125utils_test_LDADD = $(APPS_LDADD)
126
127
128clean-local:
129        if test -d .svn; then rm version.h; fi;
130
131EXTRA_libtransmission_a_SOURCES = \
132    version.h
133
134BUILT_SOURCES = \
135    version.h
136
137version.h:
138        echo '#define PEERID_PREFIX         "'@PEERID_PREFIX@'"' > version.h
139        echo '#define USERAGENT_PREFIX      "'@USERAGENT_PREFIX@'"' >> version.h
140        echo '#define SVN_REVISION          "'`svn info | grep "Revision" | awk -F': ' '{print $$2}'`'"' >> version.h
141        echo '#define SHORT_VERSION_STRING  "'@USERAGENT_PREFIX@'"' >> version.h
142        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.