]>
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 | |
ea1d5351 | 21 | ACLOCAL_AMFLAGS = -I m4 |
ba1c29dc | 22 | AM_LIBTOOLFLAGS = --silent |
bcc3694f | 23 | GNUMAKEFLAGS = --no-print-directory |
ba1c29dc DE |
24 | |
25 | FIRMWARE_DIR = $(datadir)/sigrok-firmware | |
826938d8 | 26 | |
9ac018d0 | 27 | local_includes = -Iinclude -I$(srcdir)/include -I$(srcdir)/src -I. |
1f61c22f | 28 | if BINDINGS_CXX |
4cf2f34f | 29 | local_includes += -Ibindings/cxx/include -I$(srcdir)/bindings/cxx/include -Ibindings/cxx |
1f61c22f DE |
30 | endif |
31 | # Ensure that local include directories are always searched first. | |
56c8705e | 32 | AM_CPPFLAGS = $(local_includes) -DFIRMWARE_DIR='"$(FIRMWARE_DIR)"' |
340f6e7a | 33 | |
65489c1a | 34 | # The tests CFLAGS are a superset of the libsigrok CFLAGS, and the |
1f61c22f | 35 | # python bindings CFLAGS are a superset of the C++ bindings CFLAGS. |
65489c1a | 36 | AM_CFLAGS = $(SR_EXTRA_CFLAGS) $(SR_WFLAGS) $(TESTS_CFLAGS) |
4cf2f34f | 37 | AM_CXXFLAGS = $(SR_WXXFLAGS) $(PYSIGROK_CFLAGS) |
1f61c22f | 38 | |
8a7b47cd | 39 | lib_LTLIBRARIES = libsigrok.la |
a1bb33af | 40 | |
67bd8055 | 41 | # Backend files |
a695d6c0 | 42 | libsigrok_la_SOURCES = \ |
155b680d BV |
43 | src/backend.c \ |
44 | src/device.c \ | |
45 | src/session.c \ | |
46 | src/session_file.c \ | |
47 | src/session_driver.c \ | |
48 | src/drivers.c \ | |
49 | src/hwdriver.c \ | |
50 | src/trigger.c \ | |
51 | src/soft-trigger.c \ | |
fb019a0e | 52 | src/analog.c \ |
24287ea9 | 53 | src/fallback.c \ |
155b680d BV |
54 | src/strutil.c \ |
55 | src/log.c \ | |
56 | src/version.c \ | |
57 | src/error.c \ | |
58 | src/std.c | |
960a75e4 | 59 | |
155b680d BV |
60 | # Input modules |
61 | libsigrok_la_SOURCES += \ | |
155b680d | 62 | src/input/input.c \ |
b84cba4d | 63 | src/input/binary.c \ |
02e24c0c | 64 | src/input/chronovu_la8.c \ |
41d214f6 | 65 | src/input/csv.c \ |
7db06394 | 66 | src/input/vcd.c \ |
155b680d | 67 | src/input/wav.c |
67bd8055 | 68 | |
155b680d BV |
69 | # Output modules |
70 | libsigrok_la_SOURCES += \ | |
71 | src/output/output.c \ | |
72 | src/output/analog.c \ | |
73 | src/output/ascii.c \ | |
74 | src/output/bits.c \ | |
75 | src/output/binary.c \ | |
76 | src/output/csv.c \ | |
77 | src/output/chronovu_la8.c \ | |
afaa75b9 | 78 | src/output/wav.c \ |
155b680d BV |
79 | src/output/gnuplot.c \ |
80 | src/output/hex.c \ | |
81 | src/output/ols.c \ | |
3250d8c7 | 82 | src/output/srzip.c \ |
155b680d | 83 | src/output/vcd.c |
67bd8055 | 84 | |
988357ca UH |
85 | # Transform modules |
86 | libsigrok_la_SOURCES += \ | |
39f1752e | 87 | src/transform/transform.c \ |
43caa466 | 88 | src/transform/nop.c \ |
d74d30bb UH |
89 | src/transform/scale.c \ |
90 | src/transform/invert.c | |
988357ca | 91 | |
155b680d | 92 | # SCPI support |
67bd8055 | 93 | libsigrok_la_SOURCES += \ |
155b680d | 94 | src/scpi/scpi.c \ |
91ef511d | 95 | src/scpi/helpers.c \ |
155b680d | 96 | src/scpi/scpi_tcp.c |
67bd8055 UH |
97 | if NEED_RPC |
98 | libsigrok_la_SOURCES += \ | |
155b680d BV |
99 | src/scpi/scpi_vxi.c \ |
100 | src/scpi/vxi_clnt.c \ | |
101 | src/scpi/vxi_xdr.c \ | |
102 | src/scpi/vxi.h | |
67bd8055 UH |
103 | endif |
104 | if NEED_SERIAL | |
105 | libsigrok_la_SOURCES += \ | |
155b680d BV |
106 | src/serial.c \ |
107 | src/scpi/scpi_serial.c | |
67bd8055 UH |
108 | endif |
109 | if NEED_USB | |
110 | libsigrok_la_SOURCES += \ | |
155b680d BV |
111 | src/ezusb.c \ |
112 | src/usb.c \ | |
113 | src/scpi/scpi_usbtmc_libusb.c | |
67bd8055 UH |
114 | endif |
115 | if NEED_VISA | |
116 | libsigrok_la_SOURCES += \ | |
155b680d | 117 | src/scpi/scpi_visa.c |
67bd8055 | 118 | endif |
bb2a4ed4 ML |
119 | if NEED_GPIB |
120 | libsigrok_la_SOURCES += \ | |
7343ad1e | 121 | src/scpi/scpi_libgpib.c |
bb2a4ed4 | 122 | endif |
67bd8055 | 123 | |
f54ebe0c | 124 | # Modbus support |
daa39012 AJ |
125 | libsigrok_la_SOURCES += \ |
126 | src/modbus/modbus.c | |
4c938fc2 AJ |
127 | if NEED_SERIAL |
128 | libsigrok_la_SOURCES += \ | |
129 | src/modbus/modbus_serial_rtu.c | |
130 | endif | |
daa39012 | 131 | |
155b680d BV |
132 | # Hardware (DMM chip parsers) |
133 | libsigrok_la_SOURCES += \ | |
134 | src/dmm/es519xx.c \ | |
135 | src/dmm/fs9721.c \ | |
136 | src/dmm/fs9922.c \ | |
137 | src/dmm/m2110.c \ | |
138 | src/dmm/metex14.c \ | |
a24c3f4a | 139 | src/dmm/rs9lcd.c \ |
626027df | 140 | src/dmm/bm25x.c \ |
f3cde309 | 141 | src/dmm/ut71x.c \ |
c36f78f7 UH |
142 | src/dmm/ut372.c \ |
143 | src/dmm/vc870.c | |
67bd8055 | 144 | |
6bcb3ee8 | 145 | # Hardware (LCR chip parsers) |
d378f100 | 146 | if NEED_SERIAL |
6bcb3ee8 JH |
147 | libsigrok_la_SOURCES += \ |
148 | src/lcr/es51919.c | |
d378f100 | 149 | endif |
6bcb3ee8 | 150 | |
e5d953b5 UH |
151 | # Hardware (Scale protocol parsers) |
152 | libsigrok_la_SOURCES += \ | |
153 | src/scale/kern.c | |
154 | ||
67bd8055 UH |
155 | # Hardware drivers |
156 | if HW_AGILENT_DMM | |
157 | libsigrok_la_SOURCES += \ | |
155b680d BV |
158 | src/hardware/agilent-dmm/api.c \ |
159 | src/hardware/agilent-dmm/agilent-dmm.h \ | |
160 | src/hardware/agilent-dmm/sched.c | |
67bd8055 | 161 | endif |
67bd8055 UH |
162 | if HW_APPA_55II |
163 | libsigrok_la_SOURCES += \ | |
155b680d BV |
164 | src/hardware/appa-55ii/protocol.h \ |
165 | src/hardware/appa-55ii/protocol.c \ | |
166 | src/hardware/appa-55ii/api.c | |
67bd8055 UH |
167 | endif |
168 | if HW_ASIX_SIGMA | |
169 | libsigrok_la_SOURCES += \ | |
155b680d BV |
170 | src/hardware/asix-sigma/asix-sigma.h \ |
171 | src/hardware/asix-sigma/asix-sigma.c | |
67bd8055 UH |
172 | endif |
173 | if HW_ATTEN_PPS3XXX | |
174 | libsigrok_la_SOURCES += \ | |
155b680d BV |
175 | src/hardware/atten-pps3xxx/protocol.h \ |
176 | src/hardware/atten-pps3xxx/protocol.c \ | |
177 | src/hardware/atten-pps3xxx/api.c | |
67bd8055 | 178 | endif |
dfaee1de BG |
179 | if HW_BAYLIBRE_ACME |
180 | libsigrok_la_SOURCES += \ | |
181 | src/hardware/baylibre-acme/protocol.h \ | |
182 | src/hardware/baylibre-acme/protocol.c \ | |
289eebd7 BG |
183 | src/hardware/baylibre-acme/api.c \ |
184 | src/hardware/baylibre-acme/gpio.h \ | |
185 | src/hardware/baylibre-acme/gpio.c | |
dfaee1de | 186 | endif |
bb993797 KA |
187 | if HW_BEAGLELOGIC |
188 | libsigrok_la_SOURCES += \ | |
3db4b08b | 189 | src/hardware/beaglelogic/beaglelogic.h \ |
155b680d BV |
190 | src/hardware/beaglelogic/protocol.h \ |
191 | src/hardware/beaglelogic/protocol.c \ | |
192 | src/hardware/beaglelogic/api.c | |
bb993797 | 193 | endif |
67bd8055 UH |
194 | if HW_BRYMEN_BM86X |
195 | libsigrok_la_SOURCES += \ | |
155b680d BV |
196 | src/hardware/brymen-bm86x/protocol.h \ |
197 | src/hardware/brymen-bm86x/protocol.c \ | |
198 | src/hardware/brymen-bm86x/api.c | |
67bd8055 UH |
199 | endif |
200 | if HW_BRYMEN_DMM | |
201 | libsigrok_la_SOURCES += \ | |
155b680d BV |
202 | src/hardware/brymen-dmm/parser.c \ |
203 | src/hardware/brymen-dmm/protocol.h \ | |
204 | src/hardware/brymen-dmm/protocol.c \ | |
205 | src/hardware/brymen-dmm/api.c | |
67bd8055 UH |
206 | endif |
207 | if HW_CEM_DT_885X | |
208 | libsigrok_la_SOURCES += \ | |
155b680d BV |
209 | src/hardware/cem-dt-885x/protocol.h \ |
210 | src/hardware/cem-dt-885x/protocol.c \ | |
211 | src/hardware/cem-dt-885x/api.c | |
67bd8055 UH |
212 | endif |
213 | if HW_CENTER_3XX | |
214 | libsigrok_la_SOURCES += \ | |
155b680d BV |
215 | src/hardware/center-3xx/protocol.h \ |
216 | src/hardware/center-3xx/protocol.c \ | |
217 | src/hardware/center-3xx/api.c | |
67bd8055 | 218 | endif |
7b356712 | 219 | if HW_CHRONOVU_LA |
67bd8055 | 220 | libsigrok_la_SOURCES += \ |
155b680d BV |
221 | src/hardware/chronovu-la/protocol.h \ |
222 | src/hardware/chronovu-la/protocol.c \ | |
223 | src/hardware/chronovu-la/api.c | |
67bd8055 UH |
224 | endif |
225 | if HW_COLEAD_SLM | |
226 | libsigrok_la_SOURCES += \ | |
155b680d BV |
227 | src/hardware/colead-slm/protocol.h \ |
228 | src/hardware/colead-slm/protocol.c \ | |
229 | src/hardware/colead-slm/api.c | |
67bd8055 UH |
230 | endif |
231 | if HW_CONRAD_DIGI_35_CPU | |
232 | libsigrok_la_SOURCES += \ | |
155b680d BV |
233 | src/hardware/conrad-digi-35-cpu/protocol.h \ |
234 | src/hardware/conrad-digi-35-cpu/protocol.c \ | |
235 | src/hardware/conrad-digi-35-cpu/api.c | |
67bd8055 UH |
236 | endif |
237 | if HW_DEMO | |
238 | libsigrok_la_SOURCES += \ | |
155b680d | 239 | src/hardware/demo/demo.c |
67bd8055 | 240 | endif |
b5089195 JH |
241 | if HW_DEREE_DE5000 |
242 | libsigrok_la_SOURCES += \ | |
243 | src/hardware/deree-de5000/api.c | |
244 | endif | |
67bd8055 UH |
245 | if HW_FLUKE_DMM |
246 | libsigrok_la_SOURCES += \ | |
155b680d BV |
247 | src/hardware/fluke-dmm/fluke-dmm.h \ |
248 | src/hardware/fluke-dmm/fluke.c \ | |
249 | src/hardware/fluke-dmm/api.c | |
67bd8055 UH |
250 | endif |
251 | if HW_FX2LAFW | |
252 | libsigrok_la_SOURCES += \ | |
155b680d BV |
253 | src/hardware/fx2lafw/protocol.h \ |
254 | src/hardware/fx2lafw/protocol.c \ | |
a7d7f93c | 255 | src/hardware/fx2lafw/api.c \ |
b9d53092 BV |
256 | src/hardware/fx2lafw/dslogic.c \ |
257 | src/hardware/fx2lafw/dslogic.h | |
67bd8055 UH |
258 | endif |
259 | if HW_GMC_MH_1X_2X | |
260 | libsigrok_la_SOURCES += \ | |
155b680d BV |
261 | src/hardware/gmc-mh-1x-2x/protocol.h \ |
262 | src/hardware/gmc-mh-1x-2x/protocol.c \ | |
263 | src/hardware/gmc-mh-1x-2x/api.c | |
67bd8055 UH |
264 | endif |
265 | if HW_HAMEG_HMO | |
266 | libsigrok_la_SOURCES += \ | |
155b680d BV |
267 | src/hardware/hameg-hmo/protocol.h \ |
268 | src/hardware/hameg-hmo/protocol.c \ | |
269 | src/hardware/hameg-hmo/api.c | |
67bd8055 UH |
270 | endif |
271 | if HW_HANTEK_DSO | |
272 | libsigrok_la_SOURCES += \ | |
155b680d BV |
273 | src/hardware/hantek-dso/dso.h \ |
274 | src/hardware/hantek-dso/dso.c \ | |
275 | src/hardware/hantek-dso/api.c | |
67bd8055 | 276 | endif |
05ac4a98 DG |
277 | if HW_HUNG_CHANG_DSO_2100 |
278 | libsigrok_la_SOURCES += \ | |
279 | src/hardware/hung-chang-dso-2100/protocol.h \ | |
280 | src/hardware/hung-chang-dso-2100/protocol.c \ | |
281 | src/hardware/hung-chang-dso-2100/api.c | |
282 | endif | |
67bd8055 UH |
283 | if HW_IKALOGIC_SCANALOGIC2 |
284 | libsigrok_la_SOURCES += \ | |
155b680d BV |
285 | src/hardware/ikalogic-scanalogic2/protocol.h \ |
286 | src/hardware/ikalogic-scanalogic2/protocol.c \ | |
287 | src/hardware/ikalogic-scanalogic2/api.c | |
67bd8055 UH |
288 | endif |
289 | if HW_IKALOGIC_SCANAPLUS | |
290 | libsigrok_la_SOURCES += \ | |
155b680d BV |
291 | src/hardware/ikalogic-scanaplus/protocol.h \ |
292 | src/hardware/ikalogic-scanaplus/protocol.c \ | |
293 | src/hardware/ikalogic-scanaplus/api.c | |
67bd8055 UH |
294 | endif |
295 | if HW_KECHENG_KC_330B | |
296 | libsigrok_la_SOURCES += \ | |
155b680d BV |
297 | src/hardware/kecheng-kc-330b/protocol.h \ |
298 | src/hardware/kecheng-kc-330b/protocol.c \ | |
299 | src/hardware/kecheng-kc-330b/api.c | |
67bd8055 | 300 | endif |
9380ec2f UH |
301 | if HW_KERN_SCALE |
302 | libsigrok_la_SOURCES += \ | |
303 | src/hardware/kern-scale/protocol.h \ | |
304 | src/hardware/kern-scale/protocol.c \ | |
305 | src/hardware/kern-scale/api.c | |
306 | endif | |
67bd8055 UH |
307 | if HW_LASCAR_EL_USB |
308 | libsigrok_la_SOURCES += \ | |
155b680d BV |
309 | src/hardware/lascar-el-usb/protocol.h \ |
310 | src/hardware/lascar-el-usb/protocol.c \ | |
311 | src/hardware/lascar-el-usb/api.c | |
67bd8055 | 312 | endif |
8f4e922f UH |
313 | if HW_MANSON_HCS_3XXX |
314 | libsigrok_la_SOURCES += \ | |
155b680d BV |
315 | src/hardware/manson-hcs-3xxx/protocol.h \ |
316 | src/hardware/manson-hcs-3xxx/protocol.c \ | |
317 | src/hardware/manson-hcs-3xxx/api.c | |
8f4e922f | 318 | endif |
e1ccfb19 AJ |
319 | if HW_MAYNUO_M97 |
320 | libsigrok_la_SOURCES += \ | |
321 | src/hardware/maynuo-m97/protocol.h \ | |
322 | src/hardware/maynuo-m97/protocol.c \ | |
323 | src/hardware/maynuo-m97/api.c | |
324 | endif | |
67bd8055 UH |
325 | if HW_MIC_985XX |
326 | libsigrok_la_SOURCES += \ | |
155b680d BV |
327 | src/hardware/mic-985xx/protocol.h \ |
328 | src/hardware/mic-985xx/protocol.c \ | |
329 | src/hardware/mic-985xx/api.c | |
67bd8055 | 330 | endif |
41b7bd01 MH |
331 | if HW_MOTECH_LPS_30X |
332 | libsigrok_la_SOURCES += \ | |
155b680d BV |
333 | src/hardware/motech-lps-30x/protocol.h \ |
334 | src/hardware/motech-lps-30x/protocol.c \ | |
335 | src/hardware/motech-lps-30x/api.c | |
41b7bd01 | 336 | endif |
67bd8055 UH |
337 | if HW_NORMA_DMM |
338 | libsigrok_la_SOURCES += \ | |
155b680d BV |
339 | src/hardware/norma-dmm/protocol.h \ |
340 | src/hardware/norma-dmm/protocol.c \ | |
341 | src/hardware/norma-dmm/api.c | |
67bd8055 | 342 | endif |
d4b38748 | 343 | if HW_OPENBENCH_LOGIC_SNIFFER |
67bd8055 | 344 | libsigrok_la_SOURCES += \ |
155b680d BV |
345 | src/hardware/openbench-logic-sniffer/protocol.h \ |
346 | src/hardware/openbench-logic-sniffer/protocol.c \ | |
347 | src/hardware/openbench-logic-sniffer/api.c | |
67bd8055 | 348 | endif |
4bd80e12 | 349 | if HW_PIPISTRELLO_OLS |
350 | libsigrok_la_SOURCES += \ | |
351 | src/hardware/pipistrello-ols/protocol.h \ | |
352 | src/hardware/pipistrello-ols/protocol.c \ | |
353 | src/hardware/pipistrello-ols/api.c | |
354 | endif | |
67bd8055 UH |
355 | if HW_RIGOL_DS |
356 | libsigrok_la_SOURCES += \ | |
155b680d BV |
357 | src/hardware/rigol-ds/protocol.h \ |
358 | src/hardware/rigol-ds/protocol.c \ | |
359 | src/hardware/rigol-ds/api.c | |
67bd8055 UH |
360 | endif |
361 | if HW_SALEAE_LOGIC16 | |
362 | libsigrok_la_SOURCES += \ | |
155b680d BV |
363 | src/hardware/saleae-logic16/protocol.h \ |
364 | src/hardware/saleae-logic16/protocol.c \ | |
365 | src/hardware/saleae-logic16/api.c | |
67bd8055 | 366 | endif |
ca1a7cb5 BV |
367 | if HW_SCPI_PPS |
368 | libsigrok_la_SOURCES += \ | |
369 | src/hardware/scpi-pps/protocol.h \ | |
370 | src/hardware/scpi-pps/protocol.c \ | |
d4eabea8 | 371 | src/hardware/scpi-pps/profiles.c \ |
ca1a7cb5 BV |
372 | src/hardware/scpi-pps/api.c |
373 | endif | |
67bd8055 UH |
374 | if HW_SERIAL_DMM |
375 | libsigrok_la_SOURCES += \ | |
155b680d BV |
376 | src/hardware/serial-dmm/protocol.h \ |
377 | src/hardware/serial-dmm/protocol.c \ | |
378 | src/hardware/serial-dmm/api.c | |
67bd8055 UH |
379 | endif |
380 | if HW_SYSCLK_LWLA | |
381 | libsigrok_la_SOURCES += \ | |
155b680d BV |
382 | src/hardware/sysclk-lwla/lwla.h \ |
383 | src/hardware/sysclk-lwla/lwla.c \ | |
384 | src/hardware/sysclk-lwla/protocol.h \ | |
385 | src/hardware/sysclk-lwla/protocol.c \ | |
386 | src/hardware/sysclk-lwla/api.c | |
67bd8055 UH |
387 | endif |
388 | if HW_TELEINFO | |
389 | libsigrok_la_SOURCES += \ | |
155b680d BV |
390 | src/hardware/teleinfo/protocol.h \ |
391 | src/hardware/teleinfo/protocol.c \ | |
392 | src/hardware/teleinfo/api.c | |
67bd8055 | 393 | endif |
0acdd793 BV |
394 | if HW_TESTO |
395 | libsigrok_la_SOURCES += \ | |
155b680d BV |
396 | src/hardware/testo/protocol.h \ |
397 | src/hardware/testo/protocol.c \ | |
398 | src/hardware/testo/api.c | |
0acdd793 | 399 | endif |
67bd8055 UH |
400 | if HW_TONDAJ_SL_814 |
401 | libsigrok_la_SOURCES += \ | |
155b680d BV |
402 | src/hardware/tondaj-sl-814/protocol.h \ |
403 | src/hardware/tondaj-sl-814/protocol.c \ | |
404 | src/hardware/tondaj-sl-814/api.c | |
67bd8055 UH |
405 | endif |
406 | if HW_UNI_T_DMM | |
407 | libsigrok_la_SOURCES += \ | |
155b680d BV |
408 | src/hardware/uni-t-dmm/protocol.h \ |
409 | src/hardware/uni-t-dmm/protocol.c \ | |
410 | src/hardware/uni-t-dmm/api.c | |
67bd8055 UH |
411 | endif |
412 | if HW_UNI_T_UT32X | |
413 | libsigrok_la_SOURCES += \ | |
155b680d BV |
414 | src/hardware/uni-t-ut32x/protocol.h \ |
415 | src/hardware/uni-t-ut32x/protocol.c \ | |
416 | src/hardware/uni-t-ut32x/api.c | |
67bd8055 UH |
417 | endif |
418 | if HW_VICTOR_DMM | |
419 | libsigrok_la_SOURCES += \ | |
155b680d BV |
420 | src/hardware/victor-dmm/protocol.h \ |
421 | src/hardware/victor-dmm/protocol.c \ | |
422 | src/hardware/victor-dmm/api.c | |
67bd8055 | 423 | endif |
10763937 SA |
424 | if HW_YOKOGAWA_DLM |
425 | libsigrok_la_SOURCES += \ | |
426 | src/hardware/yokogawa-dlm/protocol.h \ | |
427 | src/hardware/yokogawa-dlm/protocol.c \ | |
428 | src/hardware/yokogawa-dlm/protocol_wrappers.h \ | |
429 | src/hardware/yokogawa-dlm/protocol_wrappers.c \ | |
430 | src/hardware/yokogawa-dlm/api.c | |
431 | endif | |
67bd8055 UH |
432 | if HW_ZEROPLUS_LOGIC_CUBE |
433 | libsigrok_la_SOURCES += \ | |
155b680d BV |
434 | src/hardware/zeroplus-logic-cube/analyzer.c \ |
435 | src/hardware/zeroplus-logic-cube/analyzer.h \ | |
436 | src/hardware/zeroplus-logic-cube/gl_usb.h \ | |
437 | src/hardware/zeroplus-logic-cube/gl_usb.c \ | |
438 | src/hardware/zeroplus-logic-cube/protocol.h \ | |
439 | src/hardware/zeroplus-logic-cube/protocol.c \ | |
440 | src/hardware/zeroplus-logic-cube/api.c | |
67bd8055 UH |
441 | endif |
442 | ||
bc8ff24d | 443 | libsigrok_la_LIBADD = $(SR_EXTRA_LIBS) $(LIBSIGROK_LIBS) |
1f61c22f | 444 | libsigrok_la_LDFLAGS = -version-info $(SR_LIB_VERSION) -no-undefined |
ff101fca | 445 | |
45c59c8b | 446 | library_includedir = $(includedir)/libsigrok |
63d0fb75 ML |
447 | library_include_HEADERS = \ |
448 | include/libsigrok/libsigrok.h \ | |
122322a9 DE |
449 | include/libsigrok/proto.h |
450 | nodist_library_include_HEADERS = \ | |
63d0fb75 | 451 | include/libsigrok/version.h |
155b680d | 452 | noinst_HEADERS = src/libsigrok-internal.h |
a1bb33af | 453 | |
8a7b47cd UH |
454 | pkgconfigdir = $(libdir)/pkgconfig |
455 | pkgconfig_DATA = libsigrok.pc | |
d658e348 | 456 | |
67bd8055 UH |
457 | EXTRA_DIST = \ |
458 | Doxyfile \ | |
459 | HACKING \ | |
460 | README.devices \ | |
31ac7735 DE |
461 | bindings/cxx/ConfigKey_methods.cpp \ |
462 | bindings/cxx/ConfigKey_methods.hpp \ | |
463 | bindings/cxx/ConfigKey_methods.i \ | |
464 | bindings/cxx/Doxyfile \ | |
465 | bindings/cxx/QuantityFlag_methods.cpp \ | |
466 | bindings/cxx/QuantityFlag_methods.hpp \ | |
467 | bindings/cxx/enums.py \ | |
468 | bindings/python/Doxyfile \ | |
469 | bindings/python/setup.py \ | |
470 | bindings/python/sigrok/__init__.py \ | |
471 | bindings/python/sigrok/core/__init__.py \ | |
472 | bindings/python/sigrok/core/classes.i \ | |
473 | bindings/java/Doxyfile \ | |
474 | bindings/java/org/sigrok/core/classes/classes.i \ | |
475 | bindings/java/org/sigrok/core/interfaces/DatafeedCallback.java \ | |
476 | bindings/java/org/sigrok/core/interfaces/LogCallback.java \ | |
477 | bindings/java/org/sigrok/core/interfaces/SourceCallback.java \ | |
478 | bindings/swig/classes.i \ | |
479 | bindings/swig/doc.py \ | |
67bd8055 UH |
480 | contrib/gnuplot_chronovu_la8.gpi \ |
481 | contrib/gnuplot_rigol_ds1xx2.gpi \ | |
482 | contrib/gnuplot_usbeesx.gpi \ | |
483 | contrib/gnuplot_usbeedx8.gpi \ | |
484 | contrib/gnuplot_usbeedx16.gpi \ | |
485 | contrib/sigrok-logo-notext.png \ | |
486 | contrib/z60_libsigrok.rules | |
487 | ||
488 | if HAVE_CHECK | |
02a2bf68 | 489 | TESTS = tests/main |
67bd8055 | 490 | check_PROGRAMS = ${TESTS} |
65489c1a | 491 | endif |
67bd8055 | 492 | |
02a2bf68 | 493 | tests_main_SOURCES = \ |
6592c369 | 494 | include/libsigrok/libsigrok.h \ |
67bd8055 UH |
495 | tests/lib.c \ |
496 | tests/lib.h \ | |
02a2bf68 UH |
497 | tests/main.c \ |
498 | tests/core.c \ | |
499 | tests/input_all.c \ | |
500 | tests/input_binary.c \ | |
501 | tests/output_all.c \ | |
502 | tests/transform_all.c \ | |
503 | tests/session.c \ | |
504 | tests/strutil.c \ | |
505 | tests/version.c \ | |
506 | tests/driver_all.c \ | |
507 | tests/device.c \ | |
508 | tests/trigger.c | |
509 | ||
65489c1a | 510 | tests_main_LDADD = libsigrok.la $(SR_EXTRA_LIBS) $(TESTS_LIBS) |
dd8b5f56 | 511 | |
580ed400 ML |
512 | BUILD_EXTRA = |
513 | INSTALL_EXTRA = | |
514 | CLEAN_EXTRA = | |
515 | ||
c23c8659 ML |
516 | if BINDINGS_CXX |
517 | ||
52ff4f6a | 518 | lib_LTLIBRARIES += bindings/cxx/libsigrokcxx.la |
c23c8659 | 519 | |
52ff4f6a | 520 | bindings_cxx_libsigrokcxx_la_SOURCES = bindings/cxx/classes.cpp |
c23c8659 | 521 | |
bc8ff24d | 522 | bindings_cxx_libsigrokcxx_la_LIBADD = libsigrok.la $(SR_EXTRA_LIBS) $(LIBSIGROKCXX_LIBS) |
1f61c22f | 523 | bindings_cxx_libsigrokcxx_la_LDFLAGS = -version-info $(SR_LIB_VERSION) -no-undefined |
fc8f82e9 | 524 | |
0959ed3d UH |
525 | bindings_cxx_libsigrokcxx_la_includedir = $(includedir)/libsigrokcxx |
526 | bindings_cxx_libsigrokcxx_la_include_HEADERS = \ | |
122322a9 DE |
527 | bindings/cxx/include/libsigrokcxx/libsigrokcxx.hpp |
528 | nodist_bindings_cxx_libsigrokcxx_la_include_HEADERS = \ | |
161dc24d | 529 | bindings/cxx/include/libsigrokcxx/enums.hpp |
c23c8659 | 530 | |
52ff4f6a | 531 | pkgconfig_DATA += bindings/cxx/libsigrokcxx.pc |
c23c8659 | 532 | |
3532ed01 | 533 | doxy/xml/index.xml: include/libsigrok/libsigrok.h |
7f82ec4d | 534 | $(AM_V_GEN)cd $(srcdir) && BUILDDIR=$(abs_builddir)/ doxygen Doxyfile 2>/dev/null |
580ed400 | 535 | |
cf5b338e | 536 | bindings/swig/enums.i: bindings/cxx/enums.timestamp |
580ed400 | 537 | bindings/cxx/enums.cpp: bindings/cxx/enums.timestamp |
161dc24d | 538 | bindings/cxx/include/libsigrokcxx/enums.hpp: bindings/cxx/enums.timestamp |
c23c8659 | 539 | |
b595a458 | 540 | bindings/cxx/enums.timestamp: $(srcdir)/bindings/cxx/enums.py doxy/xml/index.xml \ |
c23c8659 | 541 | bindings/cxx/ConfigKey_methods.cpp bindings/cxx/QuantityFlag_methods.cpp |
b595a458 | 542 | $(AM_V_GEN)$(PYTHON) $(srcdir)/bindings/cxx/enums.py doxy/xml/index.xml |
f2a189f0 | 543 | $(AM_V_at)touch $@ |
c23c8659 | 544 | |
580ed400 | 545 | bindings/cxx/classes.lo: bindings/cxx/classes.cpp bindings/cxx/enums.cpp \ |
cf5b338e | 546 | $(library_include_HEADERS) $(nodist_library_include_HEADERS) |
c23c8659 | 547 | |
580ed400 | 548 | cxx-clean: |
3532ed01 | 549 | rm -rf doxy/ |
bd4fda24 | 550 | rm -rf bindings/cxx/doxy/ |
580ed400 | 551 | rm -f bindings/cxx/enums.cpp |
161dc24d | 552 | rm -f bindings/cxx/include/libsigrokcxx/enums.hpp |
580ed400 | 553 | rm -f bindings/cxx/enums.timestamp |
c23c8659 | 554 | |
580ed400 ML |
555 | CLEAN_EXTRA += cxx-clean |
556 | ||
557 | endif | |
f7740954 | 558 | |
bd4fda24 ML |
559 | CPPXMLDOC = bindings/cxx/doxy/xml/index.xml |
560 | ||
161dc24d | 561 | $(CPPXMLDOC): bindings/cxx/include/libsigrokcxx/libsigrokcxx.hpp \ |
bd4fda24 | 562 | bindings/cxx/enums.timestamp |
33c84e81 | 563 | $(AM_V_GEN)cd $(srcdir)/bindings/cxx && BUILDDIR=$(abs_builddir)/bindings/cxx/ doxygen Doxyfile 2>/dev/null |
bd4fda24 | 564 | |
f7740954 ML |
565 | if BINDINGS_PYTHON |
566 | ||
d1785122 | 567 | PDIR = bindings/python |
bd4fda24 ML |
568 | PDOC = bindings/python/sigrok/core/doc.i |
569 | ||
c05a0ba5 DE |
570 | setup_vars = VERSION='$(PACKAGE_VERSION)' CC='$(CXX)' CFLAGS='$(AM_CXXFLAGS) $(CXXFLAGS)' LDADD='$(PYSIGROK_LIBS)' |
571 | setup_quiet = --quiet | |
572 | setup_py = $(PYTHON) $(srcdir)/$(PDIR)/setup.py $(setup_vars) $(setup_quiet) | |
a9cb82ac | 573 | |
dbde3b65 | 574 | $(PDOC): $(srcdir)/bindings/swig/doc.py $(CPPXMLDOC) |
f3256bb7 | 575 | $(AM_V_at)test -d $(PDIR)/sigrok/core || $(MKDIR_P) $(PDIR)/sigrok/core |
dbde3b65 | 576 | $(AM_V_GEN)$(PYTHON) $(srcdir)/bindings/swig/doc.py python $(CPPXMLDOC) > $@ |
d1785122 ML |
577 | |
578 | python-build: $(PDIR)/timestamp | |
579 | ||
fd31865e | 580 | $(PDIR)/timestamp: $(PDIR)/sigrok/core/classes.i \ |
cf5b338e | 581 | bindings/swig/classes.i bindings/swig/enums.i $(PDOC) \ |
fd31865e ML |
582 | $(library_include_HEADERS) $(nodist_library_include_HEADERS) \ |
583 | $(bindings_cxx_libsigrokcxx_la_include_HEADERS) \ | |
584 | $(nodist_bindings_cxx_libsigrokcxx_la_include_HEADERS) \ | |
ba3070ff | 585 | @ORDER@ bindings/cxx/libsigrokcxx.la |
a9cb82ac DE |
586 | $(AM_V_at)$(setup_py) clean --all 2>/dev/null |
587 | $(AM_V_GEN)$(setup_py) build_ext --swig "$(SWIG)" build_py | |
588 | $(AM_V_at): >$@ | |
f7740954 | 589 | |
a9cb82ac DE |
590 | python-install: |
591 | $(AM_V_at)$(MKDIR_P) "$(DESTDIR)$(prefix)" "$(DESTDIR)$(exec_prefix)" | |
452986be DE |
592 | destdir='$(DESTDIR)'; $(setup_py) install $${destdir:+"--root=$$destdir"} \ |
593 | --prefix "$(prefix)" --exec-prefix "$(exec_prefix)" | |
f7740954 | 594 | |
c26162ff | 595 | python-clean: |
a9cb82ac DE |
596 | -$(AM_V_at)rm -f $(PDIR)/timestamp |
597 | -$(AM_V_at)rm -fr $(PDIR)/doxy | |
c05a0ba5 | 598 | -$(AM_V_at)$(setup_py) clean --all 2>/dev/null |
6a8c1d68 ML |
599 | |
600 | python-doc: | |
a9cb82ac | 601 | $(AM_V_at)cd $(srcdir)/$(PDIR) && BUILDDIR="$(abs_builddir)/$(PDIR)/" doxygen Doxyfile 2>/dev/null |
f7740954 ML |
602 | |
603 | BUILD_EXTRA += python-build | |
604 | INSTALL_EXTRA += python-install | |
605 | CLEAN_EXTRA += python-clean | |
606 | ||
607 | endif | |
608 | ||
9fcf4d0b ML |
609 | if BINDINGS_JAVA |
610 | ||
611 | JDIR = bindings/java | |
90bd7656 ML |
612 | JPKG = org/sigrok/core |
613 | JCLS = $(JDIR)/$(JPKG)/classes | |
614 | JINT = $(JDIR)/$(JPKG)/interfaces | |
33c84e81 | 615 | JSRC = $(JCLS)/*.java $(srcdir)/$(JINT)/*.java |
90bd7656 | 616 | JSWG = $(JCLS)/classes.i |
bd4fda24 | 617 | JDOC = $(JCLS)/doc.i |
90bd7656 | 618 | JCXX = $(JCLS)/classes_wrap.cxx |
9fcf4d0b ML |
619 | JLIB = $(JDIR)/libsigrok_java_core_classes.so |
620 | JJAR = $(JDIR)/sigrok-core.jar | |
621 | ||
a9cb82ac DE |
622 | java_cleanfiles = $(JCXX) $(JCLS)/*.java $(JCLS)/*.class $(JINT)/*.class $(JJAR) $(JLIB) |
623 | ||
9fcf4d0b ML |
624 | java-build: $(JJAR) $(JLIB) |
625 | ||
dbde3b65 | 626 | $(JDOC): $(srcdir)/bindings/swig/doc.py $(CPPXMLDOC) |
f3256bb7 | 627 | $(AM_V_at)test -d $(JCLS) || $(MKDIR_P) $(JCLS) |
dbde3b65 | 628 | $(AM_V_GEN)$(PYTHON) $(srcdir)/bindings/swig/doc.py java $(CPPXMLDOC) > $@ |
bd4fda24 | 629 | |
dbde3b65 | 630 | $(JCXX): $(srcdir)/$(JSWG) $(JDOC) bindings/swig/classes.i bindings/swig/enums.i \ |
fd31865e ML |
631 | $(bindings_cxx_libsigrokcxx_la_include_HEADERS) \ |
632 | $(nodist_bindings_cxx_libsigrokcxx_la_include_HEADERS) | |
a9cb82ac | 633 | -$(AM_V_at)rm -f $(java_cleanfiles) |
3f03ffaf | 634 | $(AM_V_GEN)$(SWIG) -c++ -java -package org.sigrok.core.classes \ |
dbde3b65 DE |
635 | -Ibindings -I$(JCLS) $(local_includes) -I$(srcdir) $(JNI_CPPFLAGS) \ |
636 | -outdir $(JCLS) -o $@ $(srcdir)/$(JSWG) | |
9fcf4d0b | 637 | |
90bd7656 | 638 | $(JJAR): $(JCXX) |
1f61c22f | 639 | $(AM_V_GEN)$(JAVAC) -d $(JDIR) $(JSRC) |
f2a189f0 | 640 | $(AM_V_at)jar cf $(JJAR) -C $(JDIR) $(JPKG) |
9fcf4d0b | 641 | |
fd31865e ML |
642 | $(JLIB): $(JCXX) \ |
643 | $(library_include_HEADERS) $(nodist_library_include_HEADERS) \ | |
644 | $(bindings_cxx_libsigrokcxx_la_include_HEADERS) \ | |
645 | $(nodist_bindings_cxx_libsigrokcxx_la_include_HEADERS) \ | |
ba3070ff | 646 | @ORDER@ bindings/cxx/libsigrokcxx.la |
1f61c22f | 647 | $(AM_V_GEN)$(CXXCOMPILE) $(JNI_CPPFLAGS) -L.libs -Lbindings/cxx/.libs \ |
90bd7656 | 648 | -fno-strict-aliasing -fPIC -shared $(JCLS)/classes_wrap.cxx \ |
1f61c22f | 649 | -lsigrokcxx $(LIBSIGROKCXX_LIBS) -o $(JLIB) |
9fcf4d0b ML |
650 | |
651 | java-install: | |
df705a7a JP |
652 | $(INSTALL) -d $(DESTDIR)$(libdir)/jni |
653 | $(INSTALL) $(JLIB) -t $(DESTDIR)$(libdir)/jni | |
654 | $(INSTALL) -d $(DESTDIR)$(datadir)/java | |
655 | $(INSTALL) $(JJAR) -t $(DESTDIR)$(datadir)/java | |
9fcf4d0b ML |
656 | |
657 | java-clean: | |
a9cb82ac DE |
658 | -$(AM_V_at)rm -f $(java_cleanfiles) |
659 | -$(AM_V_at)rm -fr $(JDIR)/doxy | |
8a314e90 ML |
660 | |
661 | java-doc: | |
a9cb82ac | 662 | $(AM_V_at)cd $(srcdir)/$(JDIR) && BUILDDIR="$(abs_builddir)/$(JDIR)/" doxygen Doxyfile |
9fcf4d0b ML |
663 | |
664 | BUILD_EXTRA += java-build | |
665 | INSTALL_EXTRA += java-install | |
666 | CLEAN_EXTRA += java-clean | |
667 | ||
668 | endif | |
669 | ||
f7740954 ML |
670 | all-local: $(BUILD_EXTRA) |
671 | install-exec-local: $(INSTALL_EXTRA) | |
d1785122 | 672 | clean-local: $(CLEAN_EXTRA) |
f7740954 | 673 | |
c0958408 | 674 | MAINTAINERCLEANFILES = ChangeLog |
0fc12d66 UH |
675 | |
676 | .PHONY: ChangeLog | |
677 | ChangeLog: | |
3182d4eb | 678 | git --git-dir '$(top_srcdir)/.git' log >$@ || touch $@ |
0fc12d66 UH |
679 | |
680 | dist-hook: ChangeLog | |
681 |