source: trunk/libtransmission/Makefile.am @ 14323

Last change on this file since 14323 was 14323, checked in by jordan, 8 years ago

use pkg-config to get the zlib cflags/libs; remove obsolete zlib.m4 macro

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