source: trunk/libtransmission/Makefile.am

Last change on this file was 14674, checked in by mikedld, 5 years ago

Make it possible to force generic watchdir implementation in runtime

File size: 6.2 KB
Line 
1AM_CPPFLAGS = \
2  -I$(top_srcdir) \
3  -D__TRANSMISSION__ \
4  -DPACKAGE_DATA_DIR=\""$(datadir)"\"
5
6AM_CFLAGS = \
7  @DHT_CFLAGS@ \
8  @LIBB64_CFLAGS@ \
9  @LIBUTP_CFLAGS@ \
10  @LIBUPNP_CFLAGS@ \
11  @LIBNATPMP_CFLAGS@ \
12  @LIBEVENT_CFLAGS@ \
13  @LIBCURL_CFLAGS@ \
14  @CRYPTO_CFLAGS@ \
15  @PTHREAD_CFLAGS@ \
16  @ZLIB_CFLAGS@
17
18noinst_LIBRARIES = libtransmission.a
19
20libtransmission_a_SOURCES = \
21  announcer.c \
22  announcer-http.c \
23  announcer-udp.c \
24  bandwidth.c \
25  bitfield.c \
26  blocklist.c \
27  cache.c \
28  clients.c \
29  completion.c \
30  ConvertUTF.c \
31  crypto.c \
32  crypto-utils.c \
33  crypto-utils-fallback.c \
34  error.c \
35  fdlimit.c \
36  file.c \
37  handshake.c \
38  history.c \
39  inout.c \
40  list.c \
41  log.c \
42  magnet.c \
43  makemeta.c \
44  metainfo.c \
45  natpmp.c \
46  net.c \
47  peer-io.c \
48  peer-mgr.c \
49  peer-msgs.c \
50  platform.c \
51  platform-quota.c \
52  port-forwarding.c \
53  ptrarray.c \
54  quark.c \
55  resume.c \
56  rpcimpl.c \
57  rpc-server.c \
58  session.c \
59  stats.c \
60  torrent.c \
61  torrent-ctor.c \
62  torrent-magnet.c \
63  tr-dht.c \
64  tr-lpd.c \
65  tr-udp.c \
66  tr-utp.c \
67  tr-getopt.c \
68  trevent.c \
69  upnp.c \
70  utils.c \
71  variant.c \
72  variant-benc.c \
73  variant-json.c \
74  verify.c \
75  watchdir.c \
76  watchdir-generic.c \
77  web.c \
78  webseed.c \
79  wildmat.c
80
81if USE_INOTIFY
82libtransmission_a_SOURCES += watchdir-inotify.c
83AM_CPPFLAGS += -DWITH_INOTIFY
84endif
85
86if USE_KQUEUE
87libtransmission_a_SOURCES += watchdir-kqueue.c
88AM_CPPFLAGS += -DWITH_KQUEUE
89endif
90
91if WIN32
92libtransmission_a_SOURCES += file-win32.c watchdir-win32.c
93else
94libtransmission_a_SOURCES += file-posix.c
95endif
96
97if CRYPTO_USE_OPENSSL
98libtransmission_a_SOURCES += crypto-utils-openssl.c
99endif
100if CRYPTO_USE_CYASSL
101libtransmission_a_SOURCES += crypto-utils-cyassl.c
102endif
103if CRYPTO_USE_POLARSSL
104libtransmission_a_SOURCES += crypto-utils-polarssl.c
105endif
106
107noinst_HEADERS = \
108  announcer.h \
109  announcer-common.h \
110  bandwidth.h \
111  bitfield.h \
112  blocklist.h \
113  cache.h \
114  clients.h \
115  ConvertUTF.h \
116  crypto.h \
117  crypto-utils.h \
118  completion.h \
119  error.h \
120  error-types.h \
121  fdlimit.h \
122  file.h \
123  handshake.h \
124  history.h \
125  inout.h \
126  jsonsl.c \
127  jsonsl.h \
128  libtransmission-test.h \
129  list.h \
130  log.h \
131  magnet.h \
132  makemeta.h \
133  metainfo.h \
134  natpmp_local.h \
135  net.h \
136  peer-common.h \
137  peer-io.h \
138  peer-mgr.h \
139  peer-msgs.h \
140  platform.h \
141  platform-quota.h \
142  port-forwarding.h \
143  ptrarray.h \
144  quark.h \
145  resume.h \
146  rpcimpl.h \
147  rpc-server.h \
148  session.h \
149  stats.h \
150  torrent.h \
151  torrent-magnet.h \
152  tr-getopt.h \
153  transmission.h \
154  tr-dht.h \
155  tr-udp.h \
156  tr-utp.h \
157  tr-lpd.h \
158  trevent.h \
159  upnp.h \
160  utils.h \
161  variant.h \
162  variant-common.h \
163  verify.h \
164  version.h \
165  watchdir.h \
166  watchdir-common.h \
167  web.h \
168  webseed.h
169
170TESTS = \
171  bitfield-test \
172  blocklist-test \
173  clients-test \
174  crypto-test \
175  error-test \
176  file-test \
177  history-test \
178  json-test \
179  magnet-test \
180  makemeta-test \
181  metainfo-test \
182  move-test \
183  peer-msgs-test \
184  quark-test \
185  rename-test \
186  rpc-test \
187  session-test \
188  tr-getopt-test \
189  utils-test \
190  variant-test \
191  watchdir-test \
192  watchdir-generic-test
193
194noinst_PROGRAMS = $(TESTS)
195
196apps_ldadd = \
197  ./libtransmission.a  \
198  @LIBUPNP_LIBS@ \
199  @LIBNATPMP_LIBS@ \
200  @INTLLIBS@ \
201  @DHT_LIBS@ \
202  @LIBB64_LIBS@ \
203  @LIBUTP_LIBS@ \
204  @LIBCURL_LIBS@ \
205  @LIBEVENT_LIBS@ \
206  @CRYPTO_LIBS@ \
207  @PTHREAD_LIBS@ \
208  @ZLIB_LIBS@ \
209  ${LIBM}
210
211TEST_SOURCES = libtransmission-test.c
212
213bitfield_test_SOURCES = bitfield-test.c $(TEST_SOURCES)
214bitfield_test_LDADD = ${apps_ldadd}
215bitfield_test_LDFLAGS = ${apps_ldflags}
216
217blocklist_test_SOURCES = blocklist-test.c $(TEST_SOURCES)
218blocklist_test_LDADD = ${apps_ldadd}
219blocklist_test_LDFLAGS = ${apps_ldflags}
220
221clients_test_SOURCES = clients-test.c $(TEST_SOURCES)
222clients_test_LDADD = ${apps_ldadd}
223clients_test_LDFLAGS = ${apps_ldflags}
224
225crypto_test_SOURCES = crypto-test.c crypto-test-ref.h $(TEST_SOURCES)
226crypto_test_LDADD = ${apps_ldadd}
227crypto_test_LDFLAGS = ${apps_ldflags}
228
229error_test_SOURCES = error-test.c $(TEST_SOURCES)
230error_test_LDADD = ${apps_ldadd}
231error_test_LDFLAGS = ${apps_ldflags}
232
233file_test_SOURCES = file-test.c $(TEST_SOURCES)
234file_test_LDADD = ${apps_ldadd}
235file_test_LDFLAGS = ${apps_ldflags}
236
237history_test_SOURCES = history-test.c $(TEST_SOURCES)
238history_test_LDADD = ${apps_ldadd}
239history_test_LDFLAGS = ${apps_ldflags}
240
241json_test_SOURCES = json-test.c $(TEST_SOURCES)
242json_test_LDADD = ${apps_ldadd}
243json_test_LDFLAGS = ${apps_ldflags}
244
245quark_test_SOURCES = quark-test.c $(TEST_SOURCES)
246quark_test_LDADD = ${apps_ldadd}
247quark_test_LDFLAGS = ${apps_ldflags}
248
249magnet_test_SOURCES = magnet-test.c $(TEST_SOURCES)
250magnet_test_LDADD = ${apps_ldadd}
251magnet_test_LDFLAGS = ${apps_ldflags}
252
253metainfo_test_SOURCES = metainfo-test.c $(TEST_SOURCES)
254metainfo_test_LDADD = ${apps_ldadd}
255metainfo_test_LDFLAGS = ${apps_ldflags}
256
257makemeta_test_SOURCES = makemeta-test.c $(TEST_SOURCES)
258makemeta_test_LDADD = ${apps_ldadd}
259makemeta_test_LDFLAGS = ${apps_ldflags}
260
261move_test_SOURCES = move-test.c $(TEST_SOURCES)
262move_test_LDADD = ${apps_ldadd}
263move_test_LDFLAGS = ${apps_ldflags}
264
265peer_msgs_test_SOURCES = peer-msgs-test.c $(TEST_SOURCES)
266peer_msgs_test_LDADD = ${apps_ldadd}
267peer_msgs_test_LDFLAGS = ${apps_ldflags}
268
269rpc_test_SOURCES = rpc-test.c $(TEST_SOURCES)
270rpc_test_LDADD = ${apps_ldadd}
271rpc_test_LDFLAGS = ${apps_ldflags}
272
273session_test_SOURCES = session-test.c $(TEST_SOURCES)
274session_test_LDADD = ${apps_ldadd}
275session_test_LDFLAGS = ${apps_ldflags}
276
277tr_getopt_test_SOURCES = tr-getopt-test.c $(TEST_SOURCES)
278tr_getopt_test_LDADD = ${apps_ldadd}
279tr_getopt_test_LDFLAGS = ${apps_ldflags}
280
281utils_test_SOURCES = utils-test.c $(TEST_SOURCES)
282utils_test_LDADD = ${apps_ldadd}
283utils_test_LDFLAGS = ${apps_ldflags}
284
285variant_test_SOURCES = variant-test.c $(TEST_SOURCES)
286variant_test_LDADD = ${apps_ldadd}
287variant_test_LDFLAGS = ${apps_ldflags}
288
289watchdir_test_SOURCES = watchdir-test.c $(TEST_SOURCES)
290watchdir_test_LDADD = ${apps_ldadd}
291watchdir_test_LDFLAGS = ${apps_ldflags}
292
293watchdir_generic_test_SOURCES = watchdir-test.c $(TEST_SOURCES)
294watchdir_generic_test_LDADD = ${apps_ldadd}
295watchdir_generic_test_LDFLAGS = ${apps_ldflags}
296watchdir_generic_test_CPPFLAGS = -DWATCHDIR_TEST_FORCE_GENERIC $(AM_CPPFLAGS)
297
298rename_test_SOURCES = rename-test.c $(TEST_SOURCES)
299rename_test_LDADD = ${apps_ldadd}
300rename_test_LDFLAGS = ${apps_ldflags}
Note: See TracBrowser for help on using the repository browser.