source: trunk/libtransmission/Makefile.am @ 5828

Last change on this file since 5828 was 5828, checked in by charles, 14 years ago

fix bug in the benc-to-json converter.
add rison-to-json converter so we can pass commands to transmission in a uri.
add unit tests for the new code.

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