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