source: trunk/libtransmission/Makefile.am @ 6031

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

RPC ACL: (1) add a new call for testing ACLs (2) add wildcard notation support (3) add regression tests for the ACL tester and wildcard handler

File size: 3.2 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_parser.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_parser.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    rpc-test \
95    test-fastset \
96    test-peer-id \
97    utils-test
98
99noinst_PROGRAMS = $(TESTS)
100
101APPS_LDADD = \
102    ./libtransmission.a  \
103    $(top_builddir)/third-party/shttpd/libshttpd.a \
104    $(top_builddir)/third-party/miniupnp/libminiupnp.a \
105    $(top_builddir)/third-party/libnatpmp/libnatpmp.a \
106    $(top_builddir)/third-party/libevent/libevent.la \
107    $(INTLLIBS) \
108    $(OPENSSL_LIBS) \
109    $(LIBCURL_LIBS) \
110    $(PTHREAD_LIBS) \
111    -lm
112
113bencode_test_SOURCES = bencode-test.c
114bencode_test_LDADD = $(APPS_LDADD)
115blocklist_test_SOURCES = blocklist-test.c
116blocklist_test_LDADD = $(APPS_LDADD)
117clients_test_SOURCES = clients-test.c
118clients_test_LDADD = $(APPS_LDADD)
119json_test_SOURCES = json-test.c
120json_test_LDADD = $(APPS_LDADD)
121rpc_test_SOURCES = rpc-test.c
122rpc_test_LDADD = $(APPS_LDADD)
123test_fastset_SOURCES = test-fastset.c
124test_fastset_LDADD = $(APPS_LDADD)
125test_peer_id_SOURCES = test-peer-id.c
126test_peer_id_LDADD = $(APPS_LDADD)
127utils_test_SOURCES = utils-test.c
128utils_test_LDADD = $(APPS_LDADD)
129
130
131clean-local:
132        if test -d .svn; then rm version.h; fi;
133
134EXTRA_libtransmission_a_SOURCES = \
135    version.h
136
137BUILT_SOURCES = \
138    version.h
139
140version.h:
141        echo '#define PEERID_PREFIX         "'@PEERID_PREFIX@'"' > version.h
142        echo '#define USERAGENT_PREFIX      "'@USERAGENT_PREFIX@'"' >> version.h
143        echo '#define SVN_REVISION          "'`svn info | grep "Revision" | awk -F': ' '{print $$2}'`'"' >> version.h
144        echo '#define SHORT_VERSION_STRING  "'@USERAGENT_PREFIX@'"' >> version.h
145        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.