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