]>
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 | 24 | |
9448951d DE |
25 | # distutils/setuptools cause trouble on distcheck. Disable for now. |
26 | DISTCHECK_CONFIGURE_FLAGS = --disable-python | |
27 | ||
5bce22ac GS |
28 | CLEAN_EXTRA = |
29 | ||
ba1c29dc | 30 | FIRMWARE_DIR = $(datadir)/sigrok-firmware |
826938d8 | 31 | |
a3fe36d0 | 32 | local_includes = -Iinclude -I$(srcdir)/include -I$(srcdir)/src -I. @RPC_CFLAGS@ |
1f61c22f | 33 | if BINDINGS_CXX |
4cf2f34f | 34 | local_includes += -Ibindings/cxx/include -I$(srcdir)/bindings/cxx/include -Ibindings/cxx |
1f61c22f | 35 | endif |
655b116c DE |
36 | # Do not hard-code the firmware location on Windows. |
37 | if WIN32 | |
38 | global_defs = | |
39 | else | |
40 | global_defs = -DFIRMWARE_DIR='"$(FIRMWARE_DIR)"' | |
41 | endif | |
1f61c22f | 42 | # Ensure that local include directories are always searched first. |
655b116c | 43 | AM_CPPFLAGS = $(local_includes) $(global_defs) |
340f6e7a | 44 | |
65489c1a | 45 | # The tests CFLAGS are a superset of the libsigrok CFLAGS, and the |
1f61c22f | 46 | # python bindings CFLAGS are a superset of the C++ bindings CFLAGS. |
b9cd0c6a GS |
47 | SR_MINILZO_CFLAGS = -DMINILZO_HAVE_CONFIG_H |
48 | AM_CFLAGS = $(SR_EXTRA_CFLAGS) $(SR_WFLAGS) $(SR_MINILZO_CFLAGS) $(TESTS_CFLAGS) | |
0441038e | 49 | AM_CXXFLAGS = $(SR_WXXFLAGS) $(LIBSIGROKCXX_CFLAGS) |
1f61c22f | 50 | |
8a7b47cd | 51 | lib_LTLIBRARIES = libsigrok.la |
a1bb33af | 52 | |
67bd8055 | 53 | # Backend files |
a695d6c0 | 54 | libsigrok_la_SOURCES = \ |
155b680d | 55 | src/backend.c \ |
18698b40 | 56 | src/binary_helpers.c \ |
6ad2fbaa | 57 | src/conversion.c \ |
4ea012bd | 58 | src/crc.c \ |
155b680d BV |
59 | src/device.c \ |
60 | src/session.c \ | |
61 | src/session_file.c \ | |
62 | src/session_driver.c \ | |
155b680d BV |
63 | src/hwdriver.c \ |
64 | src/trigger.c \ | |
65 | src/soft-trigger.c \ | |
fb019a0e | 66 | src/analog.c \ |
24287ea9 | 67 | src/fallback.c \ |
bee24666 | 68 | src/resource.c \ |
155b680d BV |
69 | src/strutil.c \ |
70 | src/log.c \ | |
71 | src/version.c \ | |
72 | src/error.c \ | |
aea4e458 | 73 | src/std.c \ |
fcab496c GS |
74 | src/sw_limits.c \ |
75 | src/tcp.c | |
960a75e4 | 76 | |
b9cd0c6a GS |
77 | # Support code, shared among input and driver modules |
78 | libsigrok_la_SOURCES += \ | |
15a67999 GS |
79 | src/minilzo/minilzo.c \ |
80 | src/minilzo/minilzo.h \ | |
81 | src/minilzo/lzoconf.h \ | |
82 | src/minilzo/lzodefs.h | |
b9cd0c6a | 83 | |
155b680d BV |
84 | # Input modules |
85 | libsigrok_la_SOURCES += \ | |
155b680d | 86 | src/input/input.c \ |
47a102f9 | 87 | src/input/feed_queue.c \ |
b84cba4d | 88 | src/input/binary.c \ |
02e24c0c | 89 | src/input/chronovu_la8.c \ |
41d214f6 | 90 | src/input/csv.c \ |
e1b115bd | 91 | src/input/logicport.c \ |
ff7f7f73 | 92 | src/input/protocoldata.c \ |
e6b15cb5 | 93 | src/input/raw_analog.c \ |
d891892d | 94 | src/input/saleae.c \ |
6d2897e3 | 95 | src/input/trace32_ad.c \ |
7db06394 | 96 | src/input/vcd.c \ |
2003be8c UH |
97 | src/input/wav.c \ |
98 | src/input/null.c | |
e4c9ea56 GS |
99 | if HAVE_INPUT_STF |
100 | libsigrok_la_SOURCES += \ | |
101 | src/input/stf.c | |
102 | endif | |
67bd8055 | 103 | |
155b680d BV |
104 | # Output modules |
105 | libsigrok_la_SOURCES += \ | |
106 | src/output/output.c \ | |
107 | src/output/analog.c \ | |
108 | src/output/ascii.c \ | |
109 | src/output/bits.c \ | |
110 | src/output/binary.c \ | |
111 | src/output/csv.c \ | |
112 | src/output/chronovu_la8.c \ | |
afaa75b9 | 113 | src/output/wav.c \ |
155b680d BV |
114 | src/output/hex.c \ |
115 | src/output/ols.c \ | |
3250d8c7 | 116 | src/output/srzip.c \ |
1af7497d | 117 | src/output/vcd.c \ |
40f812f5 | 118 | src/output/wavedrom.c \ |
1af7497d | 119 | src/output/null.c |
67bd8055 | 120 | |
988357ca UH |
121 | # Transform modules |
122 | libsigrok_la_SOURCES += \ | |
39f1752e | 123 | src/transform/transform.c \ |
43caa466 | 124 | src/transform/nop.c \ |
d74d30bb UH |
125 | src/transform/scale.c \ |
126 | src/transform/invert.c | |
988357ca | 127 | |
155b680d | 128 | # SCPI support |
67bd8055 | 129 | libsigrok_la_SOURCES += \ |
0a9d05dc | 130 | src/scpi.h \ |
155b680d BV |
131 | src/scpi/scpi.c \ |
132 | src/scpi/scpi_tcp.c | |
67bd8055 UH |
133 | if NEED_RPC |
134 | libsigrok_la_SOURCES += \ | |
155b680d BV |
135 | src/scpi/scpi_vxi.c \ |
136 | src/scpi/vxi_clnt.c \ | |
137 | src/scpi/vxi_xdr.c \ | |
138 | src/scpi/vxi.h | |
67bd8055 | 139 | endif |
7c8ae47d GS |
140 | # if HAVE_BLUETOOTH |
141 | libsigrok_la_SOURCES += \ | |
142 | src/bt/bt_bluez.c | |
143 | # endif | |
67bd8055 UH |
144 | if NEED_SERIAL |
145 | libsigrok_la_SOURCES += \ | |
155b680d | 146 | src/serial.c \ |
b79c3422 | 147 | src/serial_bt.c \ |
4417074c | 148 | src/serial_hid.c \ |
4c660b46 | 149 | src/serial_hid.h \ |
a10284cd | 150 | src/serial_hid_bu86x.c \ |
828eeea2 | 151 | src/serial_hid_ch9325.c \ |
616bc3a1 | 152 | src/serial_hid_cp2110.c \ |
0cdb72c8 | 153 | src/serial_hid_victor.c \ |
ae4c1fb6 | 154 | src/serial_libsp.c \ |
c4f0fdab | 155 | src/serial_tcpraw.c \ |
155b680d | 156 | src/scpi/scpi_serial.c |
7fd8a8f7 GS |
157 | else |
158 | libsigrok_la_SOURCES += \ | |
159 | src/serial.c | |
67bd8055 UH |
160 | endif |
161 | if NEED_USB | |
162 | libsigrok_la_SOURCES += \ | |
155b680d BV |
163 | src/ezusb.c \ |
164 | src/usb.c \ | |
165 | src/scpi/scpi_usbtmc_libusb.c | |
67bd8055 UH |
166 | endif |
167 | if NEED_VISA | |
168 | libsigrok_la_SOURCES += \ | |
155b680d | 169 | src/scpi/scpi_visa.c |
67bd8055 | 170 | endif |
bb2a4ed4 ML |
171 | if NEED_GPIB |
172 | libsigrok_la_SOURCES += \ | |
7343ad1e | 173 | src/scpi/scpi_libgpib.c |
bb2a4ed4 | 174 | endif |
67bd8055 | 175 | |
f54ebe0c | 176 | # Modbus support |
daa39012 AJ |
177 | libsigrok_la_SOURCES += \ |
178 | src/modbus/modbus.c | |
4c938fc2 AJ |
179 | if NEED_SERIAL |
180 | libsigrok_la_SOURCES += \ | |
181 | src/modbus/modbus_serial_rtu.c | |
182 | endif | |
daa39012 | 183 | |
155b680d BV |
184 | # Hardware (DMM chip parsers) |
185 | libsigrok_la_SOURCES += \ | |
bd10287e | 186 | src/dmm/asycii.c \ |
46caa76d | 187 | src/dmm/qm1578.c \ |
bd10287e | 188 | src/dmm/bm25x.c \ |
400bc4ff | 189 | src/dmm/bm52x.c \ |
27186eda | 190 | src/dmm/bm85x.c \ |
0759e2f5 | 191 | src/dmm/bm86x.c \ |
bd10287e | 192 | src/dmm/dtm0660.c \ |
1c3098aa | 193 | src/dmm/eev121gw.c \ |
155b680d BV |
194 | src/dmm/es519xx.c \ |
195 | src/dmm/fs9721.c \ | |
196 | src/dmm/fs9922.c \ | |
197 | src/dmm/m2110.c \ | |
198 | src/dmm/metex14.c \ | |
4c29bba1 | 199 | src/dmm/mm38xr.c \ |
dcd212f7 | 200 | src/dmm/ms2115b.c \ |
bd10287e | 201 | src/dmm/ms8250d.c \ |
a24c3f4a | 202 | src/dmm/rs9lcd.c \ |
c36f78f7 | 203 | src/dmm/ut372.c \ |
bd10287e | 204 | src/dmm/ut71x.c \ |
eed3dec8 | 205 | src/dmm/vc870.c \ |
9456d636 | 206 | src/dmm/vc96.c |
67bd8055 | 207 | |
6bcb3ee8 | 208 | # Hardware (LCR chip parsers) |
d378f100 | 209 | if NEED_SERIAL |
6bcb3ee8 | 210 | libsigrok_la_SOURCES += \ |
b50970a5 GS |
211 | src/lcr/es51919.c \ |
212 | src/lcr/vc4080.c | |
d378f100 | 213 | endif |
6bcb3ee8 | 214 | |
e5d953b5 UH |
215 | # Hardware (Scale protocol parsers) |
216 | libsigrok_la_SOURCES += \ | |
217 | src/scale/kern.c | |
218 | ||
67bd8055 | 219 | # Hardware drivers |
393375e1 MC |
220 | noinst_LTLIBRARIES = src/libdrivers.la \ |
221 | src/libdrivers_head.la src/libdrivers_tail.la | |
dd5c48a6 | 222 | |
393375e1 MC |
223 | src/libdrivers.o: src/libdrivers.la \ |
224 | src/libdrivers_head.la src/libdrivers_tail.la | |
225 | $(AM_V_CCLD)$(LINK) src/libdrivers_head.la src/libdrivers.la \ | |
226 | src/libdrivers_tail.la | |
5d8b3913 AJ |
227 | src/libdrivers.lo: src/libdrivers.o |
228 | $(AM_V_GEN)echo "# Generated by libtool" > $@ | |
229 | $(AM_V_at)echo "pic_object='libdrivers.o'" >> $@ | |
230 | $(AM_V_at)echo "non_pic_object='libdrivers.o'" >> $@ | |
231 | ||
393375e1 MC |
232 | src_libdrivers_head_la_SOURCES = src/driver_list_start.c |
233 | ||
234 | src_libdrivers_tail_la_SOURCES = src/driver_list_stop.c | |
235 | ||
5d8b3913 | 236 | src_libdrivers_la_SOURCES = src/drivers.c |
dd5c48a6 | 237 | |
67bd8055 | 238 | if HW_AGILENT_DMM |
5d8b3913 | 239 | src_libdrivers_la_SOURCES += \ |
6cf1a87b UH |
240 | src/hardware/agilent-dmm/protocol.h \ |
241 | src/hardware/agilent-dmm/protocol.c \ | |
242 | src/hardware/agilent-dmm/api.c | |
67bd8055 | 243 | endif |
67bd8055 | 244 | if HW_APPA_55II |
5d8b3913 | 245 | src_libdrivers_la_SOURCES += \ |
155b680d BV |
246 | src/hardware/appa-55ii/protocol.h \ |
247 | src/hardware/appa-55ii/protocol.c \ | |
248 | src/hardware/appa-55ii/api.c | |
67bd8055 | 249 | endif |
6e8d31d4 | 250 | if HW_ARACHNID_LABS_RE_LOAD_PRO |
5d8b3913 | 251 | src_libdrivers_la_SOURCES += \ |
6e8d31d4 UH |
252 | src/hardware/arachnid-labs-re-load-pro/protocol.h \ |
253 | src/hardware/arachnid-labs-re-load-pro/protocol.c \ | |
254 | src/hardware/arachnid-labs-re-load-pro/api.c | |
255 | endif | |
13f6da67 GS |
256 | if HW_ASIX_OMEGA_RTM_CLI |
257 | src_libdrivers_la_SOURCES += \ | |
258 | src/hardware/asix-omega-rtm-cli/protocol.h \ | |
259 | src/hardware/asix-omega-rtm-cli/protocol.c \ | |
260 | src/hardware/asix-omega-rtm-cli/api.c | |
261 | endif | |
67bd8055 | 262 | if HW_ASIX_SIGMA |
5d8b3913 | 263 | src_libdrivers_la_SOURCES += \ |
3ba56876 | 264 | src/hardware/asix-sigma/protocol.h \ |
265 | src/hardware/asix-sigma/protocol.c \ | |
266 | src/hardware/asix-sigma/api.c | |
67bd8055 | 267 | endif |
cc9653de MP |
268 | if HW_ATORCH |
269 | src_libdrivers_la_SOURCES += \ | |
270 | src/hardware/atorch/protocol.h \ | |
271 | src/hardware/atorch/protocol.c \ | |
272 | src/hardware/atorch/api.c | |
273 | endif | |
67bd8055 | 274 | if HW_ATTEN_PPS3XXX |
5d8b3913 | 275 | src_libdrivers_la_SOURCES += \ |
155b680d BV |
276 | src/hardware/atten-pps3xxx/protocol.h \ |
277 | src/hardware/atten-pps3xxx/protocol.c \ | |
278 | src/hardware/atten-pps3xxx/api.c | |
67bd8055 | 279 | endif |
dfaee1de | 280 | if HW_BAYLIBRE_ACME |
5d8b3913 | 281 | src_libdrivers_la_SOURCES += \ |
dfaee1de BG |
282 | src/hardware/baylibre-acme/protocol.h \ |
283 | src/hardware/baylibre-acme/protocol.c \ | |
289eebd7 BG |
284 | src/hardware/baylibre-acme/api.c \ |
285 | src/hardware/baylibre-acme/gpio.h \ | |
286 | src/hardware/baylibre-acme/gpio.c | |
dfaee1de | 287 | endif |
bb993797 | 288 | if HW_BEAGLELOGIC |
5d8b3913 | 289 | src_libdrivers_la_SOURCES += \ |
3db4b08b | 290 | src/hardware/beaglelogic/beaglelogic.h \ |
155b680d BV |
291 | src/hardware/beaglelogic/protocol.h \ |
292 | src/hardware/beaglelogic/protocol.c \ | |
88d2037b | 293 | src/hardware/beaglelogic/api.c \ |
9b2b3ef9 KA |
294 | src/hardware/beaglelogic/beaglelogic_native.c \ |
295 | src/hardware/beaglelogic/beaglelogic_tcp.c | |
bb993797 | 296 | endif |
67bd8055 | 297 | if HW_CEM_DT_885X |
5d8b3913 | 298 | src_libdrivers_la_SOURCES += \ |
155b680d BV |
299 | src/hardware/cem-dt-885x/protocol.h \ |
300 | src/hardware/cem-dt-885x/protocol.c \ | |
301 | src/hardware/cem-dt-885x/api.c | |
67bd8055 UH |
302 | endif |
303 | if HW_CENTER_3XX | |
5d8b3913 | 304 | src_libdrivers_la_SOURCES += \ |
155b680d BV |
305 | src/hardware/center-3xx/protocol.h \ |
306 | src/hardware/center-3xx/protocol.c \ | |
307 | src/hardware/center-3xx/api.c | |
67bd8055 | 308 | endif |
7b356712 | 309 | if HW_CHRONOVU_LA |
5d8b3913 | 310 | src_libdrivers_la_SOURCES += \ |
155b680d BV |
311 | src/hardware/chronovu-la/protocol.h \ |
312 | src/hardware/chronovu-la/protocol.c \ | |
313 | src/hardware/chronovu-la/api.c | |
67bd8055 UH |
314 | endif |
315 | if HW_COLEAD_SLM | |
5d8b3913 | 316 | src_libdrivers_la_SOURCES += \ |
155b680d BV |
317 | src/hardware/colead-slm/protocol.h \ |
318 | src/hardware/colead-slm/protocol.c \ | |
319 | src/hardware/colead-slm/api.c | |
67bd8055 UH |
320 | endif |
321 | if HW_CONRAD_DIGI_35_CPU | |
5d8b3913 | 322 | src_libdrivers_la_SOURCES += \ |
155b680d BV |
323 | src/hardware/conrad-digi-35-cpu/protocol.h \ |
324 | src/hardware/conrad-digi-35-cpu/protocol.c \ | |
325 | src/hardware/conrad-digi-35-cpu/api.c | |
67bd8055 | 326 | endif |
64d54a71 GS |
327 | if HW_DCTTECH_USBRELAY |
328 | src_libdrivers_la_SOURCES += \ | |
329 | src/hardware/dcttech-usbrelay/protocol.h \ | |
330 | src/hardware/dcttech-usbrelay/protocol.c \ | |
331 | src/hardware/dcttech-usbrelay/api.c | |
332 | endif | |
67bd8055 | 333 | if HW_DEMO |
5d8b3913 | 334 | src_libdrivers_la_SOURCES += \ |
ba508e22 UH |
335 | src/hardware/demo/protocol.h \ |
336 | src/hardware/demo/protocol.c \ | |
337 | src/hardware/demo/api.c | |
67bd8055 | 338 | endif |
c12ca361 GS |
339 | if HW_DEVANTECH_ETH008 |
340 | src_libdrivers_la_SOURCES += \ | |
341 | src/hardware/devantech-eth008/protocol.h \ | |
342 | src/hardware/devantech-eth008/protocol.c \ | |
343 | src/hardware/devantech-eth008/api.c | |
344 | endif | |
44b46d70 | 345 | if HW_DREAMSOURCELAB_DSLOGIC |
adcb9951 | 346 | src_libdrivers_la_SOURCES += \ |
44b46d70 UH |
347 | src/hardware/dreamsourcelab-dslogic/protocol.h \ |
348 | src/hardware/dreamsourcelab-dslogic/protocol.c \ | |
349 | src/hardware/dreamsourcelab-dslogic/api.c | |
adcb9951 | 350 | endif |
e756c595 J |
351 | if HW_FLUKE_45 |
352 | src_libdrivers_la_SOURCES += \ | |
353 | src/hardware/fluke-45/protocol.h \ | |
354 | src/hardware/fluke-45/protocol.c \ | |
355 | src/hardware/fluke-45/api.c | |
356 | endif | |
67bd8055 | 357 | if HW_FLUKE_DMM |
5d8b3913 | 358 | src_libdrivers_la_SOURCES += \ |
2cb232a9 UH |
359 | src/hardware/fluke-dmm/protocol.h \ |
360 | src/hardware/fluke-dmm/protocol.c \ | |
155b680d | 361 | src/hardware/fluke-dmm/api.c |
67bd8055 | 362 | endif |
f2273382 | 363 | if HW_FTDI_LA |
5d8b3913 | 364 | src_libdrivers_la_SOURCES += \ |
f2273382 UH |
365 | src/hardware/ftdi-la/protocol.h \ |
366 | src/hardware/ftdi-la/protocol.c \ | |
367 | src/hardware/ftdi-la/api.c | |
4f7fdcdd | 368 | endif |
67bd8055 | 369 | if HW_FX2LAFW |
5d8b3913 | 370 | src_libdrivers_la_SOURCES += \ |
155b680d BV |
371 | src/hardware/fx2lafw/protocol.h \ |
372 | src/hardware/fx2lafw/protocol.c \ | |
adcb9951 | 373 | src/hardware/fx2lafw/api.c |
67bd8055 UH |
374 | endif |
375 | if HW_GMC_MH_1X_2X | |
5d8b3913 | 376 | src_libdrivers_la_SOURCES += \ |
155b680d BV |
377 | src/hardware/gmc-mh-1x-2x/protocol.h \ |
378 | src/hardware/gmc-mh-1x-2x/protocol.c \ | |
379 | src/hardware/gmc-mh-1x-2x/api.c | |
67bd8055 | 380 | endif |
f594b3b0 GS |
381 | if HW_GREATFET |
382 | src_libdrivers_la_SOURCES += \ | |
383 | src/hardware/greatfet/protocol.h \ | |
384 | src/hardware/greatfet/protocol.c \ | |
385 | src/hardware/greatfet/api.c | |
386 | endif | |
7c198f96 | 387 | if HW_GWINSTEK_GDS_800 |
5d8b3913 | 388 | src_libdrivers_la_SOURCES += \ |
7c198f96 ML |
389 | src/hardware/gwinstek-gds-800/protocol.h \ |
390 | src/hardware/gwinstek-gds-800/protocol.c \ | |
391 | src/hardware/gwinstek-gds-800/api.c | |
392 | endif | |
b872ab7d BS |
393 | if HW_GWINSTEK_GPD |
394 | src_libdrivers_la_SOURCES += \ | |
395 | src/hardware/gwinstek-gpd/protocol.h \ | |
396 | src/hardware/gwinstek-gpd/protocol.c \ | |
397 | src/hardware/gwinstek-gpd/api.c | |
398 | endif | |
67bd8055 | 399 | if HW_HAMEG_HMO |
5d8b3913 | 400 | src_libdrivers_la_SOURCES += \ |
155b680d BV |
401 | src/hardware/hameg-hmo/protocol.h \ |
402 | src/hardware/hameg-hmo/protocol.c \ | |
403 | src/hardware/hameg-hmo/api.c | |
67bd8055 | 404 | endif |
6a25fa42 AZ |
405 | if HW_HANTEK_4032L |
406 | src_libdrivers_la_SOURCES += \ | |
407 | src/hardware/hantek-4032l/protocol.h \ | |
408 | src/hardware/hantek-4032l/protocol.c \ | |
409 | src/hardware/hantek-4032l/api.c | |
410 | endif | |
5089a143 AZ |
411 | if HW_HANTEK_6XXX |
412 | src_libdrivers_la_SOURCES += \ | |
413 | src/hardware/hantek-6xxx/protocol.h \ | |
414 | src/hardware/hantek-6xxx/protocol.c \ | |
415 | src/hardware/hantek-6xxx/api.c | |
416 | endif | |
67bd8055 | 417 | if HW_HANTEK_DSO |
5d8b3913 | 418 | src_libdrivers_la_SOURCES += \ |
caeb8d7a UH |
419 | src/hardware/hantek-dso/protocol.h \ |
420 | src/hardware/hantek-dso/protocol.c \ | |
155b680d | 421 | src/hardware/hantek-dso/api.c |
67bd8055 | 422 | endif |
00b2a092 | 423 | if HW_HP_3457A |
5d8b3913 | 424 | src_libdrivers_la_SOURCES += \ |
00b2a092 AG |
425 | src/hardware/hp-3457a/protocol.h \ |
426 | src/hardware/hp-3457a/protocol.c \ | |
427 | src/hardware/hp-3457a/api.c | |
428 | endif | |
1d9eebf4 FS |
429 | if HW_HP_3478A |
430 | src_libdrivers_la_SOURCES += \ | |
431 | src/hardware/hp-3478a/protocol.h \ | |
432 | src/hardware/hp-3478a/protocol.c \ | |
433 | src/hardware/hp-3478a/api.c | |
434 | endif | |
12e7abe2 FS |
435 | if HW_HP_59306A |
436 | src_libdrivers_la_SOURCES += \ | |
437 | src/hardware/hp-59306a/protocol.h \ | |
438 | src/hardware/hp-59306a/protocol.c \ | |
439 | src/hardware/hp-59306a/api.c | |
440 | endif | |
05ac4a98 | 441 | if HW_HUNG_CHANG_DSO_2100 |
5d8b3913 | 442 | src_libdrivers_la_SOURCES += \ |
05ac4a98 DG |
443 | src/hardware/hung-chang-dso-2100/protocol.h \ |
444 | src/hardware/hung-chang-dso-2100/protocol.c \ | |
445 | src/hardware/hung-chang-dso-2100/api.c | |
446 | endif | |
dfa92ad4 FS |
447 | if HW_ICSTATION_USBRELAY |
448 | src_libdrivers_la_SOURCES += \ | |
449 | src/hardware/icstation-usbrelay/protocol.h \ | |
450 | src/hardware/icstation-usbrelay/protocol.c \ | |
451 | src/hardware/icstation-usbrelay/api.c | |
452 | endif | |
67bd8055 | 453 | if HW_IKALOGIC_SCANALOGIC2 |
5d8b3913 | 454 | src_libdrivers_la_SOURCES += \ |
155b680d BV |
455 | src/hardware/ikalogic-scanalogic2/protocol.h \ |
456 | src/hardware/ikalogic-scanalogic2/protocol.c \ | |
457 | src/hardware/ikalogic-scanalogic2/api.c | |
67bd8055 UH |
458 | endif |
459 | if HW_IKALOGIC_SCANAPLUS | |
5d8b3913 | 460 | src_libdrivers_la_SOURCES += \ |
155b680d BV |
461 | src/hardware/ikalogic-scanaplus/protocol.h \ |
462 | src/hardware/ikalogic-scanaplus/protocol.c \ | |
463 | src/hardware/ikalogic-scanaplus/api.c | |
67bd8055 | 464 | endif |
8a9788e2 | 465 | if HW_IPDBG_LA |
a4210e18 | 466 | src_libdrivers_la_SOURCES += \ |
8a9788e2 UH |
467 | src/hardware/ipdbg-la/protocol.h \ |
468 | src/hardware/ipdbg-la/protocol.c \ | |
469 | src/hardware/ipdbg-la/api.c | |
a4210e18 | 470 | endif |
c16effae TK |
471 | if HW_ITECH_IT8500 |
472 | src_libdrivers_la_SOURCES += \ | |
473 | src/hardware/itech-it8500/protocol.h \ | |
474 | src/hardware/itech-it8500/protocol.c \ | |
475 | src/hardware/itech-it8500/api.c | |
476 | endif | |
b1fa9aac GS |
477 | if HW_JUNTEK_JDS6600 |
478 | src_libdrivers_la_SOURCES += \ | |
479 | src/hardware/juntek-jds6600/protocol.h \ | |
480 | src/hardware/juntek-jds6600/protocol.c \ | |
481 | src/hardware/juntek-jds6600/api.c | |
482 | endif | |
67bd8055 | 483 | if HW_KECHENG_KC_330B |
5d8b3913 | 484 | src_libdrivers_la_SOURCES += \ |
155b680d BV |
485 | src/hardware/kecheng-kc-330b/protocol.h \ |
486 | src/hardware/kecheng-kc-330b/protocol.c \ | |
487 | src/hardware/kecheng-kc-330b/api.c | |
67bd8055 | 488 | endif |
9380ec2f | 489 | if HW_KERN_SCALE |
5d8b3913 | 490 | src_libdrivers_la_SOURCES += \ |
9380ec2f UH |
491 | src/hardware/kern-scale/protocol.h \ |
492 | src/hardware/kern-scale/protocol.c \ | |
493 | src/hardware/kern-scale/api.c | |
494 | endif | |
f2cd2deb FS |
495 | if HW_KINGST_LA2016 |
496 | src_libdrivers_la_SOURCES += \ | |
497 | src/hardware/kingst-la2016/protocol.h \ | |
498 | src/hardware/kingst-la2016/protocol.c \ | |
499 | src/hardware/kingst-la2016/api.c | |
500 | endif | |
16fc7ee2 | 501 | if HW_KORAD_KAXXXXP |
5d8b3913 | 502 | src_libdrivers_la_SOURCES += \ |
16fc7ee2 UH |
503 | src/hardware/korad-kaxxxxp/protocol.h \ |
504 | src/hardware/korad-kaxxxxp/protocol.c \ | |
505 | src/hardware/korad-kaxxxxp/api.c | |
e75ee7de | 506 | endif |
67bd8055 | 507 | if HW_LASCAR_EL_USB |
5d8b3913 | 508 | src_libdrivers_la_SOURCES += \ |
155b680d BV |
509 | src/hardware/lascar-el-usb/protocol.h \ |
510 | src/hardware/lascar-el-usb/protocol.c \ | |
511 | src/hardware/lascar-el-usb/api.c | |
67bd8055 | 512 | endif |
c7b17bcb | 513 | if HW_LECROY_LOGICSTUDIO |
5d8b3913 | 514 | src_libdrivers_la_SOURCES += \ |
c7b17bcb TS |
515 | src/hardware/lecroy-logicstudio/protocol.h \ |
516 | src/hardware/lecroy-logicstudio/protocol.c \ | |
517 | src/hardware/lecroy-logicstudio/api.c | |
518 | endif | |
e3b83c5e SS |
519 | if HW_LECROY_XSTREAM |
520 | src_libdrivers_la_SOURCES += \ | |
521 | src/hardware/lecroy-xstream/protocol.h \ | |
522 | src/hardware/lecroy-xstream/protocol.c \ | |
523 | src/hardware/lecroy-xstream/api.c | |
524 | endif | |
8f4e922f | 525 | if HW_MANSON_HCS_3XXX |
5d8b3913 | 526 | src_libdrivers_la_SOURCES += \ |
155b680d BV |
527 | src/hardware/manson-hcs-3xxx/protocol.h \ |
528 | src/hardware/manson-hcs-3xxx/protocol.c \ | |
529 | src/hardware/manson-hcs-3xxx/api.c | |
8f4e922f | 530 | endif |
23669c3d DB |
531 | if HW_MASTECH_MS6514 |
532 | src_libdrivers_la_SOURCES += \ | |
533 | src/hardware/mastech-ms6514/protocol.h \ | |
534 | src/hardware/mastech-ms6514/protocol.c \ | |
535 | src/hardware/mastech-ms6514/api.c | |
536 | endif | |
e1ccfb19 | 537 | if HW_MAYNUO_M97 |
5d8b3913 | 538 | src_libdrivers_la_SOURCES += \ |
e1ccfb19 AJ |
539 | src/hardware/maynuo-m97/protocol.h \ |
540 | src/hardware/maynuo-m97/protocol.c \ | |
541 | src/hardware/maynuo-m97/api.c | |
542 | endif | |
a5c0259c GS |
543 | if HW_MICROCHIP_PICKIT2 |
544 | src_libdrivers_la_SOURCES += \ | |
545 | src/hardware/microchip-pickit2/protocol.h \ | |
546 | src/hardware/microchip-pickit2/protocol.c \ | |
547 | src/hardware/microchip-pickit2/api.c | |
548 | endif | |
67bd8055 | 549 | if HW_MIC_985XX |
5d8b3913 | 550 | src_libdrivers_la_SOURCES += \ |
155b680d BV |
551 | src/hardware/mic-985xx/protocol.h \ |
552 | src/hardware/mic-985xx/protocol.c \ | |
553 | src/hardware/mic-985xx/api.c | |
67bd8055 | 554 | endif |
ebcd1aba DH |
555 | if HW_MOOSHIMETER_DMM |
556 | src_libdrivers_la_SOURCES += \ | |
557 | src/hardware/mooshimeter-dmm/protocol.h \ | |
558 | src/hardware/mooshimeter-dmm/protocol.c \ | |
559 | src/hardware/mooshimeter-dmm/api.c | |
560 | endif | |
41b7bd01 | 561 | if HW_MOTECH_LPS_30X |
5d8b3913 | 562 | src_libdrivers_la_SOURCES += \ |
155b680d BV |
563 | src/hardware/motech-lps-30x/protocol.h \ |
564 | src/hardware/motech-lps-30x/protocol.c \ | |
565 | src/hardware/motech-lps-30x/api.c | |
41b7bd01 | 566 | endif |
67bd8055 | 567 | if HW_NORMA_DMM |
5d8b3913 | 568 | src_libdrivers_la_SOURCES += \ |
155b680d BV |
569 | src/hardware/norma-dmm/protocol.h \ |
570 | src/hardware/norma-dmm/protocol.c \ | |
571 | src/hardware/norma-dmm/api.c | |
67bd8055 | 572 | endif |
d4b38748 | 573 | if HW_OPENBENCH_LOGIC_SNIFFER |
5d8b3913 | 574 | src_libdrivers_la_SOURCES += \ |
155b680d BV |
575 | src/hardware/openbench-logic-sniffer/protocol.h \ |
576 | src/hardware/openbench-logic-sniffer/protocol.c \ | |
577 | src/hardware/openbench-logic-sniffer/api.c | |
67bd8055 | 578 | endif |
5a2c71cc | 579 | if HW_PCE_322A |
5d8b3913 | 580 | src_libdrivers_la_SOURCES += \ |
5a2c71cc GH |
581 | src/hardware/pce-322a/protocol.h \ |
582 | src/hardware/pce-322a/protocol.c \ | |
583 | src/hardware/pce-322a/api.c | |
584 | endif | |
4bd80e12 | 585 | if HW_PIPISTRELLO_OLS |
5d8b3913 | 586 | src_libdrivers_la_SOURCES += \ |
4bd80e12 | 587 | src/hardware/pipistrello-ols/protocol.h \ |
588 | src/hardware/pipistrello-ols/protocol.c \ | |
589 | src/hardware/pipistrello-ols/api.c | |
590 | endif | |
dc90146e A |
591 | if HW_RASPBERRYPI_PICO |
592 | src_libdrivers_la_SOURCES += \ | |
593 | src/hardware/raspberrypi-pico/protocol.h \ | |
594 | src/hardware/raspberrypi-pico/protocol.c \ | |
595 | src/hardware/raspberrypi-pico/api.c | |
596 | endif | |
0549416e JC |
597 | if HW_RDTECH_DPS |
598 | src_libdrivers_la_SOURCES += \ | |
599 | src/hardware/rdtech-dps/protocol.h \ | |
600 | src/hardware/rdtech-dps/protocol.c \ | |
601 | src/hardware/rdtech-dps/api.c | |
602 | endif | |
8b607a24 AS |
603 | if HW_RDTECH_UM |
604 | src_libdrivers_la_SOURCES += \ | |
605 | src/hardware/rdtech-um/protocol.h \ | |
606 | src/hardware/rdtech-um/protocol.c \ | |
607 | src/hardware/rdtech-um/api.c | |
608 | endif | |
cae33a58 AS |
609 | if HW_RDTECH_TC |
610 | src_libdrivers_la_SOURCES += \ | |
611 | src/hardware/rdtech-tc/protocol.h \ | |
612 | src/hardware/rdtech-tc/protocol.c \ | |
613 | src/hardware/rdtech-tc/api.c | |
614 | endif | |
068db0fb TK |
615 | if HW_RIGOL_DG |
616 | src_libdrivers_la_SOURCES += \ | |
617 | src/hardware/rigol-dg/protocol.h \ | |
618 | src/hardware/rigol-dg/protocol.c \ | |
619 | src/hardware/rigol-dg/api.c | |
620 | endif | |
67bd8055 | 621 | if HW_RIGOL_DS |
5d8b3913 | 622 | src_libdrivers_la_SOURCES += \ |
155b680d BV |
623 | src/hardware/rigol-ds/protocol.h \ |
624 | src/hardware/rigol-ds/protocol.c \ | |
625 | src/hardware/rigol-ds/api.c | |
67bd8055 | 626 | endif |
a28b3df1 VI |
627 | if HW_ROHDE_SCHWARZ_SME_0X |
628 | src_libdrivers_la_SOURCES += \ | |
629 | src/hardware/rohde-schwarz-sme-0x/protocol.h \ | |
630 | src/hardware/rohde-schwarz-sme-0x/protocol.c \ | |
631 | src/hardware/rohde-schwarz-sme-0x/api.c | |
632 | endif | |
67bd8055 | 633 | if HW_SALEAE_LOGIC16 |
5d8b3913 | 634 | src_libdrivers_la_SOURCES += \ |
155b680d BV |
635 | src/hardware/saleae-logic16/protocol.h \ |
636 | src/hardware/saleae-logic16/protocol.c \ | |
637 | src/hardware/saleae-logic16/api.c | |
67bd8055 | 638 | endif |
b6189f7c | 639 | if HW_SALEAE_LOGIC_PRO |
a8e913c4 | 640 | src_libdrivers_la_SOURCES += \ |
b6189f7c UH |
641 | src/hardware/saleae-logic-pro/protocol.h \ |
642 | src/hardware/saleae-logic-pro/protocol.c \ | |
643 | src/hardware/saleae-logic-pro/api.c | |
a8e913c4 | 644 | endif |
7a396ff5 GS |
645 | if HW_SCPI_DMM |
646 | src_libdrivers_la_SOURCES += \ | |
647 | src/hardware/scpi-dmm/protocol.h \ | |
648 | src/hardware/scpi-dmm/protocol.c \ | |
649 | src/hardware/scpi-dmm/api.c | |
650 | endif | |
ca1a7cb5 | 651 | if HW_SCPI_PPS |
5d8b3913 | 652 | src_libdrivers_la_SOURCES += \ |
ca1a7cb5 BV |
653 | src/hardware/scpi-pps/protocol.h \ |
654 | src/hardware/scpi-pps/protocol.c \ | |
d4eabea8 | 655 | src/hardware/scpi-pps/profiles.c \ |
ca1a7cb5 BV |
656 | src/hardware/scpi-pps/api.c |
657 | endif | |
67bd8055 | 658 | if HW_SERIAL_DMM |
5d8b3913 | 659 | src_libdrivers_la_SOURCES += \ |
155b680d BV |
660 | src/hardware/serial-dmm/protocol.h \ |
661 | src/hardware/serial-dmm/protocol.c \ | |
662 | src/hardware/serial-dmm/api.c | |
67bd8055 | 663 | endif |
503220ec GS |
664 | if HW_SERIAL_LCR |
665 | src_libdrivers_la_SOURCES += \ | |
bf5c4d46 GS |
666 | src/hardware/serial-lcr/protocol.h \ |
667 | src/hardware/serial-lcr/protocol.c \ | |
503220ec GS |
668 | src/hardware/serial-lcr/api.c |
669 | endif | |
89f5fab9 | 670 | if HW_SIGLENT_SDS |
671 | src_libdrivers_la_SOURCES += \ | |
672 | src/hardware/siglent-sds/protocol.h \ | |
673 | src/hardware/siglent-sds/protocol.c \ | |
674 | src/hardware/siglent-sds/api.c | |
675 | endif | |
67bd8055 | 676 | if HW_SYSCLK_LWLA |
5d8b3913 | 677 | src_libdrivers_la_SOURCES += \ |
155b680d BV |
678 | src/hardware/sysclk-lwla/lwla.h \ |
679 | src/hardware/sysclk-lwla/lwla.c \ | |
be64f90b DE |
680 | src/hardware/sysclk-lwla/lwla1016.c \ |
681 | src/hardware/sysclk-lwla/lwla1034.c \ | |
155b680d BV |
682 | src/hardware/sysclk-lwla/protocol.h \ |
683 | src/hardware/sysclk-lwla/protocol.c \ | |
684 | src/hardware/sysclk-lwla/api.c | |
67bd8055 | 685 | endif |
8da8c826 VV |
686 | if HW_SYSCLK_SLA5032 |
687 | src_libdrivers_la_SOURCES += \ | |
8da8c826 VV |
688 | src/hardware/sysclk-sla5032/protocol.h \ |
689 | src/hardware/sysclk-sla5032/protocol.c \ | |
690 | src/hardware/sysclk-sla5032/api.c | |
691 | endif | |
67bd8055 | 692 | if HW_TELEINFO |
5d8b3913 | 693 | src_libdrivers_la_SOURCES += \ |
155b680d BV |
694 | src/hardware/teleinfo/protocol.h \ |
695 | src/hardware/teleinfo/protocol.c \ | |
696 | src/hardware/teleinfo/api.c | |
67bd8055 | 697 | endif |
0acdd793 | 698 | if HW_TESTO |
5d8b3913 | 699 | src_libdrivers_la_SOURCES += \ |
155b680d BV |
700 | src/hardware/testo/protocol.h \ |
701 | src/hardware/testo/protocol.c \ | |
702 | src/hardware/testo/api.c | |
0acdd793 | 703 | endif |
67bd8055 | 704 | if HW_TONDAJ_SL_814 |
5d8b3913 | 705 | src_libdrivers_la_SOURCES += \ |
155b680d BV |
706 | src/hardware/tondaj-sl-814/protocol.h \ |
707 | src/hardware/tondaj-sl-814/protocol.c \ | |
708 | src/hardware/tondaj-sl-814/api.c | |
67bd8055 UH |
709 | endif |
710 | if HW_UNI_T_DMM | |
5d8b3913 | 711 | src_libdrivers_la_SOURCES += \ |
155b680d BV |
712 | src/hardware/uni-t-dmm/protocol.h \ |
713 | src/hardware/uni-t-dmm/protocol.c \ | |
714 | src/hardware/uni-t-dmm/api.c | |
67bd8055 | 715 | endif |
3094e9d8 GS |
716 | if HW_UNI_T_UT181A |
717 | src_libdrivers_la_SOURCES += \ | |
718 | src/hardware/uni-t-ut181a/protocol.h \ | |
719 | src/hardware/uni-t-ut181a/protocol.c \ | |
720 | src/hardware/uni-t-ut181a/api.c | |
721 | endif | |
67bd8055 | 722 | if HW_UNI_T_UT32X |
5d8b3913 | 723 | src_libdrivers_la_SOURCES += \ |
155b680d BV |
724 | src/hardware/uni-t-ut32x/protocol.h \ |
725 | src/hardware/uni-t-ut32x/protocol.c \ | |
726 | src/hardware/uni-t-ut32x/api.c | |
67bd8055 | 727 | endif |
10763937 | 728 | if HW_YOKOGAWA_DLM |
5d8b3913 | 729 | src_libdrivers_la_SOURCES += \ |
10763937 SA |
730 | src/hardware/yokogawa-dlm/protocol.h \ |
731 | src/hardware/yokogawa-dlm/protocol.c \ | |
732 | src/hardware/yokogawa-dlm/protocol_wrappers.h \ | |
733 | src/hardware/yokogawa-dlm/protocol_wrappers.c \ | |
734 | src/hardware/yokogawa-dlm/api.c | |
735 | endif | |
67bd8055 | 736 | if HW_ZEROPLUS_LOGIC_CUBE |
5d8b3913 | 737 | src_libdrivers_la_SOURCES += \ |
155b680d BV |
738 | src/hardware/zeroplus-logic-cube/analyzer.c \ |
739 | src/hardware/zeroplus-logic-cube/analyzer.h \ | |
740 | src/hardware/zeroplus-logic-cube/gl_usb.h \ | |
741 | src/hardware/zeroplus-logic-cube/gl_usb.c \ | |
742 | src/hardware/zeroplus-logic-cube/protocol.h \ | |
743 | src/hardware/zeroplus-logic-cube/protocol.c \ | |
744 | src/hardware/zeroplus-logic-cube/api.c | |
67bd8055 | 745 | endif |
c527132a SBO |
746 | if HW_ZKETECH_EBD_USB |
747 | src_libdrivers_la_SOURCES += \ | |
748 | src/hardware/zketech-ebd-usb/protocol.h \ | |
749 | src/hardware/zketech-ebd-usb/protocol.c \ | |
750 | src/hardware/zketech-ebd-usb/api.c | |
751 | endif | |
67bd8055 | 752 | |
5d8b3913 | 753 | libsigrok_la_LIBADD = src/libdrivers.lo $(SR_EXTRA_LIBS) $(LIBSIGROK_LIBS) |
1f61c22f | 754 | libsigrok_la_LDFLAGS = -version-info $(SR_LIB_VERSION) -no-undefined |
ff101fca | 755 | |
45c59c8b | 756 | library_includedir = $(includedir)/libsigrok |
63d0fb75 ML |
757 | library_include_HEADERS = \ |
758 | include/libsigrok/libsigrok.h \ | |
122322a9 DE |
759 | include/libsigrok/proto.h |
760 | nodist_library_include_HEADERS = \ | |
63d0fb75 | 761 | include/libsigrok/version.h |
155b680d | 762 | noinst_HEADERS = src/libsigrok-internal.h |
a1bb33af | 763 | |
5bce22ac GS |
764 | $(builddir)/src/version.lo: $(builddir)/include/libsigrok/git-version.h |
765 | ||
766 | # Create the git-version.h file even for non-versioned source trees, | |
767 | # to reduce complexity in the library code. Re-create the header file | |
768 | # when branches change, when revisions change, or upon re-configuration. | |
769 | # Use the verbatim tagged version number when applicable, or append the | |
770 | # "-git-<hash>[-dirty]" suffix for non-tagged source trees. | |
771 | if VCS_IS_GIT | |
772 | ||
773 | $(builddir)/include/libsigrok/git-version.h: Makefile $(VERSION_GITVERSION_DEPS) | |
774 | $(AM_V_GEN) \ | |
775 | HASH=`git -C "$(srcdir)" describe --match "@VERSION_TAG_MATCH@" --always --dirty` && \ | |
776 | HASH=`echo "$${HASH}" | sed 's/@VERSION_TAG_MATCH@-//'` && \ | |
777 | SUFFIX=`git -C "$(srcdir)" describe --match "@VERSION_TAG_MATCH@" --exact-match > /dev/null 2> /dev/null || echo "-$${HASH}"` && \ | |
778 | echo "#undef SR_PACKAGE_VERSION_STRING_SUFFIX" > $@ && \ | |
779 | echo "#define SR_PACKAGE_VERSION_STRING_SUFFIX \"$${SUFFIX}\"" >> $@ | |
780 | ||
781 | else | |
782 | ||
783 | $(builddir)/include/libsigrok/git-version.h: | |
784 | $(AM_V_GEN)echo '#define SR_PACKAGE_VERSION_STRING_SUFFIX ""' > $@ | |
785 | ||
786 | endif | |
787 | ||
788 | version-clean: | |
789 | rm -f $(builddir)/include/libsigrok/git-version.h | |
790 | ||
791 | CLEAN_EXTRA += version-clean | |
792 | ||
8a7b47cd UH |
793 | pkgconfigdir = $(libdir)/pkgconfig |
794 | pkgconfig_DATA = libsigrok.pc | |
d658e348 | 795 | |
a7600dc5 | 796 | mimeappdir = $(datadir)/mime/packages |
567d1fea UH |
797 | mimeapp_DATA = contrib/vnd.sigrok.session.xml |
798 | ||
799 | mimeicondir = $(datadir)/icons/hicolor/48x48/mimetypes | |
800 | mimeicon_DATA = contrib/libsigrok.png | |
801 | ||
802 | mimeiconscalabledir = $(datadir)/icons/hicolor/scalable/mimetypes | |
803 | mimeiconscalable_DATA = contrib/libsigrok.svg | |
804 | ||
67bd8055 UH |
805 | EXTRA_DIST = \ |
806 | Doxyfile \ | |
807 | HACKING \ | |
808 | README.devices \ | |
31ac7735 DE |
809 | bindings/cxx/ConfigKey_methods.cpp \ |
810 | bindings/cxx/ConfigKey_methods.hpp \ | |
811 | bindings/cxx/ConfigKey_methods.i \ | |
812 | bindings/cxx/Doxyfile \ | |
813 | bindings/cxx/QuantityFlag_methods.cpp \ | |
814 | bindings/cxx/QuantityFlag_methods.hpp \ | |
815 | bindings/cxx/enums.py \ | |
816 | bindings/python/Doxyfile \ | |
817 | bindings/python/setup.py \ | |
818 | bindings/python/sigrok/__init__.py \ | |
819 | bindings/python/sigrok/core/__init__.py \ | |
820 | bindings/python/sigrok/core/classes.i \ | |
c4a1015a | 821 | bindings/ruby/classes.i \ |
31ac7735 DE |
822 | bindings/java/Doxyfile \ |
823 | bindings/java/org/sigrok/core/classes/classes.i \ | |
824 | bindings/java/org/sigrok/core/interfaces/DatafeedCallback.java \ | |
825 | bindings/java/org/sigrok/core/interfaces/LogCallback.java \ | |
31ac7735 DE |
826 | bindings/swig/classes.i \ |
827 | bindings/swig/doc.py \ | |
0a9d05dc | 828 | bindings/swig/templates.i \ |
6b21d9a7 | 829 | contrib/libsigrok_112x112.png \ |
567d1fea UH |
830 | contrib/libsigrok.png \ |
831 | contrib/libsigrok.svg \ | |
832 | contrib/vnd.sigrok.session.xml \ | |
b2e9b6d4 UH |
833 | contrib/60-libsigrok.rules \ |
834 | contrib/61-libsigrok-plugdev.rules \ | |
15a67999 GS |
835 | contrib/61-libsigrok-uaccess.rules \ |
836 | src/minilzo/COPYING \ | |
837 | src/minilzo/Makefile \ | |
838 | src/minilzo/README.LZO \ | |
839 | src/minilzo/testmini.c | |
67bd8055 UH |
840 | |
841 | if HAVE_CHECK | |
02a2bf68 | 842 | TESTS = tests/main |
67bd8055 | 843 | check_PROGRAMS = ${TESTS} |
65489c1a | 844 | endif |
67bd8055 | 845 | |
02a2bf68 | 846 | tests_main_SOURCES = \ |
6592c369 | 847 | include/libsigrok/libsigrok.h \ |
67bd8055 UH |
848 | tests/lib.c \ |
849 | tests/lib.h \ | |
02a2bf68 UH |
850 | tests/main.c \ |
851 | tests/core.c \ | |
852 | tests/input_all.c \ | |
853 | tests/input_binary.c \ | |
854 | tests/output_all.c \ | |
855 | tests/transform_all.c \ | |
856 | tests/session.c \ | |
857 | tests/strutil.c \ | |
858 | tests/version.c \ | |
859 | tests/driver_all.c \ | |
860 | tests/device.c \ | |
6b71bf1b | 861 | tests/trigger.c \ |
f2a9a7c2 GS |
862 | tests/analog.c \ |
863 | tests/conv.c | |
02a2bf68 | 864 | |
65489c1a | 865 | tests_main_LDADD = libsigrok.la $(SR_EXTRA_LIBS) $(TESTS_LIBS) |
dd8b5f56 | 866 | |
580ed400 ML |
867 | BUILD_EXTRA = |
868 | INSTALL_EXTRA = | |
7252a09e | 869 | UNINSTALL_EXTRA = |
580ed400 | 870 | |
09b2ca47 UH |
871 | libsigrok-uninstall: |
872 | -rmdir $(DESTDIR)$(includedir)/libsigrok | |
873 | ||
874 | UNINSTALL_EXTRA += libsigrok-uninstall | |
875 | ||
c23c8659 ML |
876 | if BINDINGS_CXX |
877 | ||
52ff4f6a | 878 | lib_LTLIBRARIES += bindings/cxx/libsigrokcxx.la |
c23c8659 | 879 | |
52ff4f6a | 880 | bindings_cxx_libsigrokcxx_la_SOURCES = bindings/cxx/classes.cpp |
c23c8659 | 881 | |
9d8f363d | 882 | bindings_cxx_libsigrokcxx_la_LIBADD = libsigrok.la $(SR_EXTRA_LIBS) $(LIBSIGROKCXX_LIBS) $(SR_EXTRA_CXX_LIBS) |
1f61c22f | 883 | bindings_cxx_libsigrokcxx_la_LDFLAGS = -version-info $(SR_LIB_VERSION) -no-undefined |
fc8f82e9 | 884 | |
0959ed3d UH |
885 | bindings_cxx_libsigrokcxx_la_includedir = $(includedir)/libsigrokcxx |
886 | bindings_cxx_libsigrokcxx_la_include_HEADERS = \ | |
122322a9 DE |
887 | bindings/cxx/include/libsigrokcxx/libsigrokcxx.hpp |
888 | nodist_bindings_cxx_libsigrokcxx_la_include_HEADERS = \ | |
161dc24d | 889 | bindings/cxx/include/libsigrokcxx/enums.hpp |
c23c8659 | 890 | |
52ff4f6a | 891 | pkgconfig_DATA += bindings/cxx/libsigrokcxx.pc |
c23c8659 | 892 | |
3532ed01 | 893 | doxy/xml/index.xml: include/libsigrok/libsigrok.h |
3535a6ee | 894 | $(AM_V_GEN)cd $(srcdir) && SRCDIR=$(abs_srcdir)/ BUILDDIR=$(abs_builddir)/ doxygen Doxyfile 2>/dev/null |
580ed400 | 895 | |
cf5b338e | 896 | bindings/swig/enums.i: bindings/cxx/enums.timestamp |
580ed400 | 897 | bindings/cxx/enums.cpp: bindings/cxx/enums.timestamp |
161dc24d | 898 | bindings/cxx/include/libsigrokcxx/enums.hpp: bindings/cxx/enums.timestamp |
c23c8659 | 899 | |
b595a458 | 900 | bindings/cxx/enums.timestamp: $(srcdir)/bindings/cxx/enums.py doxy/xml/index.xml \ |
c23c8659 | 901 | bindings/cxx/ConfigKey_methods.cpp bindings/cxx/QuantityFlag_methods.cpp |
b595a458 | 902 | $(AM_V_GEN)$(PYTHON) $(srcdir)/bindings/cxx/enums.py doxy/xml/index.xml |
f2a189f0 | 903 | $(AM_V_at)touch $@ |
c23c8659 | 904 | |
580ed400 | 905 | bindings/cxx/classes.lo: bindings/cxx/classes.cpp bindings/cxx/enums.cpp \ |
cf5b338e | 906 | $(library_include_HEADERS) $(nodist_library_include_HEADERS) |
c23c8659 | 907 | |
580ed400 | 908 | cxx-clean: |
3532ed01 | 909 | rm -rf doxy/ |
bd4fda24 | 910 | rm -rf bindings/cxx/doxy/ |
45ec8f77 | 911 | rm -f bindings/swig/enums.i |
580ed400 | 912 | rm -f bindings/cxx/enums.cpp |
161dc24d | 913 | rm -f bindings/cxx/include/libsigrokcxx/enums.hpp |
580ed400 | 914 | rm -f bindings/cxx/enums.timestamp |
c23c8659 | 915 | |
580ed400 ML |
916 | CLEAN_EXTRA += cxx-clean |
917 | ||
09b2ca47 UH |
918 | cxx-uninstall: |
919 | -rmdir $(DESTDIR)$(includedir)/libsigrokcxx | |
920 | ||
921 | UNINSTALL_EXTRA += cxx-uninstall | |
922 | ||
580ed400 | 923 | endif |
f7740954 | 924 | |
bd4fda24 ML |
925 | CPPXMLDOC = bindings/cxx/doxy/xml/index.xml |
926 | ||
161dc24d | 927 | $(CPPXMLDOC): bindings/cxx/include/libsigrokcxx/libsigrokcxx.hpp \ |
bd4fda24 | 928 | bindings/cxx/enums.timestamp |
3535a6ee | 929 | $(AM_V_GEN)cd $(srcdir)/bindings/cxx && SRCDIR=$(abs_srcdir)/bindings/cxx/ BUILDDIR=$(abs_builddir)/bindings/cxx/ doxygen Doxyfile 2>/dev/null |
bd4fda24 | 930 | |
8ebf1469 DE |
931 | # Macro definitions to be used by the SWIG parser. |
932 | swig_defs = -Dnoexcept= -Dprivate=protected -DG_GNUC_BEGIN_IGNORE_DEPRECATIONS= -DG_GNUC_END_IGNORE_DEPRECATIONS= | |
933 | ||
f7740954 ML |
934 | if BINDINGS_PYTHON |
935 | ||
d1785122 | 936 | PDIR = bindings/python |
df979d6d ML |
937 | PDOC_START = bindings/python/sigrok/core/doc_start.i |
938 | PDOC_END = bindings/python/sigrok/core/doc_end.i | |
bd4fda24 | 939 | |
b020b81b | 940 | setup_vars = VERSION='$(PACKAGE_VERSION)' CC='$(CXX)' CXX='$(CXX)' CFLAGS='$(CXXFLAGS) $(SR_WXXFLAGS) $(PYSIGROK_CFLAGS)' CXXFLAGS='$(CXXFLAGS) $(SR_WXXFLAGS) $(PYSIGROK_CFLAGS)' LDADD='$(PYSIGROK_LIBS)' |
c05a0ba5 DE |
941 | setup_quiet = --quiet |
942 | setup_py = $(PYTHON) $(srcdir)/$(PDIR)/setup.py $(setup_vars) $(setup_quiet) | |
a9cb82ac | 943 | |
df979d6d | 944 | $(PDOC_START): $(srcdir)/bindings/swig/doc.py $(CPPXMLDOC) |
f3256bb7 | 945 | $(AM_V_at)test -d $(PDIR)/sigrok/core || $(MKDIR_P) $(PDIR)/sigrok/core |
df979d6d ML |
946 | $(AM_V_GEN)$(PYTHON) $(srcdir)/bindings/swig/doc.py python $(CPPXMLDOC) start > $@ |
947 | ||
948 | $(PDOC_END): $(srcdir)/bindings/swig/doc.py $(CPPXMLDOC) | |
949 | $(AM_V_at)test -d $(PDIR)/sigrok/core || $(MKDIR_P) $(PDIR)/sigrok/core | |
950 | $(AM_V_GEN)$(PYTHON) $(srcdir)/bindings/swig/doc.py python $(CPPXMLDOC) end > $@ | |
d1785122 ML |
951 | |
952 | python-build: $(PDIR)/timestamp | |
953 | ||
fd31865e | 954 | $(PDIR)/timestamp: $(PDIR)/sigrok/core/classes.i \ |
36e3f6a9 ML |
955 | bindings/swig/classes.i bindings/swig/templates.i \ |
956 | bindings/swig/enums.i $(PDOC_START) $(PDOC_END) \ | |
957 | $(library_include_HEADERS) \ | |
df979d6d | 958 | $(nodist_library_include_HEADERS) \ |
fd31865e ML |
959 | $(bindings_cxx_libsigrokcxx_la_include_HEADERS) \ |
960 | $(nodist_bindings_cxx_libsigrokcxx_la_include_HEADERS) \ | |
ba3070ff | 961 | @ORDER@ bindings/cxx/libsigrokcxx.la |
a9cb82ac | 962 | $(AM_V_at)$(setup_py) clean --all 2>/dev/null |
8ebf1469 | 963 | $(AM_V_GEN)$(setup_py) build_ext --swig "$(SWIG)" --swig-opts '$(swig_defs)' build_py |
a9cb82ac | 964 | $(AM_V_at): >$@ |
f7740954 | 965 | |
a9cb82ac DE |
966 | python-install: |
967 | $(AM_V_at)$(MKDIR_P) "$(DESTDIR)$(prefix)" "$(DESTDIR)$(exec_prefix)" | |
452986be DE |
968 | destdir='$(DESTDIR)'; $(setup_py) install $${destdir:+"--root=$$destdir"} \ |
969 | --prefix "$(prefix)" --exec-prefix "$(exec_prefix)" | |
f7740954 | 970 | |
c26162ff | 971 | python-clean: |
a9cb82ac DE |
972 | -$(AM_V_at)rm -f $(PDIR)/timestamp |
973 | -$(AM_V_at)rm -fr $(PDIR)/doxy | |
c05a0ba5 | 974 | -$(AM_V_at)$(setup_py) clean --all 2>/dev/null |
6a8c1d68 ML |
975 | |
976 | python-doc: | |
3535a6ee | 977 | $(AM_V_at)cd $(srcdir)/$(PDIR) && SRCDIR="$(abs_srcdir)/$(PDIR)/" BUILDDIR="$(abs_builddir)/$(PDIR)/" doxygen Doxyfile 2>/dev/null |
f7740954 ML |
978 | |
979 | BUILD_EXTRA += python-build | |
980 | INSTALL_EXTRA += python-install | |
981 | CLEAN_EXTRA += python-clean | |
982 | ||
983 | endif | |
984 | ||
27d44cf6 AJ |
985 | if BINDINGS_RUBY |
986 | ||
987 | RDIR = bindings/ruby | |
988 | RDOC = $(RDIR)/doc.i | |
989 | RWRAP = $(RDIR)/classes_wrap.cpp | |
990 | ROBJ = $(RWRAP:.cpp=.o) | |
e9227902 | 991 | REXT = $(RDIR)/sigrok.$(RUBY_DLEXT) |
27d44cf6 AJ |
992 | |
993 | $(RDOC): $(srcdir)/bindings/swig/doc.py $(CPPXMLDOC) | |
17165513 | 994 | $(AM_V_at)test -d $(RDIR) || $(MKDIR_P) $(RDIR) |
27d44cf6 AJ |
995 | $(AM_V_GEN)$(PYTHON) $(srcdir)/bindings/swig/doc.py ruby $(CPPXMLDOC) > $@ |
996 | ||
d8f96097 | 997 | $(RWRAP): $(srcdir)/$(RDIR)/classes.i $(RDOC) \ |
27d44cf6 AJ |
998 | bindings/swig/classes.i bindings/swig/templates.i \ |
999 | bindings/swig/enums.i | |
d8f96097 | 1000 | $(AM_V_GEN)$(SWIG) -ruby -c++ -Ibindings -Ibindings/cxx/include -I$(RDIR) $(local_includes) $(swig_defs) -o $@ $(srcdir)/$(RDIR)/classes.i |
27d44cf6 AJ |
1001 | |
1002 | $(ROBJ): $(RWRAP) \ | |
1003 | $(library_include_HEADERS) \ | |
1004 | $(nodist_library_include_HEADERS) \ | |
1005 | $(bindings_cxx_libsigrokcxx_la_include_HEADERS) \ | |
1006 | $(nodist_bindings_cxx_libsigrokcxx_la_include_HEADERS) | |
d8f96097 | 1007 | $(AM_V_CXX)$(CXX) $(RBSIGROK_CFLAGS) -I. -Iinclude -Ibindings/cxx/include $(local_includes) -fPIC -o $@ -c $(RWRAP) |
27d44cf6 AJ |
1008 | |
1009 | $(REXT): $(ROBJ) @ORDER@ bindings/cxx/libsigrokcxx.la | |
d8f96097 | 1010 | $(AM_V_CXXLD)$(CXX) -shared -o $@ $(ROBJ) -lsigrokcxx -Lbindings/cxx/.libs $(RBSIGROK_LIBS) |
27d44cf6 AJ |
1011 | |
1012 | ruby-build: $(REXT) | |
1013 | ||
1014 | ruby-install: $(REXT) | |
e9227902 | 1015 | $(INSTALL) -d $(DESTDIR)$(prefix)/$(RBSIGROK_EXTDIR) |
d8f96097 | 1016 | $(INSTALL) $(REXT) $(DESTDIR)$(prefix)/$(RBSIGROK_EXTDIR) |
27d44cf6 | 1017 | |
c4a1015a MS |
1018 | ruby-uninstall: |
1019 | rm -f $(DESTDIR)$(prefix)/$(RBSIGROK_EXTDIR)/sigrok.$(RUBY_DLEXT) | |
1020 | ||
27d44cf6 AJ |
1021 | ruby-clean: |
1022 | -$(AM_V_at)rm -fr $(RDIR)/doc | |
17165513 | 1023 | -$(AM_V_at)rm -f $(REXT) $(ROBJ) $(RWRAP) $(RDOC) |
27d44cf6 AJ |
1024 | |
1025 | ruby-doc: $(RWRAP) | |
d8f96097 | 1026 | $(AM_V_at)yard doc -o $(RDIR)/doc $(RWRAP) |
27d44cf6 AJ |
1027 | |
1028 | BUILD_EXTRA += ruby-build | |
1029 | INSTALL_EXTRA += ruby-install | |
c4a1015a | 1030 | UNINSTALL_EXTRA += ruby-uninstall |
27d44cf6 AJ |
1031 | CLEAN_EXTRA += ruby-clean |
1032 | ||
1033 | endif | |
1034 | ||
9fcf4d0b ML |
1035 | if BINDINGS_JAVA |
1036 | ||
1037 | JDIR = bindings/java | |
90bd7656 ML |
1038 | JPKG = org/sigrok/core |
1039 | JCLS = $(JDIR)/$(JPKG)/classes | |
1040 | JINT = $(JDIR)/$(JPKG)/interfaces | |
33c84e81 | 1041 | JSRC = $(JCLS)/*.java $(srcdir)/$(JINT)/*.java |
90bd7656 | 1042 | JSWG = $(JCLS)/classes.i |
bd4fda24 | 1043 | JDOC = $(JCLS)/doc.i |
90bd7656 | 1044 | JCXX = $(JCLS)/classes_wrap.cxx |
9fcf4d0b ML |
1045 | JLIB = $(JDIR)/libsigrok_java_core_classes.so |
1046 | JJAR = $(JDIR)/sigrok-core.jar | |
1047 | ||
a9cb82ac DE |
1048 | java_cleanfiles = $(JCXX) $(JCLS)/*.java $(JCLS)/*.class $(JINT)/*.class $(JJAR) $(JLIB) |
1049 | ||
9fcf4d0b ML |
1050 | java-build: $(JJAR) $(JLIB) |
1051 | ||
dbde3b65 | 1052 | $(JDOC): $(srcdir)/bindings/swig/doc.py $(CPPXMLDOC) |
f3256bb7 | 1053 | $(AM_V_at)test -d $(JCLS) || $(MKDIR_P) $(JCLS) |
dbde3b65 | 1054 | $(AM_V_GEN)$(PYTHON) $(srcdir)/bindings/swig/doc.py java $(CPPXMLDOC) > $@ |
bd4fda24 | 1055 | |
36e3f6a9 ML |
1056 | $(JCXX): $(srcdir)/$(JSWG) $(JDOC) bindings/swig/classes.i \ |
1057 | bindings/swig/templates.i bindings/swig/enums.i \ | |
fd31865e ML |
1058 | $(bindings_cxx_libsigrokcxx_la_include_HEADERS) \ |
1059 | $(nodist_bindings_cxx_libsigrokcxx_la_include_HEADERS) | |
a9cb82ac | 1060 | -$(AM_V_at)rm -f $(java_cleanfiles) |
8ebf1469 | 1061 | $(AM_V_GEN)$(SWIG) -c++ $(swig_defs) \ |
4c9208a7 | 1062 | -java -package org.sigrok.core.classes \ |
dbde3b65 DE |
1063 | -Ibindings -I$(JCLS) $(local_includes) -I$(srcdir) $(JNI_CPPFLAGS) \ |
1064 | -outdir $(JCLS) -o $@ $(srcdir)/$(JSWG) | |
9fcf4d0b | 1065 | |
90bd7656 | 1066 | $(JJAR): $(JCXX) |
1f61c22f | 1067 | $(AM_V_GEN)$(JAVAC) -d $(JDIR) $(JSRC) |
f2a189f0 | 1068 | $(AM_V_at)jar cf $(JJAR) -C $(JDIR) $(JPKG) |
9fcf4d0b | 1069 | |
fd31865e ML |
1070 | $(JLIB): $(JCXX) \ |
1071 | $(library_include_HEADERS) $(nodist_library_include_HEADERS) \ | |
1072 | $(bindings_cxx_libsigrokcxx_la_include_HEADERS) \ | |
1073 | $(nodist_bindings_cxx_libsigrokcxx_la_include_HEADERS) \ | |
ba3070ff | 1074 | @ORDER@ bindings/cxx/libsigrokcxx.la |
9d8f363d | 1075 | $(AM_V_GEN)$(CXXCOMPILE) $(JNI_CPPFLAGS) $(LDFLAGS) -L.libs -Lbindings/cxx/.libs \ |
90bd7656 | 1076 | -fno-strict-aliasing -fPIC -shared $(JCLS)/classes_wrap.cxx \ |
9d8f363d | 1077 | -lsigrokcxx $(LIBSIGROKCXX_LIBS) $(SR_EXTRA_CXX_LIBS) -o $(JLIB) |
9fcf4d0b ML |
1078 | |
1079 | java-install: | |
df705a7a | 1080 | $(INSTALL) -d $(DESTDIR)$(libdir)/jni |
8e0f9bf7 | 1081 | $(INSTALL) $(JLIB) $(DESTDIR)$(libdir)/jni |
df705a7a | 1082 | $(INSTALL) -d $(DESTDIR)$(datadir)/java |
8e0f9bf7 | 1083 | $(INSTALL) $(JJAR) $(DESTDIR)$(datadir)/java |
9fcf4d0b | 1084 | |
7252a09e DE |
1085 | java-uninstall: |
1086 | -rm -f $(DESTDIR)$(datadir)/java/sigrok-core.jar | |
1087 | -rm -f $(DESTDIR)$(libdir)/jni/libsigrok_java_core_classes.so | |
1088 | ||
9fcf4d0b | 1089 | java-clean: |
45ec8f77 | 1090 | -$(AM_V_at)rm -f $(java_cleanfiles) $(JDOC) |
a9cb82ac | 1091 | -$(AM_V_at)rm -fr $(JDIR)/doxy |
8a314e90 ML |
1092 | |
1093 | java-doc: | |
3535a6ee | 1094 | $(AM_V_at)cd $(srcdir)/$(JDIR) && SRCDIR="$(abs_srcdir)/$(JDIR)/" BUILDDIR="$(abs_builddir)/$(JDIR)/" doxygen Doxyfile |
9fcf4d0b ML |
1095 | |
1096 | BUILD_EXTRA += java-build | |
1097 | INSTALL_EXTRA += java-install | |
7252a09e | 1098 | UNINSTALL_EXTRA += java-uninstall |
9fcf4d0b ML |
1099 | CLEAN_EXTRA += java-clean |
1100 | ||
1101 | endif | |
1102 | ||
f7740954 ML |
1103 | all-local: $(BUILD_EXTRA) |
1104 | install-exec-local: $(INSTALL_EXTRA) | |
09b2ca47 | 1105 | uninstall-hook: $(UNINSTALL_EXTRA) |
d1785122 | 1106 | clean-local: $(CLEAN_EXTRA) |
f7740954 | 1107 | |
37829c15 DE |
1108 | .PHONY: dist-changelog |
1109 | ||
1110 | dist-hook: dist-changelog | |
1111 | ||
1112 | dist-changelog: | |
1113 | $(AM_V_at)if test ! -d '$(top_srcdir)/.git'; then \ | |
1114 | cp -f '$(top_srcdir)/ChangeLog' "$(top_distdir)/ChangeLog"; \ | |
1115 | elif git -C '$(top_srcdir)' log >.ChangeLog.tmp; then \ | |
1116 | mv -f .ChangeLog.tmp "$(top_distdir)/ChangeLog"; \ | |
1117 | else \ | |
1118 | rm -f .ChangeLog.tmp; exit 1; \ | |
1119 | fi | |
0fc12d66 | 1120 |