]>
Commit | Line | Data |
---|---|---|
62c82025 | 1 | ## |
50985c20 | 2 | ## This file is part of the libsigrok project. |
62c82025 | 3 | ## |
c73d2ea4 | 4 | ## Copyright (C) 2010-2012 Bert Vermeulen <bert@biot.com> |
d375b3c3 | 5 | ## Copyright (C) 2012 Alexandru Gagniuc <mr.nuke.me@gmail.com> |
62c82025 | 6 | ## |
a1bb33af UH |
7 | ## This program is free software: you can redistribute it and/or modify |
8 | ## it under the terms of the GNU General Public License as published by | |
9 | ## the Free Software Foundation, either version 3 of the License, or | |
10 | ## (at your option) any later version. | |
62c82025 | 11 | ## |
a1bb33af UH |
12 | ## This program is distributed in the hope that it will be useful, |
13 | ## but WITHOUT ANY WARRANTY; without even the implied warranty of | |
14 | ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
15 | ## GNU General Public License for more details. | |
62c82025 | 16 | ## |
a1bb33af UH |
17 | ## You should have received a copy of the GNU General Public License |
18 | ## along with this program. If not, see <http://www.gnu.org/licenses/>. | |
62c82025 | 19 | ## |
a1bb33af | 20 | |
d8521c93 | 21 | ACLOCAL_AMFLAGS = -I autostuff |
826938d8 | 22 | |
55e55a3f | 23 | AM_CPPFLAGS = -I$(srcdir)/src -DFIRMWARE_DIR='"$(FIRMWARE_DIR)"' |
340f6e7a | 24 | |
8a7b47cd | 25 | lib_LTLIBRARIES = libsigrok.la |
a1bb33af | 26 | |
67bd8055 | 27 | # Backend files |
a695d6c0 | 28 | libsigrok_la_SOURCES = \ |
155b680d BV |
29 | src/backend.c \ |
30 | src/device.c \ | |
31 | src/session.c \ | |
32 | src/session_file.c \ | |
33 | src/session_driver.c \ | |
34 | src/drivers.c \ | |
35 | src/hwdriver.c \ | |
36 | src/trigger.c \ | |
37 | src/soft-trigger.c \ | |
fb019a0e | 38 | src/analog.c \ |
24287ea9 | 39 | src/fallback.c \ |
155b680d BV |
40 | src/strutil.c \ |
41 | src/log.c \ | |
42 | src/version.c \ | |
43 | src/error.c \ | |
44 | src/std.c | |
960a75e4 | 45 | |
155b680d BV |
46 | # Input modules |
47 | libsigrok_la_SOURCES += \ | |
155b680d | 48 | src/input/input.c \ |
b84cba4d | 49 | src/input/binary.c \ |
02e24c0c | 50 | src/input/chronovu_la8.c \ |
41d214f6 | 51 | src/input/csv.c \ |
7db06394 | 52 | src/input/vcd.c \ |
155b680d | 53 | src/input/wav.c |
67bd8055 | 54 | |
155b680d BV |
55 | # Output modules |
56 | libsigrok_la_SOURCES += \ | |
57 | src/output/output.c \ | |
58 | src/output/analog.c \ | |
59 | src/output/ascii.c \ | |
60 | src/output/bits.c \ | |
61 | src/output/binary.c \ | |
62 | src/output/csv.c \ | |
63 | src/output/chronovu_la8.c \ | |
afaa75b9 | 64 | src/output/wav.c \ |
155b680d BV |
65 | src/output/gnuplot.c \ |
66 | src/output/hex.c \ | |
67 | src/output/ols.c \ | |
3250d8c7 | 68 | src/output/srzip.c \ |
155b680d | 69 | src/output/vcd.c |
67bd8055 | 70 | |
988357ca UH |
71 | # Transform modules |
72 | libsigrok_la_SOURCES += \ | |
39f1752e | 73 | src/transform/transform.c \ |
43caa466 | 74 | src/transform/nop.c \ |
d74d30bb UH |
75 | src/transform/scale.c \ |
76 | src/transform/invert.c | |
988357ca | 77 | |
155b680d | 78 | # SCPI support |
67bd8055 | 79 | libsigrok_la_SOURCES += \ |
155b680d BV |
80 | src/scpi/scpi.c \ |
81 | src/scpi/scpi_tcp.c | |
67bd8055 UH |
82 | if NEED_RPC |
83 | libsigrok_la_SOURCES += \ | |
155b680d BV |
84 | src/scpi/scpi_vxi.c \ |
85 | src/scpi/vxi_clnt.c \ | |
86 | src/scpi/vxi_xdr.c \ | |
87 | src/scpi/vxi.h | |
67bd8055 UH |
88 | endif |
89 | if NEED_SERIAL | |
90 | libsigrok_la_SOURCES += \ | |
155b680d BV |
91 | src/serial.c \ |
92 | src/scpi/scpi_serial.c | |
67bd8055 UH |
93 | endif |
94 | if NEED_USB | |
95 | libsigrok_la_SOURCES += \ | |
155b680d BV |
96 | src/ezusb.c \ |
97 | src/usb.c \ | |
98 | src/scpi/scpi_usbtmc_libusb.c | |
67bd8055 UH |
99 | endif |
100 | if NEED_VISA | |
101 | libsigrok_la_SOURCES += \ | |
155b680d | 102 | src/scpi/scpi_visa.c |
67bd8055 | 103 | endif |
bb2a4ed4 ML |
104 | if NEED_GPIB |
105 | libsigrok_la_SOURCES += \ | |
7343ad1e | 106 | src/scpi/scpi_libgpib.c |
bb2a4ed4 | 107 | endif |
67bd8055 | 108 | |
155b680d BV |
109 | # Hardware (DMM chip parsers) |
110 | libsigrok_la_SOURCES += \ | |
111 | src/dmm/es519xx.c \ | |
112 | src/dmm/fs9721.c \ | |
113 | src/dmm/fs9922.c \ | |
114 | src/dmm/m2110.c \ | |
115 | src/dmm/metex14.c \ | |
a24c3f4a | 116 | src/dmm/rs9lcd.c \ |
626027df | 117 | src/dmm/bm25x.c \ |
f3cde309 | 118 | src/dmm/ut71x.c \ |
c36f78f7 UH |
119 | src/dmm/ut372.c \ |
120 | src/dmm/vc870.c | |
67bd8055 | 121 | |
6bcb3ee8 | 122 | # Hardware (LCR chip parsers) |
d378f100 | 123 | if NEED_SERIAL |
6bcb3ee8 JH |
124 | libsigrok_la_SOURCES += \ |
125 | src/lcr/es51919.c | |
d378f100 | 126 | endif |
6bcb3ee8 | 127 | |
67bd8055 UH |
128 | # Hardware drivers |
129 | if HW_AGILENT_DMM | |
130 | libsigrok_la_SOURCES += \ | |
155b680d BV |
131 | src/hardware/agilent-dmm/api.c \ |
132 | src/hardware/agilent-dmm/agilent-dmm.h \ | |
133 | src/hardware/agilent-dmm/sched.c | |
67bd8055 | 134 | endif |
67bd8055 UH |
135 | if HW_APPA_55II |
136 | libsigrok_la_SOURCES += \ | |
155b680d BV |
137 | src/hardware/appa-55ii/protocol.h \ |
138 | src/hardware/appa-55ii/protocol.c \ | |
139 | src/hardware/appa-55ii/api.c | |
67bd8055 UH |
140 | endif |
141 | if HW_ASIX_SIGMA | |
142 | libsigrok_la_SOURCES += \ | |
155b680d BV |
143 | src/hardware/asix-sigma/asix-sigma.h \ |
144 | src/hardware/asix-sigma/asix-sigma.c | |
67bd8055 UH |
145 | endif |
146 | if HW_ATTEN_PPS3XXX | |
147 | libsigrok_la_SOURCES += \ | |
155b680d BV |
148 | src/hardware/atten-pps3xxx/protocol.h \ |
149 | src/hardware/atten-pps3xxx/protocol.c \ | |
150 | src/hardware/atten-pps3xxx/api.c | |
67bd8055 | 151 | endif |
dfaee1de BG |
152 | if HW_BAYLIBRE_ACME |
153 | libsigrok_la_SOURCES += \ | |
154 | src/hardware/baylibre-acme/protocol.h \ | |
155 | src/hardware/baylibre-acme/protocol.c \ | |
289eebd7 BG |
156 | src/hardware/baylibre-acme/api.c \ |
157 | src/hardware/baylibre-acme/gpio.h \ | |
158 | src/hardware/baylibre-acme/gpio.c | |
dfaee1de | 159 | endif |
bb993797 KA |
160 | if HW_BEAGLELOGIC |
161 | libsigrok_la_SOURCES += \ | |
3db4b08b | 162 | src/hardware/beaglelogic/beaglelogic.h \ |
155b680d BV |
163 | src/hardware/beaglelogic/protocol.h \ |
164 | src/hardware/beaglelogic/protocol.c \ | |
165 | src/hardware/beaglelogic/api.c | |
bb993797 | 166 | endif |
67bd8055 UH |
167 | if HW_BRYMEN_BM86X |
168 | libsigrok_la_SOURCES += \ | |
155b680d BV |
169 | src/hardware/brymen-bm86x/protocol.h \ |
170 | src/hardware/brymen-bm86x/protocol.c \ | |
171 | src/hardware/brymen-bm86x/api.c | |
67bd8055 UH |
172 | endif |
173 | if HW_BRYMEN_DMM | |
174 | libsigrok_la_SOURCES += \ | |
155b680d BV |
175 | src/hardware/brymen-dmm/parser.c \ |
176 | src/hardware/brymen-dmm/protocol.h \ | |
177 | src/hardware/brymen-dmm/protocol.c \ | |
178 | src/hardware/brymen-dmm/api.c | |
67bd8055 UH |
179 | endif |
180 | if HW_CEM_DT_885X | |
181 | libsigrok_la_SOURCES += \ | |
155b680d BV |
182 | src/hardware/cem-dt-885x/protocol.h \ |
183 | src/hardware/cem-dt-885x/protocol.c \ | |
184 | src/hardware/cem-dt-885x/api.c | |
67bd8055 UH |
185 | endif |
186 | if HW_CENTER_3XX | |
187 | libsigrok_la_SOURCES += \ | |
155b680d BV |
188 | src/hardware/center-3xx/protocol.h \ |
189 | src/hardware/center-3xx/protocol.c \ | |
190 | src/hardware/center-3xx/api.c | |
67bd8055 | 191 | endif |
7b356712 | 192 | if HW_CHRONOVU_LA |
67bd8055 | 193 | libsigrok_la_SOURCES += \ |
155b680d BV |
194 | src/hardware/chronovu-la/protocol.h \ |
195 | src/hardware/chronovu-la/protocol.c \ | |
196 | src/hardware/chronovu-la/api.c | |
67bd8055 UH |
197 | endif |
198 | if HW_COLEAD_SLM | |
199 | libsigrok_la_SOURCES += \ | |
155b680d BV |
200 | src/hardware/colead-slm/protocol.h \ |
201 | src/hardware/colead-slm/protocol.c \ | |
202 | src/hardware/colead-slm/api.c | |
67bd8055 UH |
203 | endif |
204 | if HW_CONRAD_DIGI_35_CPU | |
205 | libsigrok_la_SOURCES += \ | |
155b680d BV |
206 | src/hardware/conrad-digi-35-cpu/protocol.h \ |
207 | src/hardware/conrad-digi-35-cpu/protocol.c \ | |
208 | src/hardware/conrad-digi-35-cpu/api.c | |
67bd8055 UH |
209 | endif |
210 | if HW_DEMO | |
211 | libsigrok_la_SOURCES += \ | |
155b680d | 212 | src/hardware/demo/demo.c |
67bd8055 | 213 | endif |
b5089195 JH |
214 | if HW_DEREE_DE5000 |
215 | libsigrok_la_SOURCES += \ | |
216 | src/hardware/deree-de5000/api.c | |
217 | endif | |
67bd8055 UH |
218 | if HW_FLUKE_DMM |
219 | libsigrok_la_SOURCES += \ | |
155b680d BV |
220 | src/hardware/fluke-dmm/fluke-dmm.h \ |
221 | src/hardware/fluke-dmm/fluke.c \ | |
222 | src/hardware/fluke-dmm/api.c | |
67bd8055 UH |
223 | endif |
224 | if HW_FX2LAFW | |
225 | libsigrok_la_SOURCES += \ | |
155b680d BV |
226 | src/hardware/fx2lafw/protocol.h \ |
227 | src/hardware/fx2lafw/protocol.c \ | |
a7d7f93c | 228 | src/hardware/fx2lafw/api.c \ |
b9d53092 BV |
229 | src/hardware/fx2lafw/dslogic.c \ |
230 | src/hardware/fx2lafw/dslogic.h | |
67bd8055 UH |
231 | endif |
232 | if HW_GMC_MH_1X_2X | |
233 | libsigrok_la_SOURCES += \ | |
155b680d BV |
234 | src/hardware/gmc-mh-1x-2x/protocol.h \ |
235 | src/hardware/gmc-mh-1x-2x/protocol.c \ | |
236 | src/hardware/gmc-mh-1x-2x/api.c | |
67bd8055 UH |
237 | endif |
238 | if HW_HAMEG_HMO | |
239 | libsigrok_la_SOURCES += \ | |
155b680d BV |
240 | src/hardware/hameg-hmo/protocol.h \ |
241 | src/hardware/hameg-hmo/protocol.c \ | |
242 | src/hardware/hameg-hmo/api.c | |
67bd8055 UH |
243 | endif |
244 | if HW_HANTEK_DSO | |
245 | libsigrok_la_SOURCES += \ | |
155b680d BV |
246 | src/hardware/hantek-dso/dso.h \ |
247 | src/hardware/hantek-dso/dso.c \ | |
248 | src/hardware/hantek-dso/api.c | |
67bd8055 UH |
249 | endif |
250 | if HW_IKALOGIC_SCANALOGIC2 | |
251 | libsigrok_la_SOURCES += \ | |
155b680d BV |
252 | src/hardware/ikalogic-scanalogic2/protocol.h \ |
253 | src/hardware/ikalogic-scanalogic2/protocol.c \ | |
254 | src/hardware/ikalogic-scanalogic2/api.c | |
67bd8055 UH |
255 | endif |
256 | if HW_IKALOGIC_SCANAPLUS | |
257 | libsigrok_la_SOURCES += \ | |
155b680d BV |
258 | src/hardware/ikalogic-scanaplus/protocol.h \ |
259 | src/hardware/ikalogic-scanaplus/protocol.c \ | |
260 | src/hardware/ikalogic-scanaplus/api.c | |
67bd8055 UH |
261 | endif |
262 | if HW_KECHENG_KC_330B | |
263 | libsigrok_la_SOURCES += \ | |
155b680d BV |
264 | src/hardware/kecheng-kc-330b/protocol.h \ |
265 | src/hardware/kecheng-kc-330b/protocol.c \ | |
266 | src/hardware/kecheng-kc-330b/api.c | |
67bd8055 UH |
267 | endif |
268 | if HW_LASCAR_EL_USB | |
269 | libsigrok_la_SOURCES += \ | |
155b680d BV |
270 | src/hardware/lascar-el-usb/protocol.h \ |
271 | src/hardware/lascar-el-usb/protocol.c \ | |
272 | src/hardware/lascar-el-usb/api.c | |
67bd8055 | 273 | endif |
8f4e922f UH |
274 | if HW_MANSON_HCS_3XXX |
275 | libsigrok_la_SOURCES += \ | |
155b680d BV |
276 | src/hardware/manson-hcs-3xxx/protocol.h \ |
277 | src/hardware/manson-hcs-3xxx/protocol.c \ | |
278 | src/hardware/manson-hcs-3xxx/api.c | |
8f4e922f | 279 | endif |
67bd8055 UH |
280 | if HW_MIC_985XX |
281 | libsigrok_la_SOURCES += \ | |
155b680d BV |
282 | src/hardware/mic-985xx/protocol.h \ |
283 | src/hardware/mic-985xx/protocol.c \ | |
284 | src/hardware/mic-985xx/api.c | |
67bd8055 | 285 | endif |
41b7bd01 MH |
286 | if HW_MOTECH_LPS_30X |
287 | libsigrok_la_SOURCES += \ | |
155b680d BV |
288 | src/hardware/motech-lps-30x/protocol.h \ |
289 | src/hardware/motech-lps-30x/protocol.c \ | |
290 | src/hardware/motech-lps-30x/api.c | |
41b7bd01 | 291 | endif |
67bd8055 UH |
292 | if HW_NORMA_DMM |
293 | libsigrok_la_SOURCES += \ | |
155b680d BV |
294 | src/hardware/norma-dmm/protocol.h \ |
295 | src/hardware/norma-dmm/protocol.c \ | |
296 | src/hardware/norma-dmm/api.c | |
67bd8055 | 297 | endif |
d4b38748 | 298 | if HW_OPENBENCH_LOGIC_SNIFFER |
67bd8055 | 299 | libsigrok_la_SOURCES += \ |
155b680d BV |
300 | src/hardware/openbench-logic-sniffer/protocol.h \ |
301 | src/hardware/openbench-logic-sniffer/protocol.c \ | |
302 | src/hardware/openbench-logic-sniffer/api.c | |
67bd8055 | 303 | endif |
4bd80e12 | 304 | if HW_PIPISTRELLO_OLS |
305 | libsigrok_la_SOURCES += \ | |
306 | src/hardware/pipistrello-ols/protocol.h \ | |
307 | src/hardware/pipistrello-ols/protocol.c \ | |
308 | src/hardware/pipistrello-ols/api.c | |
309 | endif | |
67bd8055 UH |
310 | if HW_RIGOL_DS |
311 | libsigrok_la_SOURCES += \ | |
155b680d BV |
312 | src/hardware/rigol-ds/protocol.h \ |
313 | src/hardware/rigol-ds/protocol.c \ | |
314 | src/hardware/rigol-ds/api.c | |
67bd8055 UH |
315 | endif |
316 | if HW_SALEAE_LOGIC16 | |
317 | libsigrok_la_SOURCES += \ | |
155b680d BV |
318 | src/hardware/saleae-logic16/protocol.h \ |
319 | src/hardware/saleae-logic16/protocol.c \ | |
320 | src/hardware/saleae-logic16/api.c | |
67bd8055 | 321 | endif |
ca1a7cb5 BV |
322 | if HW_SCPI_PPS |
323 | libsigrok_la_SOURCES += \ | |
324 | src/hardware/scpi-pps/protocol.h \ | |
325 | src/hardware/scpi-pps/protocol.c \ | |
d4eabea8 | 326 | src/hardware/scpi-pps/profiles.c \ |
ca1a7cb5 BV |
327 | src/hardware/scpi-pps/api.c |
328 | endif | |
67bd8055 UH |
329 | if HW_SERIAL_DMM |
330 | libsigrok_la_SOURCES += \ | |
155b680d BV |
331 | src/hardware/serial-dmm/protocol.h \ |
332 | src/hardware/serial-dmm/protocol.c \ | |
333 | src/hardware/serial-dmm/api.c | |
67bd8055 UH |
334 | endif |
335 | if HW_SYSCLK_LWLA | |
336 | libsigrok_la_SOURCES += \ | |
155b680d BV |
337 | src/hardware/sysclk-lwla/lwla.h \ |
338 | src/hardware/sysclk-lwla/lwla.c \ | |
339 | src/hardware/sysclk-lwla/protocol.h \ | |
340 | src/hardware/sysclk-lwla/protocol.c \ | |
341 | src/hardware/sysclk-lwla/api.c | |
67bd8055 UH |
342 | endif |
343 | if HW_TELEINFO | |
344 | libsigrok_la_SOURCES += \ | |
155b680d BV |
345 | src/hardware/teleinfo/protocol.h \ |
346 | src/hardware/teleinfo/protocol.c \ | |
347 | src/hardware/teleinfo/api.c | |
67bd8055 | 348 | endif |
0acdd793 BV |
349 | if HW_TESTO |
350 | libsigrok_la_SOURCES += \ | |
155b680d BV |
351 | src/hardware/testo/protocol.h \ |
352 | src/hardware/testo/protocol.c \ | |
353 | src/hardware/testo/api.c | |
0acdd793 | 354 | endif |
67bd8055 UH |
355 | if HW_TONDAJ_SL_814 |
356 | libsigrok_la_SOURCES += \ | |
155b680d BV |
357 | src/hardware/tondaj-sl-814/protocol.h \ |
358 | src/hardware/tondaj-sl-814/protocol.c \ | |
359 | src/hardware/tondaj-sl-814/api.c | |
67bd8055 UH |
360 | endif |
361 | if HW_UNI_T_DMM | |
362 | libsigrok_la_SOURCES += \ | |
155b680d BV |
363 | src/hardware/uni-t-dmm/protocol.h \ |
364 | src/hardware/uni-t-dmm/protocol.c \ | |
365 | src/hardware/uni-t-dmm/api.c | |
67bd8055 UH |
366 | endif |
367 | if HW_UNI_T_UT32X | |
368 | libsigrok_la_SOURCES += \ | |
155b680d BV |
369 | src/hardware/uni-t-ut32x/protocol.h \ |
370 | src/hardware/uni-t-ut32x/protocol.c \ | |
371 | src/hardware/uni-t-ut32x/api.c | |
67bd8055 UH |
372 | endif |
373 | if HW_VICTOR_DMM | |
374 | libsigrok_la_SOURCES += \ | |
155b680d BV |
375 | src/hardware/victor-dmm/protocol.h \ |
376 | src/hardware/victor-dmm/protocol.c \ | |
377 | src/hardware/victor-dmm/api.c | |
67bd8055 | 378 | endif |
10763937 SA |
379 | if HW_YOKOGAWA_DLM |
380 | libsigrok_la_SOURCES += \ | |
381 | src/hardware/yokogawa-dlm/protocol.h \ | |
382 | src/hardware/yokogawa-dlm/protocol.c \ | |
383 | src/hardware/yokogawa-dlm/protocol_wrappers.h \ | |
384 | src/hardware/yokogawa-dlm/protocol_wrappers.c \ | |
385 | src/hardware/yokogawa-dlm/api.c | |
386 | endif | |
67bd8055 UH |
387 | if HW_ZEROPLUS_LOGIC_CUBE |
388 | libsigrok_la_SOURCES += \ | |
155b680d BV |
389 | src/hardware/zeroplus-logic-cube/analyzer.c \ |
390 | src/hardware/zeroplus-logic-cube/analyzer.h \ | |
391 | src/hardware/zeroplus-logic-cube/gl_usb.h \ | |
392 | src/hardware/zeroplus-logic-cube/gl_usb.c \ | |
393 | src/hardware/zeroplus-logic-cube/protocol.h \ | |
394 | src/hardware/zeroplus-logic-cube/protocol.c \ | |
395 | src/hardware/zeroplus-logic-cube/api.c | |
67bd8055 UH |
396 | endif |
397 | ||
398 | libsigrok_la_LIBADD = $(LIBOBJS) | |
a1bb33af | 399 | |
6dddd902 | 400 | libsigrok_la_LDFLAGS = $(SR_LIB_LDFLAGS) |
eeebceea | 401 | |
45c59c8b | 402 | library_includedir = $(includedir)/libsigrok |
63d0fb75 ML |
403 | library_include_HEADERS = \ |
404 | include/libsigrok/libsigrok.h \ | |
405 | include/libsigrok/proto.h \ | |
406 | include/libsigrok/version.h | |
155b680d | 407 | noinst_HEADERS = src/libsigrok-internal.h |
a1bb33af | 408 | |
8a7b47cd UH |
409 | pkgconfigdir = $(libdir)/pkgconfig |
410 | pkgconfig_DATA = libsigrok.pc | |
d658e348 | 411 | |
67bd8055 UH |
412 | EXTRA_DIST = \ |
413 | Doxyfile \ | |
414 | HACKING \ | |
415 | README.devices \ | |
416 | contrib/gnuplot_chronovu_la8.gpi \ | |
417 | contrib/gnuplot_rigol_ds1xx2.gpi \ | |
418 | contrib/gnuplot_usbeesx.gpi \ | |
419 | contrib/gnuplot_usbeedx8.gpi \ | |
420 | contrib/gnuplot_usbeedx16.gpi \ | |
421 | contrib/sigrok-logo-notext.png \ | |
422 | contrib/z60_libsigrok.rules | |
423 | ||
424 | if HAVE_CHECK | |
425 | ||
02a2bf68 | 426 | TESTS = tests/main |
67bd8055 UH |
427 | |
428 | check_PROGRAMS = ${TESTS} | |
429 | ||
02a2bf68 | 430 | tests_main_SOURCES = \ |
6592c369 | 431 | include/libsigrok/libsigrok.h \ |
67bd8055 UH |
432 | tests/lib.c \ |
433 | tests/lib.h \ | |
02a2bf68 UH |
434 | tests/main.c \ |
435 | tests/core.c \ | |
436 | tests/input_all.c \ | |
437 | tests/input_binary.c \ | |
438 | tests/output_all.c \ | |
439 | tests/transform_all.c \ | |
440 | tests/session.c \ | |
441 | tests/strutil.c \ | |
442 | tests/version.c \ | |
443 | tests/driver_all.c \ | |
444 | tests/device.c \ | |
445 | tests/trigger.c | |
446 | ||
447 | tests_main_CFLAGS = @check_CFLAGS@ | |
448 | ||
449 | tests_main_LDADD = $(top_builddir)/libsigrok.la @check_LIBS@ | |
67bd8055 UH |
450 | |
451 | endif | |
dd8b5f56 | 452 | |
580ed400 ML |
453 | BUILD_EXTRA = |
454 | INSTALL_EXTRA = | |
455 | CLEAN_EXTRA = | |
456 | ||
c23c8659 ML |
457 | if BINDINGS_CXX |
458 | ||
52ff4f6a | 459 | lib_LTLIBRARIES += bindings/cxx/libsigrokcxx.la |
c23c8659 | 460 | |
52ff4f6a | 461 | bindings_cxx_libsigrokcxx_la_SOURCES = bindings/cxx/classes.cpp |
c23c8659 | 462 | |
52ff4f6a | 463 | bindings_cxx_libsigrokcxx_la_LIBADD = libsigrok.la $(glibmm_LIBS) |
c23c8659 | 464 | |
52ff4f6a | 465 | bindings_cxx_libsigrokcxx_la_LDFLAGS = $(SR_LIB_LDFLAGS) |
c23c8659 | 466 | |
0959ed3d UH |
467 | bindings_cxx_libsigrokcxx_la_includedir = $(includedir)/libsigrokcxx |
468 | bindings_cxx_libsigrokcxx_la_include_HEADERS = \ | |
161dc24d UH |
469 | bindings/cxx/include/libsigrokcxx/libsigrokcxx.hpp \ |
470 | bindings/cxx/include/libsigrokcxx/enums.hpp | |
c23c8659 | 471 | |
52ff4f6a | 472 | pkgconfig_DATA += bindings/cxx/libsigrokcxx.pc |
c23c8659 | 473 | |
3532ed01 | 474 | doxy/xml/index.xml: include/libsigrok/libsigrok.h |
7f82ec4d | 475 | $(AM_V_GEN)cd $(srcdir) && BUILDDIR=$(abs_builddir)/ doxygen Doxyfile 2>/dev/null |
580ed400 ML |
476 | |
477 | bindings/cxx/enums.cpp: bindings/cxx/enums.timestamp | |
478 | ||
161dc24d | 479 | bindings/cxx/include/libsigrokcxx/enums.hpp: bindings/cxx/enums.timestamp |
c23c8659 | 480 | |
b595a458 | 481 | bindings/cxx/enums.timestamp: $(srcdir)/bindings/cxx/enums.py doxy/xml/index.xml \ |
c23c8659 | 482 | bindings/cxx/ConfigKey_methods.cpp bindings/cxx/QuantityFlag_methods.cpp |
b595a458 | 483 | $(AM_V_GEN)$(PYTHON) $(srcdir)/bindings/cxx/enums.py doxy/xml/index.xml |
f2a189f0 | 484 | $(AM_V_at)touch $@ |
c23c8659 | 485 | |
580ed400 ML |
486 | bindings/cxx/classes.lo: bindings/cxx/classes.cpp bindings/cxx/enums.cpp \ |
487 | $(library_include_HEADERS) | |
c23c8659 | 488 | |
580ed400 | 489 | cxx-clean: |
3532ed01 | 490 | rm -rf doxy/ |
bd4fda24 | 491 | rm -rf bindings/cxx/doxy/ |
580ed400 | 492 | rm -f bindings/cxx/enums.cpp |
161dc24d | 493 | rm -f bindings/cxx/include/libsigrokcxx/enums.hpp |
580ed400 | 494 | rm -f bindings/cxx/enums.timestamp |
c23c8659 | 495 | |
580ed400 ML |
496 | CLEAN_EXTRA += cxx-clean |
497 | ||
498 | endif | |
f7740954 | 499 | |
bd4fda24 ML |
500 | CPPXMLDOC = bindings/cxx/doxy/xml/index.xml |
501 | ||
161dc24d | 502 | $(CPPXMLDOC): bindings/cxx/include/libsigrokcxx/libsigrokcxx.hpp \ |
bd4fda24 | 503 | bindings/cxx/enums.timestamp |
33c84e81 | 504 | $(AM_V_GEN)cd $(srcdir)/bindings/cxx && BUILDDIR=$(abs_builddir)/bindings/cxx/ doxygen Doxyfile 2>/dev/null |
bd4fda24 | 505 | |
f7740954 ML |
506 | if BINDINGS_PYTHON |
507 | ||
d1785122 | 508 | PDIR = bindings/python |
bd4fda24 ML |
509 | PDOC = bindings/python/sigrok/core/doc.i |
510 | ||
511 | $(PDOC): bindings/swig/doc.py $(CPPXMLDOC) | |
f3256bb7 | 512 | $(AM_V_at)test -d $(PDIR)/sigrok/core || $(MKDIR_P) $(PDIR)/sigrok/core |
da89e23a | 513 | $(AM_V_GEN)$(PYTHON) $< python $(CPPXMLDOC) > $@ |
d1785122 ML |
514 | |
515 | python-build: $(PDIR)/timestamp | |
516 | ||
c26162ff | 517 | python-quietclean: |
da89e23a | 518 | $(AM_V_at)cd $(PDIR) && $(PYTHON) $(abs_srcdir)/$(PDIR)/setup.py --quiet clean --all 3>&1 1>&2 2>&3 \ |
c26162ff | 519 | | grep -v "can.t clean it"; true |
8eb10b62 | 520 | |
52ff4f6a | 521 | $(PDIR)/timestamp: bindings/cxx/libsigrokcxx.la $(PDIR)/sigrok/core/classes.i \ |
bd4fda24 | 522 | bindings/swig/classes.i $(PDOC) $(library_include_HEADERS) |
c26162ff | 523 | $(AM_V_at)$(MAKE) python-quietclean |
da89e23a | 524 | $(AM_V_GEN)cd $(PDIR) && $(PYTHON) $(abs_srcdir)/$(PDIR)/setup.py --quiet build 3>&1 1>&2 2>&3 \ |
c26162ff | 525 | | grep -v "command line option.*Wstrict-prototypes"; true |
f2a189f0 | 526 | $(AM_V_at)touch $(PDIR)/timestamp |
f7740954 | 527 | |
6ae53625 JP |
528 | $(DESTDIR)$(prefix): |
529 | $(MKDIR_P) $@ | |
530 | ||
531 | python-install: $(DESTDIR)$(prefix) | |
532 | cd $(PDIR) && $(PYTHON) $(abs_srcdir)/$(PDIR)/setup.py --quiet install --prefix $(prefix) `test "$(DESTDIR)" && echo --root=$(DESTDIR)` | |
f7740954 | 533 | |
c26162ff BV |
534 | python-clean: |
535 | $(AM_V_at)$(MAKE) python-quietclean | |
f2a189f0 | 536 | $(AM_V_at)rm -f $(PDIR)/timestamp |
6a8c1d68 ML |
537 | $(AM_V_at)rm -rf $(PDIR)/doxy/ |
538 | ||
539 | python-doc: | |
0e1a7fe9 | 540 | $(AM_V_at)cd $(srcdir)/$(PDIR) && BUILDDIR=$(abs_builddir)/$(PDIR)/ doxygen Doxyfile 2>/dev/null |
f7740954 ML |
541 | |
542 | BUILD_EXTRA += python-build | |
543 | INSTALL_EXTRA += python-install | |
544 | CLEAN_EXTRA += python-clean | |
545 | ||
546 | endif | |
547 | ||
9fcf4d0b ML |
548 | if BINDINGS_JAVA |
549 | ||
550 | JDIR = bindings/java | |
90bd7656 ML |
551 | JPKG = org/sigrok/core |
552 | JCLS = $(JDIR)/$(JPKG)/classes | |
553 | JINT = $(JDIR)/$(JPKG)/interfaces | |
33c84e81 | 554 | JSRC = $(JCLS)/*.java $(srcdir)/$(JINT)/*.java |
90bd7656 | 555 | JSWG = $(JCLS)/classes.i |
bd4fda24 | 556 | JDOC = $(JCLS)/doc.i |
90bd7656 | 557 | JCXX = $(JCLS)/classes_wrap.cxx |
9fcf4d0b ML |
558 | JLIB = $(JDIR)/libsigrok_java_core_classes.so |
559 | JJAR = $(JDIR)/sigrok-core.jar | |
560 | ||
561 | java-build: $(JJAR) $(JLIB) | |
562 | ||
bd4fda24 | 563 | $(JDOC): bindings/swig/doc.py $(CPPXMLDOC) |
f3256bb7 | 564 | $(AM_V_at)test -d $(JCLS) || $(MKDIR_P) $(JCLS) |
33c84e81 | 565 | $(AM_V_GEN)python $< java $(CPPXMLDOC) > $@ |
bd4fda24 ML |
566 | |
567 | $(JCXX): $(JSWG) $(JDOC) bindings/swig/classes.i $(library_include_HEADERS) | |
f1830b22 | 568 | $(AM_V_at)make java-clean |
f2a189f0 | 569 | $(AM_V_GEN)swig -c++ -java -package org.sigrok.core.classes \ |
33c84e81 | 570 | -I$(srcdir)/include -I$(srcdir)/bindings/cxx/include -I$(srcdir) -I$(JCLS) -Ibindings/cxx/include -outdir $(JCLS) -o $@ $< |
9fcf4d0b | 571 | |
90bd7656 | 572 | $(JJAR): $(JCXX) |
33c84e81 | 573 | $(AM_V_GEN)$(JAVAC) -sourcepath $(JDIR) -d $(JDIR) $(JSRC) |
f2a189f0 | 574 | $(AM_V_at)jar cf $(JJAR) -C $(JDIR) $(JPKG) |
9fcf4d0b | 575 | |
52ff4f6a | 576 | $(JLIB): $(JCXX) bindings/cxx/libsigrokcxx.la $(library_include_HEADERS) |
d1a5f737 | 577 | $(AM_V_GEN)$(CXXCOMPILE) -L.libs -Lbindings/cxx/.libs \ |
90bd7656 | 578 | -fno-strict-aliasing -fPIC -shared $(JCLS)/classes_wrap.cxx \ |
52ff4f6a | 579 | -lsigrokcxx -o $(JLIB) |
9fcf4d0b ML |
580 | |
581 | java-install: | |
582 | $(INSTALL) -d $(libdir)/jni | |
583 | $(INSTALL) $(JLIB) -t $(libdir)/jni | |
584 | $(INSTALL) -d $(datadir)/java | |
585 | $(INSTALL) $(JJAR) -t $(datadir)/java | |
586 | ||
587 | java-clean: | |
2fe07d3f BV |
588 | $(AM_V_at)rm -f $(JCXX) |
589 | $(AM_V_at)rm -f $(JCLS)/*.java | |
590 | $(AM_V_at)rm -f $(JCLS)/*.class | |
591 | $(AM_V_at)rm -f $(JINT)/*.class | |
592 | $(AM_V_at)rm -f $(JJAR) | |
593 | $(AM_V_at)rm -f $(JLIB) | |
594 | $(AM_V_at)rm -rf $(JDIR)/doxy/ | |
8a314e90 ML |
595 | |
596 | java-doc: | |
33c84e81 | 597 | $(AM_V_at)cd $(srcdir)/$(JDIR) && BUILDDIR=$(abs_builddir)/$(JDIR)/ doxygen Doxyfile 2>/dev/null |
9fcf4d0b ML |
598 | |
599 | BUILD_EXTRA += java-build | |
600 | INSTALL_EXTRA += java-install | |
601 | CLEAN_EXTRA += java-clean | |
602 | ||
603 | endif | |
604 | ||
f7740954 ML |
605 | all-local: $(BUILD_EXTRA) |
606 | install-exec-local: $(INSTALL_EXTRA) | |
d1785122 | 607 | clean-local: $(CLEAN_EXTRA) |
f7740954 | 608 | |
c0958408 | 609 | MAINTAINERCLEANFILES = ChangeLog |
0fc12d66 UH |
610 | |
611 | .PHONY: ChangeLog | |
612 | ChangeLog: | |
bd58d8f3 | 613 | git --git-dir $(top_srcdir)/.git log > ChangeLog || touch ChangeLog |
0fc12d66 UH |
614 | |
615 | dist-hook: ChangeLog | |
616 |