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