]>
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 |
7c198f96 | 380 | if HW_GWINSTEK_GDS_800 |
5d8b3913 | 381 | src_libdrivers_la_SOURCES += \ |
7c198f96 ML |
382 | src/hardware/gwinstek-gds-800/protocol.h \ |
383 | src/hardware/gwinstek-gds-800/protocol.c \ | |
384 | src/hardware/gwinstek-gds-800/api.c | |
385 | endif | |
b872ab7d BS |
386 | if HW_GWINSTEK_GPD |
387 | src_libdrivers_la_SOURCES += \ | |
388 | src/hardware/gwinstek-gpd/protocol.h \ | |
389 | src/hardware/gwinstek-gpd/protocol.c \ | |
390 | src/hardware/gwinstek-gpd/api.c | |
391 | endif | |
67bd8055 | 392 | if HW_HAMEG_HMO |
5d8b3913 | 393 | src_libdrivers_la_SOURCES += \ |
155b680d BV |
394 | src/hardware/hameg-hmo/protocol.h \ |
395 | src/hardware/hameg-hmo/protocol.c \ | |
396 | src/hardware/hameg-hmo/api.c | |
67bd8055 | 397 | endif |
6a25fa42 AZ |
398 | if HW_HANTEK_4032L |
399 | src_libdrivers_la_SOURCES += \ | |
400 | src/hardware/hantek-4032l/protocol.h \ | |
401 | src/hardware/hantek-4032l/protocol.c \ | |
402 | src/hardware/hantek-4032l/api.c | |
403 | endif | |
5089a143 AZ |
404 | if HW_HANTEK_6XXX |
405 | src_libdrivers_la_SOURCES += \ | |
406 | src/hardware/hantek-6xxx/protocol.h \ | |
407 | src/hardware/hantek-6xxx/protocol.c \ | |
408 | src/hardware/hantek-6xxx/api.c | |
409 | endif | |
67bd8055 | 410 | if HW_HANTEK_DSO |
5d8b3913 | 411 | src_libdrivers_la_SOURCES += \ |
caeb8d7a UH |
412 | src/hardware/hantek-dso/protocol.h \ |
413 | src/hardware/hantek-dso/protocol.c \ | |
155b680d | 414 | src/hardware/hantek-dso/api.c |
67bd8055 | 415 | endif |
00b2a092 | 416 | if HW_HP_3457A |
5d8b3913 | 417 | src_libdrivers_la_SOURCES += \ |
00b2a092 AG |
418 | src/hardware/hp-3457a/protocol.h \ |
419 | src/hardware/hp-3457a/protocol.c \ | |
420 | src/hardware/hp-3457a/api.c | |
421 | endif | |
1d9eebf4 FS |
422 | if HW_HP_3478A |
423 | src_libdrivers_la_SOURCES += \ | |
424 | src/hardware/hp-3478a/protocol.h \ | |
425 | src/hardware/hp-3478a/protocol.c \ | |
426 | src/hardware/hp-3478a/api.c | |
427 | endif | |
12e7abe2 FS |
428 | if HW_HP_59306A |
429 | src_libdrivers_la_SOURCES += \ | |
430 | src/hardware/hp-59306a/protocol.h \ | |
431 | src/hardware/hp-59306a/protocol.c \ | |
432 | src/hardware/hp-59306a/api.c | |
433 | endif | |
05ac4a98 | 434 | if HW_HUNG_CHANG_DSO_2100 |
5d8b3913 | 435 | src_libdrivers_la_SOURCES += \ |
05ac4a98 DG |
436 | src/hardware/hung-chang-dso-2100/protocol.h \ |
437 | src/hardware/hung-chang-dso-2100/protocol.c \ | |
438 | src/hardware/hung-chang-dso-2100/api.c | |
439 | endif | |
dfa92ad4 FS |
440 | if HW_ICSTATION_USBRELAY |
441 | src_libdrivers_la_SOURCES += \ | |
442 | src/hardware/icstation-usbrelay/protocol.h \ | |
443 | src/hardware/icstation-usbrelay/protocol.c \ | |
444 | src/hardware/icstation-usbrelay/api.c | |
445 | endif | |
67bd8055 | 446 | if HW_IKALOGIC_SCANALOGIC2 |
5d8b3913 | 447 | src_libdrivers_la_SOURCES += \ |
155b680d BV |
448 | src/hardware/ikalogic-scanalogic2/protocol.h \ |
449 | src/hardware/ikalogic-scanalogic2/protocol.c \ | |
450 | src/hardware/ikalogic-scanalogic2/api.c | |
67bd8055 UH |
451 | endif |
452 | if HW_IKALOGIC_SCANAPLUS | |
5d8b3913 | 453 | src_libdrivers_la_SOURCES += \ |
155b680d BV |
454 | src/hardware/ikalogic-scanaplus/protocol.h \ |
455 | src/hardware/ikalogic-scanaplus/protocol.c \ | |
456 | src/hardware/ikalogic-scanaplus/api.c | |
67bd8055 | 457 | endif |
8a9788e2 | 458 | if HW_IPDBG_LA |
a4210e18 | 459 | src_libdrivers_la_SOURCES += \ |
8a9788e2 UH |
460 | src/hardware/ipdbg-la/protocol.h \ |
461 | src/hardware/ipdbg-la/protocol.c \ | |
462 | src/hardware/ipdbg-la/api.c | |
a4210e18 | 463 | endif |
c16effae TK |
464 | if HW_ITECH_IT8500 |
465 | src_libdrivers_la_SOURCES += \ | |
466 | src/hardware/itech-it8500/protocol.h \ | |
467 | src/hardware/itech-it8500/protocol.c \ | |
468 | src/hardware/itech-it8500/api.c | |
469 | endif | |
67bd8055 | 470 | if HW_KECHENG_KC_330B |
5d8b3913 | 471 | src_libdrivers_la_SOURCES += \ |
155b680d BV |
472 | src/hardware/kecheng-kc-330b/protocol.h \ |
473 | src/hardware/kecheng-kc-330b/protocol.c \ | |
474 | src/hardware/kecheng-kc-330b/api.c | |
67bd8055 | 475 | endif |
9380ec2f | 476 | if HW_KERN_SCALE |
5d8b3913 | 477 | src_libdrivers_la_SOURCES += \ |
9380ec2f UH |
478 | src/hardware/kern-scale/protocol.h \ |
479 | src/hardware/kern-scale/protocol.c \ | |
480 | src/hardware/kern-scale/api.c | |
481 | endif | |
f2cd2deb FS |
482 | if HW_KINGST_LA2016 |
483 | src_libdrivers_la_SOURCES += \ | |
484 | src/hardware/kingst-la2016/protocol.h \ | |
485 | src/hardware/kingst-la2016/protocol.c \ | |
486 | src/hardware/kingst-la2016/api.c | |
487 | endif | |
16fc7ee2 | 488 | if HW_KORAD_KAXXXXP |
5d8b3913 | 489 | src_libdrivers_la_SOURCES += \ |
16fc7ee2 UH |
490 | src/hardware/korad-kaxxxxp/protocol.h \ |
491 | src/hardware/korad-kaxxxxp/protocol.c \ | |
492 | src/hardware/korad-kaxxxxp/api.c | |
e75ee7de | 493 | endif |
67bd8055 | 494 | if HW_LASCAR_EL_USB |
5d8b3913 | 495 | src_libdrivers_la_SOURCES += \ |
155b680d BV |
496 | src/hardware/lascar-el-usb/protocol.h \ |
497 | src/hardware/lascar-el-usb/protocol.c \ | |
498 | src/hardware/lascar-el-usb/api.c | |
67bd8055 | 499 | endif |
c7b17bcb | 500 | if HW_LECROY_LOGICSTUDIO |
5d8b3913 | 501 | src_libdrivers_la_SOURCES += \ |
c7b17bcb TS |
502 | src/hardware/lecroy-logicstudio/protocol.h \ |
503 | src/hardware/lecroy-logicstudio/protocol.c \ | |
504 | src/hardware/lecroy-logicstudio/api.c | |
505 | endif | |
e3b83c5e SS |
506 | if HW_LECROY_XSTREAM |
507 | src_libdrivers_la_SOURCES += \ | |
508 | src/hardware/lecroy-xstream/protocol.h \ | |
509 | src/hardware/lecroy-xstream/protocol.c \ | |
510 | src/hardware/lecroy-xstream/api.c | |
511 | endif | |
8f4e922f | 512 | if HW_MANSON_HCS_3XXX |
5d8b3913 | 513 | src_libdrivers_la_SOURCES += \ |
155b680d BV |
514 | src/hardware/manson-hcs-3xxx/protocol.h \ |
515 | src/hardware/manson-hcs-3xxx/protocol.c \ | |
516 | src/hardware/manson-hcs-3xxx/api.c | |
8f4e922f | 517 | endif |
23669c3d DB |
518 | if HW_MASTECH_MS6514 |
519 | src_libdrivers_la_SOURCES += \ | |
520 | src/hardware/mastech-ms6514/protocol.h \ | |
521 | src/hardware/mastech-ms6514/protocol.c \ | |
522 | src/hardware/mastech-ms6514/api.c | |
523 | endif | |
e1ccfb19 | 524 | if HW_MAYNUO_M97 |
5d8b3913 | 525 | src_libdrivers_la_SOURCES += \ |
e1ccfb19 AJ |
526 | src/hardware/maynuo-m97/protocol.h \ |
527 | src/hardware/maynuo-m97/protocol.c \ | |
528 | src/hardware/maynuo-m97/api.c | |
529 | endif | |
a5c0259c GS |
530 | if HW_MICROCHIP_PICKIT2 |
531 | src_libdrivers_la_SOURCES += \ | |
532 | src/hardware/microchip-pickit2/protocol.h \ | |
533 | src/hardware/microchip-pickit2/protocol.c \ | |
534 | src/hardware/microchip-pickit2/api.c | |
535 | endif | |
67bd8055 | 536 | if HW_MIC_985XX |
5d8b3913 | 537 | src_libdrivers_la_SOURCES += \ |
155b680d BV |
538 | src/hardware/mic-985xx/protocol.h \ |
539 | src/hardware/mic-985xx/protocol.c \ | |
540 | src/hardware/mic-985xx/api.c | |
67bd8055 | 541 | endif |
ebcd1aba DH |
542 | if HW_MOOSHIMETER_DMM |
543 | src_libdrivers_la_SOURCES += \ | |
544 | src/hardware/mooshimeter-dmm/protocol.h \ | |
545 | src/hardware/mooshimeter-dmm/protocol.c \ | |
546 | src/hardware/mooshimeter-dmm/api.c | |
547 | endif | |
41b7bd01 | 548 | if HW_MOTECH_LPS_30X |
5d8b3913 | 549 | src_libdrivers_la_SOURCES += \ |
155b680d BV |
550 | src/hardware/motech-lps-30x/protocol.h \ |
551 | src/hardware/motech-lps-30x/protocol.c \ | |
552 | src/hardware/motech-lps-30x/api.c | |
41b7bd01 | 553 | endif |
67bd8055 | 554 | if HW_NORMA_DMM |
5d8b3913 | 555 | src_libdrivers_la_SOURCES += \ |
155b680d BV |
556 | src/hardware/norma-dmm/protocol.h \ |
557 | src/hardware/norma-dmm/protocol.c \ | |
558 | src/hardware/norma-dmm/api.c | |
67bd8055 | 559 | endif |
d4b38748 | 560 | if HW_OPENBENCH_LOGIC_SNIFFER |
5d8b3913 | 561 | src_libdrivers_la_SOURCES += \ |
155b680d BV |
562 | src/hardware/openbench-logic-sniffer/protocol.h \ |
563 | src/hardware/openbench-logic-sniffer/protocol.c \ | |
564 | src/hardware/openbench-logic-sniffer/api.c | |
67bd8055 | 565 | endif |
5a2c71cc | 566 | if HW_PCE_322A |
5d8b3913 | 567 | src_libdrivers_la_SOURCES += \ |
5a2c71cc GH |
568 | src/hardware/pce-322a/protocol.h \ |
569 | src/hardware/pce-322a/protocol.c \ | |
570 | src/hardware/pce-322a/api.c | |
571 | endif | |
4bd80e12 | 572 | if HW_PIPISTRELLO_OLS |
5d8b3913 | 573 | src_libdrivers_la_SOURCES += \ |
4bd80e12 | 574 | src/hardware/pipistrello-ols/protocol.h \ |
575 | src/hardware/pipistrello-ols/protocol.c \ | |
576 | src/hardware/pipistrello-ols/api.c | |
577 | endif | |
dc90146e A |
578 | if HW_RASPBERRYPI_PICO |
579 | src_libdrivers_la_SOURCES += \ | |
580 | src/hardware/raspberrypi-pico/protocol.h \ | |
581 | src/hardware/raspberrypi-pico/protocol.c \ | |
582 | src/hardware/raspberrypi-pico/api.c | |
583 | endif | |
0549416e JC |
584 | if HW_RDTECH_DPS |
585 | src_libdrivers_la_SOURCES += \ | |
586 | src/hardware/rdtech-dps/protocol.h \ | |
587 | src/hardware/rdtech-dps/protocol.c \ | |
588 | src/hardware/rdtech-dps/api.c | |
589 | endif | |
8b607a24 AS |
590 | if HW_RDTECH_UM |
591 | src_libdrivers_la_SOURCES += \ | |
592 | src/hardware/rdtech-um/protocol.h \ | |
593 | src/hardware/rdtech-um/protocol.c \ | |
594 | src/hardware/rdtech-um/api.c | |
595 | endif | |
cae33a58 AS |
596 | if HW_RDTECH_TC |
597 | src_libdrivers_la_SOURCES += \ | |
598 | src/hardware/rdtech-tc/protocol.h \ | |
599 | src/hardware/rdtech-tc/protocol.c \ | |
600 | src/hardware/rdtech-tc/api.c | |
601 | endif | |
068db0fb TK |
602 | if HW_RIGOL_DG |
603 | src_libdrivers_la_SOURCES += \ | |
604 | src/hardware/rigol-dg/protocol.h \ | |
605 | src/hardware/rigol-dg/protocol.c \ | |
606 | src/hardware/rigol-dg/api.c | |
607 | endif | |
67bd8055 | 608 | if HW_RIGOL_DS |
5d8b3913 | 609 | src_libdrivers_la_SOURCES += \ |
155b680d BV |
610 | src/hardware/rigol-ds/protocol.h \ |
611 | src/hardware/rigol-ds/protocol.c \ | |
612 | src/hardware/rigol-ds/api.c | |
67bd8055 | 613 | endif |
a28b3df1 VI |
614 | if HW_ROHDE_SCHWARZ_SME_0X |
615 | src_libdrivers_la_SOURCES += \ | |
616 | src/hardware/rohde-schwarz-sme-0x/protocol.h \ | |
617 | src/hardware/rohde-schwarz-sme-0x/protocol.c \ | |
618 | src/hardware/rohde-schwarz-sme-0x/api.c | |
619 | endif | |
67bd8055 | 620 | if HW_SALEAE_LOGIC16 |
5d8b3913 | 621 | src_libdrivers_la_SOURCES += \ |
155b680d BV |
622 | src/hardware/saleae-logic16/protocol.h \ |
623 | src/hardware/saleae-logic16/protocol.c \ | |
624 | src/hardware/saleae-logic16/api.c | |
67bd8055 | 625 | endif |
b6189f7c | 626 | if HW_SALEAE_LOGIC_PRO |
a8e913c4 | 627 | src_libdrivers_la_SOURCES += \ |
b6189f7c UH |
628 | src/hardware/saleae-logic-pro/protocol.h \ |
629 | src/hardware/saleae-logic-pro/protocol.c \ | |
630 | src/hardware/saleae-logic-pro/api.c | |
a8e913c4 | 631 | endif |
7a396ff5 GS |
632 | if HW_SCPI_DMM |
633 | src_libdrivers_la_SOURCES += \ | |
634 | src/hardware/scpi-dmm/protocol.h \ | |
635 | src/hardware/scpi-dmm/protocol.c \ | |
636 | src/hardware/scpi-dmm/api.c | |
637 | endif | |
ca1a7cb5 | 638 | if HW_SCPI_PPS |
5d8b3913 | 639 | src_libdrivers_la_SOURCES += \ |
ca1a7cb5 BV |
640 | src/hardware/scpi-pps/protocol.h \ |
641 | src/hardware/scpi-pps/protocol.c \ | |
d4eabea8 | 642 | src/hardware/scpi-pps/profiles.c \ |
ca1a7cb5 BV |
643 | src/hardware/scpi-pps/api.c |
644 | endif | |
67bd8055 | 645 | if HW_SERIAL_DMM |
5d8b3913 | 646 | src_libdrivers_la_SOURCES += \ |
155b680d BV |
647 | src/hardware/serial-dmm/protocol.h \ |
648 | src/hardware/serial-dmm/protocol.c \ | |
649 | src/hardware/serial-dmm/api.c | |
67bd8055 | 650 | endif |
503220ec GS |
651 | if HW_SERIAL_LCR |
652 | src_libdrivers_la_SOURCES += \ | |
bf5c4d46 GS |
653 | src/hardware/serial-lcr/protocol.h \ |
654 | src/hardware/serial-lcr/protocol.c \ | |
503220ec GS |
655 | src/hardware/serial-lcr/api.c |
656 | endif | |
89f5fab9 | 657 | if HW_SIGLENT_SDS |
658 | src_libdrivers_la_SOURCES += \ | |
659 | src/hardware/siglent-sds/protocol.h \ | |
660 | src/hardware/siglent-sds/protocol.c \ | |
661 | src/hardware/siglent-sds/api.c | |
662 | endif | |
67bd8055 | 663 | if HW_SYSCLK_LWLA |
5d8b3913 | 664 | src_libdrivers_la_SOURCES += \ |
155b680d BV |
665 | src/hardware/sysclk-lwla/lwla.h \ |
666 | src/hardware/sysclk-lwla/lwla.c \ | |
be64f90b DE |
667 | src/hardware/sysclk-lwla/lwla1016.c \ |
668 | src/hardware/sysclk-lwla/lwla1034.c \ | |
155b680d BV |
669 | src/hardware/sysclk-lwla/protocol.h \ |
670 | src/hardware/sysclk-lwla/protocol.c \ | |
671 | src/hardware/sysclk-lwla/api.c | |
67bd8055 | 672 | endif |
8da8c826 VV |
673 | if HW_SYSCLK_SLA5032 |
674 | src_libdrivers_la_SOURCES += \ | |
8da8c826 VV |
675 | src/hardware/sysclk-sla5032/protocol.h \ |
676 | src/hardware/sysclk-sla5032/protocol.c \ | |
677 | src/hardware/sysclk-sla5032/api.c | |
678 | endif | |
67bd8055 | 679 | if HW_TELEINFO |
5d8b3913 | 680 | src_libdrivers_la_SOURCES += \ |
155b680d BV |
681 | src/hardware/teleinfo/protocol.h \ |
682 | src/hardware/teleinfo/protocol.c \ | |
683 | src/hardware/teleinfo/api.c | |
67bd8055 | 684 | endif |
0acdd793 | 685 | if HW_TESTO |
5d8b3913 | 686 | src_libdrivers_la_SOURCES += \ |
155b680d BV |
687 | src/hardware/testo/protocol.h \ |
688 | src/hardware/testo/protocol.c \ | |
689 | src/hardware/testo/api.c | |
0acdd793 | 690 | endif |
67bd8055 | 691 | if HW_TONDAJ_SL_814 |
5d8b3913 | 692 | src_libdrivers_la_SOURCES += \ |
155b680d BV |
693 | src/hardware/tondaj-sl-814/protocol.h \ |
694 | src/hardware/tondaj-sl-814/protocol.c \ | |
695 | src/hardware/tondaj-sl-814/api.c | |
67bd8055 UH |
696 | endif |
697 | if HW_UNI_T_DMM | |
5d8b3913 | 698 | src_libdrivers_la_SOURCES += \ |
155b680d BV |
699 | src/hardware/uni-t-dmm/protocol.h \ |
700 | src/hardware/uni-t-dmm/protocol.c \ | |
701 | src/hardware/uni-t-dmm/api.c | |
67bd8055 | 702 | endif |
3094e9d8 GS |
703 | if HW_UNI_T_UT181A |
704 | src_libdrivers_la_SOURCES += \ | |
705 | src/hardware/uni-t-ut181a/protocol.h \ | |
706 | src/hardware/uni-t-ut181a/protocol.c \ | |
707 | src/hardware/uni-t-ut181a/api.c | |
708 | endif | |
67bd8055 | 709 | if HW_UNI_T_UT32X |
5d8b3913 | 710 | src_libdrivers_la_SOURCES += \ |
155b680d BV |
711 | src/hardware/uni-t-ut32x/protocol.h \ |
712 | src/hardware/uni-t-ut32x/protocol.c \ | |
713 | src/hardware/uni-t-ut32x/api.c | |
67bd8055 | 714 | endif |
10763937 | 715 | if HW_YOKOGAWA_DLM |
5d8b3913 | 716 | src_libdrivers_la_SOURCES += \ |
10763937 SA |
717 | src/hardware/yokogawa-dlm/protocol.h \ |
718 | src/hardware/yokogawa-dlm/protocol.c \ | |
719 | src/hardware/yokogawa-dlm/protocol_wrappers.h \ | |
720 | src/hardware/yokogawa-dlm/protocol_wrappers.c \ | |
721 | src/hardware/yokogawa-dlm/api.c | |
722 | endif | |
67bd8055 | 723 | if HW_ZEROPLUS_LOGIC_CUBE |
5d8b3913 | 724 | src_libdrivers_la_SOURCES += \ |
155b680d BV |
725 | src/hardware/zeroplus-logic-cube/analyzer.c \ |
726 | src/hardware/zeroplus-logic-cube/analyzer.h \ | |
727 | src/hardware/zeroplus-logic-cube/gl_usb.h \ | |
728 | src/hardware/zeroplus-logic-cube/gl_usb.c \ | |
729 | src/hardware/zeroplus-logic-cube/protocol.h \ | |
730 | src/hardware/zeroplus-logic-cube/protocol.c \ | |
731 | src/hardware/zeroplus-logic-cube/api.c | |
67bd8055 | 732 | endif |
c527132a SBO |
733 | if HW_ZKETECH_EBD_USB |
734 | src_libdrivers_la_SOURCES += \ | |
735 | src/hardware/zketech-ebd-usb/protocol.h \ | |
736 | src/hardware/zketech-ebd-usb/protocol.c \ | |
737 | src/hardware/zketech-ebd-usb/api.c | |
738 | endif | |
67bd8055 | 739 | |
5d8b3913 | 740 | libsigrok_la_LIBADD = src/libdrivers.lo $(SR_EXTRA_LIBS) $(LIBSIGROK_LIBS) |
1f61c22f | 741 | libsigrok_la_LDFLAGS = -version-info $(SR_LIB_VERSION) -no-undefined |
ff101fca | 742 | |
45c59c8b | 743 | library_includedir = $(includedir)/libsigrok |
63d0fb75 ML |
744 | library_include_HEADERS = \ |
745 | include/libsigrok/libsigrok.h \ | |
122322a9 DE |
746 | include/libsigrok/proto.h |
747 | nodist_library_include_HEADERS = \ | |
63d0fb75 | 748 | include/libsigrok/version.h |
155b680d | 749 | noinst_HEADERS = src/libsigrok-internal.h |
a1bb33af | 750 | |
5bce22ac GS |
751 | $(builddir)/src/version.lo: $(builddir)/include/libsigrok/git-version.h |
752 | ||
753 | # Create the git-version.h file even for non-versioned source trees, | |
754 | # to reduce complexity in the library code. Re-create the header file | |
755 | # when branches change, when revisions change, or upon re-configuration. | |
756 | # Use the verbatim tagged version number when applicable, or append the | |
757 | # "-git-<hash>[-dirty]" suffix for non-tagged source trees. | |
758 | if VCS_IS_GIT | |
759 | ||
760 | $(builddir)/include/libsigrok/git-version.h: Makefile $(VERSION_GITVERSION_DEPS) | |
761 | $(AM_V_GEN) \ | |
762 | HASH=`git -C "$(srcdir)" describe --match "@VERSION_TAG_MATCH@" --always --dirty` && \ | |
763 | HASH=`echo "$${HASH}" | sed 's/@VERSION_TAG_MATCH@-//'` && \ | |
764 | SUFFIX=`git -C "$(srcdir)" describe --match "@VERSION_TAG_MATCH@" --exact-match > /dev/null 2> /dev/null || echo "-$${HASH}"` && \ | |
765 | echo "#undef SR_PACKAGE_VERSION_STRING_SUFFIX" > $@ && \ | |
766 | echo "#define SR_PACKAGE_VERSION_STRING_SUFFIX \"$${SUFFIX}\"" >> $@ | |
767 | ||
768 | else | |
769 | ||
770 | $(builddir)/include/libsigrok/git-version.h: | |
771 | $(AM_V_GEN)echo '#define SR_PACKAGE_VERSION_STRING_SUFFIX ""' > $@ | |
772 | ||
773 | endif | |
774 | ||
775 | version-clean: | |
776 | rm -f $(builddir)/include/libsigrok/git-version.h | |
777 | ||
778 | CLEAN_EXTRA += version-clean | |
779 | ||
8a7b47cd UH |
780 | pkgconfigdir = $(libdir)/pkgconfig |
781 | pkgconfig_DATA = libsigrok.pc | |
d658e348 | 782 | |
a7600dc5 | 783 | mimeappdir = $(datadir)/mime/packages |
567d1fea UH |
784 | mimeapp_DATA = contrib/vnd.sigrok.session.xml |
785 | ||
786 | mimeicondir = $(datadir)/icons/hicolor/48x48/mimetypes | |
787 | mimeicon_DATA = contrib/libsigrok.png | |
788 | ||
789 | mimeiconscalabledir = $(datadir)/icons/hicolor/scalable/mimetypes | |
790 | mimeiconscalable_DATA = contrib/libsigrok.svg | |
791 | ||
67bd8055 UH |
792 | EXTRA_DIST = \ |
793 | Doxyfile \ | |
794 | HACKING \ | |
795 | README.devices \ | |
31ac7735 DE |
796 | bindings/cxx/ConfigKey_methods.cpp \ |
797 | bindings/cxx/ConfigKey_methods.hpp \ | |
798 | bindings/cxx/ConfigKey_methods.i \ | |
799 | bindings/cxx/Doxyfile \ | |
800 | bindings/cxx/QuantityFlag_methods.cpp \ | |
801 | bindings/cxx/QuantityFlag_methods.hpp \ | |
802 | bindings/cxx/enums.py \ | |
803 | bindings/python/Doxyfile \ | |
804 | bindings/python/setup.py \ | |
805 | bindings/python/sigrok/__init__.py \ | |
806 | bindings/python/sigrok/core/__init__.py \ | |
807 | bindings/python/sigrok/core/classes.i \ | |
c4a1015a | 808 | bindings/ruby/classes.i \ |
31ac7735 DE |
809 | bindings/java/Doxyfile \ |
810 | bindings/java/org/sigrok/core/classes/classes.i \ | |
811 | bindings/java/org/sigrok/core/interfaces/DatafeedCallback.java \ | |
812 | bindings/java/org/sigrok/core/interfaces/LogCallback.java \ | |
31ac7735 DE |
813 | bindings/swig/classes.i \ |
814 | bindings/swig/doc.py \ | |
0a9d05dc | 815 | bindings/swig/templates.i \ |
6b21d9a7 | 816 | contrib/libsigrok_112x112.png \ |
567d1fea UH |
817 | contrib/libsigrok.png \ |
818 | contrib/libsigrok.svg \ | |
819 | contrib/vnd.sigrok.session.xml \ | |
b2e9b6d4 UH |
820 | contrib/60-libsigrok.rules \ |
821 | contrib/61-libsigrok-plugdev.rules \ | |
15a67999 GS |
822 | contrib/61-libsigrok-uaccess.rules \ |
823 | src/minilzo/COPYING \ | |
824 | src/minilzo/Makefile \ | |
825 | src/minilzo/README.LZO \ | |
826 | src/minilzo/testmini.c | |
67bd8055 UH |
827 | |
828 | if HAVE_CHECK | |
02a2bf68 | 829 | TESTS = tests/main |
67bd8055 | 830 | check_PROGRAMS = ${TESTS} |
65489c1a | 831 | endif |
67bd8055 | 832 | |
02a2bf68 | 833 | tests_main_SOURCES = \ |
6592c369 | 834 | include/libsigrok/libsigrok.h \ |
67bd8055 UH |
835 | tests/lib.c \ |
836 | tests/lib.h \ | |
02a2bf68 UH |
837 | tests/main.c \ |
838 | tests/core.c \ | |
839 | tests/input_all.c \ | |
840 | tests/input_binary.c \ | |
841 | tests/output_all.c \ | |
842 | tests/transform_all.c \ | |
843 | tests/session.c \ | |
844 | tests/strutil.c \ | |
845 | tests/version.c \ | |
846 | tests/driver_all.c \ | |
847 | tests/device.c \ | |
6b71bf1b | 848 | tests/trigger.c \ |
f2a9a7c2 GS |
849 | tests/analog.c \ |
850 | tests/conv.c | |
02a2bf68 | 851 | |
65489c1a | 852 | tests_main_LDADD = libsigrok.la $(SR_EXTRA_LIBS) $(TESTS_LIBS) |
dd8b5f56 | 853 | |
580ed400 ML |
854 | BUILD_EXTRA = |
855 | INSTALL_EXTRA = | |
7252a09e | 856 | UNINSTALL_EXTRA = |
580ed400 | 857 | |
09b2ca47 UH |
858 | libsigrok-uninstall: |
859 | -rmdir $(DESTDIR)$(includedir)/libsigrok | |
860 | ||
861 | UNINSTALL_EXTRA += libsigrok-uninstall | |
862 | ||
c23c8659 ML |
863 | if BINDINGS_CXX |
864 | ||
52ff4f6a | 865 | lib_LTLIBRARIES += bindings/cxx/libsigrokcxx.la |
c23c8659 | 866 | |
52ff4f6a | 867 | bindings_cxx_libsigrokcxx_la_SOURCES = bindings/cxx/classes.cpp |
c23c8659 | 868 | |
9d8f363d | 869 | bindings_cxx_libsigrokcxx_la_LIBADD = libsigrok.la $(SR_EXTRA_LIBS) $(LIBSIGROKCXX_LIBS) $(SR_EXTRA_CXX_LIBS) |
1f61c22f | 870 | bindings_cxx_libsigrokcxx_la_LDFLAGS = -version-info $(SR_LIB_VERSION) -no-undefined |
fc8f82e9 | 871 | |
0959ed3d UH |
872 | bindings_cxx_libsigrokcxx_la_includedir = $(includedir)/libsigrokcxx |
873 | bindings_cxx_libsigrokcxx_la_include_HEADERS = \ | |
122322a9 DE |
874 | bindings/cxx/include/libsigrokcxx/libsigrokcxx.hpp |
875 | nodist_bindings_cxx_libsigrokcxx_la_include_HEADERS = \ | |
161dc24d | 876 | bindings/cxx/include/libsigrokcxx/enums.hpp |
c23c8659 | 877 | |
52ff4f6a | 878 | pkgconfig_DATA += bindings/cxx/libsigrokcxx.pc |
c23c8659 | 879 | |
3532ed01 | 880 | doxy/xml/index.xml: include/libsigrok/libsigrok.h |
3535a6ee | 881 | $(AM_V_GEN)cd $(srcdir) && SRCDIR=$(abs_srcdir)/ BUILDDIR=$(abs_builddir)/ doxygen Doxyfile 2>/dev/null |
580ed400 | 882 | |
cf5b338e | 883 | bindings/swig/enums.i: bindings/cxx/enums.timestamp |
580ed400 | 884 | bindings/cxx/enums.cpp: bindings/cxx/enums.timestamp |
161dc24d | 885 | bindings/cxx/include/libsigrokcxx/enums.hpp: bindings/cxx/enums.timestamp |
c23c8659 | 886 | |
b595a458 | 887 | bindings/cxx/enums.timestamp: $(srcdir)/bindings/cxx/enums.py doxy/xml/index.xml \ |
c23c8659 | 888 | bindings/cxx/ConfigKey_methods.cpp bindings/cxx/QuantityFlag_methods.cpp |
b595a458 | 889 | $(AM_V_GEN)$(PYTHON) $(srcdir)/bindings/cxx/enums.py doxy/xml/index.xml |
f2a189f0 | 890 | $(AM_V_at)touch $@ |
c23c8659 | 891 | |
580ed400 | 892 | bindings/cxx/classes.lo: bindings/cxx/classes.cpp bindings/cxx/enums.cpp \ |
cf5b338e | 893 | $(library_include_HEADERS) $(nodist_library_include_HEADERS) |
c23c8659 | 894 | |
580ed400 | 895 | cxx-clean: |
3532ed01 | 896 | rm -rf doxy/ |
bd4fda24 | 897 | rm -rf bindings/cxx/doxy/ |
45ec8f77 | 898 | rm -f bindings/swig/enums.i |
580ed400 | 899 | rm -f bindings/cxx/enums.cpp |
161dc24d | 900 | rm -f bindings/cxx/include/libsigrokcxx/enums.hpp |
580ed400 | 901 | rm -f bindings/cxx/enums.timestamp |
c23c8659 | 902 | |
580ed400 ML |
903 | CLEAN_EXTRA += cxx-clean |
904 | ||
09b2ca47 UH |
905 | cxx-uninstall: |
906 | -rmdir $(DESTDIR)$(includedir)/libsigrokcxx | |
907 | ||
908 | UNINSTALL_EXTRA += cxx-uninstall | |
909 | ||
580ed400 | 910 | endif |
f7740954 | 911 | |
bd4fda24 ML |
912 | CPPXMLDOC = bindings/cxx/doxy/xml/index.xml |
913 | ||
161dc24d | 914 | $(CPPXMLDOC): bindings/cxx/include/libsigrokcxx/libsigrokcxx.hpp \ |
bd4fda24 | 915 | bindings/cxx/enums.timestamp |
3535a6ee | 916 | $(AM_V_GEN)cd $(srcdir)/bindings/cxx && SRCDIR=$(abs_srcdir)/bindings/cxx/ BUILDDIR=$(abs_builddir)/bindings/cxx/ doxygen Doxyfile 2>/dev/null |
bd4fda24 | 917 | |
8ebf1469 DE |
918 | # Macro definitions to be used by the SWIG parser. |
919 | swig_defs = -Dnoexcept= -Dprivate=protected -DG_GNUC_BEGIN_IGNORE_DEPRECATIONS= -DG_GNUC_END_IGNORE_DEPRECATIONS= | |
920 | ||
f7740954 ML |
921 | if BINDINGS_PYTHON |
922 | ||
d1785122 | 923 | PDIR = bindings/python |
df979d6d ML |
924 | PDOC_START = bindings/python/sigrok/core/doc_start.i |
925 | PDOC_END = bindings/python/sigrok/core/doc_end.i | |
bd4fda24 | 926 | |
b020b81b | 927 | 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 |
928 | setup_quiet = --quiet |
929 | setup_py = $(PYTHON) $(srcdir)/$(PDIR)/setup.py $(setup_vars) $(setup_quiet) | |
a9cb82ac | 930 | |
df979d6d | 931 | $(PDOC_START): $(srcdir)/bindings/swig/doc.py $(CPPXMLDOC) |
f3256bb7 | 932 | $(AM_V_at)test -d $(PDIR)/sigrok/core || $(MKDIR_P) $(PDIR)/sigrok/core |
df979d6d ML |
933 | $(AM_V_GEN)$(PYTHON) $(srcdir)/bindings/swig/doc.py python $(CPPXMLDOC) start > $@ |
934 | ||
935 | $(PDOC_END): $(srcdir)/bindings/swig/doc.py $(CPPXMLDOC) | |
936 | $(AM_V_at)test -d $(PDIR)/sigrok/core || $(MKDIR_P) $(PDIR)/sigrok/core | |
937 | $(AM_V_GEN)$(PYTHON) $(srcdir)/bindings/swig/doc.py python $(CPPXMLDOC) end > $@ | |
d1785122 ML |
938 | |
939 | python-build: $(PDIR)/timestamp | |
940 | ||
fd31865e | 941 | $(PDIR)/timestamp: $(PDIR)/sigrok/core/classes.i \ |
36e3f6a9 ML |
942 | bindings/swig/classes.i bindings/swig/templates.i \ |
943 | bindings/swig/enums.i $(PDOC_START) $(PDOC_END) \ | |
944 | $(library_include_HEADERS) \ | |
df979d6d | 945 | $(nodist_library_include_HEADERS) \ |
fd31865e ML |
946 | $(bindings_cxx_libsigrokcxx_la_include_HEADERS) \ |
947 | $(nodist_bindings_cxx_libsigrokcxx_la_include_HEADERS) \ | |
ba3070ff | 948 | @ORDER@ bindings/cxx/libsigrokcxx.la |
a9cb82ac | 949 | $(AM_V_at)$(setup_py) clean --all 2>/dev/null |
8ebf1469 | 950 | $(AM_V_GEN)$(setup_py) build_ext --swig "$(SWIG)" --swig-opts '$(swig_defs)' build_py |
a9cb82ac | 951 | $(AM_V_at): >$@ |
f7740954 | 952 | |
a9cb82ac DE |
953 | python-install: |
954 | $(AM_V_at)$(MKDIR_P) "$(DESTDIR)$(prefix)" "$(DESTDIR)$(exec_prefix)" | |
452986be DE |
955 | destdir='$(DESTDIR)'; $(setup_py) install $${destdir:+"--root=$$destdir"} \ |
956 | --prefix "$(prefix)" --exec-prefix "$(exec_prefix)" | |
f7740954 | 957 | |
c26162ff | 958 | python-clean: |
a9cb82ac DE |
959 | -$(AM_V_at)rm -f $(PDIR)/timestamp |
960 | -$(AM_V_at)rm -fr $(PDIR)/doxy | |
c05a0ba5 | 961 | -$(AM_V_at)$(setup_py) clean --all 2>/dev/null |
6a8c1d68 ML |
962 | |
963 | python-doc: | |
3535a6ee | 964 | $(AM_V_at)cd $(srcdir)/$(PDIR) && SRCDIR="$(abs_srcdir)/$(PDIR)/" BUILDDIR="$(abs_builddir)/$(PDIR)/" doxygen Doxyfile 2>/dev/null |
f7740954 ML |
965 | |
966 | BUILD_EXTRA += python-build | |
967 | INSTALL_EXTRA += python-install | |
968 | CLEAN_EXTRA += python-clean | |
969 | ||
970 | endif | |
971 | ||
27d44cf6 AJ |
972 | if BINDINGS_RUBY |
973 | ||
974 | RDIR = bindings/ruby | |
975 | RDOC = $(RDIR)/doc.i | |
976 | RWRAP = $(RDIR)/classes_wrap.cpp | |
977 | ROBJ = $(RWRAP:.cpp=.o) | |
e9227902 | 978 | REXT = $(RDIR)/sigrok.$(RUBY_DLEXT) |
27d44cf6 AJ |
979 | |
980 | $(RDOC): $(srcdir)/bindings/swig/doc.py $(CPPXMLDOC) | |
17165513 | 981 | $(AM_V_at)test -d $(RDIR) || $(MKDIR_P) $(RDIR) |
27d44cf6 AJ |
982 | $(AM_V_GEN)$(PYTHON) $(srcdir)/bindings/swig/doc.py ruby $(CPPXMLDOC) > $@ |
983 | ||
d8f96097 | 984 | $(RWRAP): $(srcdir)/$(RDIR)/classes.i $(RDOC) \ |
27d44cf6 AJ |
985 | bindings/swig/classes.i bindings/swig/templates.i \ |
986 | bindings/swig/enums.i | |
d8f96097 | 987 | $(AM_V_GEN)$(SWIG) -ruby -c++ -Ibindings -Ibindings/cxx/include -I$(RDIR) $(local_includes) $(swig_defs) -o $@ $(srcdir)/$(RDIR)/classes.i |
27d44cf6 AJ |
988 | |
989 | $(ROBJ): $(RWRAP) \ | |
990 | $(library_include_HEADERS) \ | |
991 | $(nodist_library_include_HEADERS) \ | |
992 | $(bindings_cxx_libsigrokcxx_la_include_HEADERS) \ | |
993 | $(nodist_bindings_cxx_libsigrokcxx_la_include_HEADERS) | |
d8f96097 | 994 | $(AM_V_CXX)$(CXX) $(RBSIGROK_CFLAGS) -I. -Iinclude -Ibindings/cxx/include $(local_includes) -fPIC -o $@ -c $(RWRAP) |
27d44cf6 AJ |
995 | |
996 | $(REXT): $(ROBJ) @ORDER@ bindings/cxx/libsigrokcxx.la | |
d8f96097 | 997 | $(AM_V_CXXLD)$(CXX) -shared -o $@ $(ROBJ) -lsigrokcxx -Lbindings/cxx/.libs $(RBSIGROK_LIBS) |
27d44cf6 AJ |
998 | |
999 | ruby-build: $(REXT) | |
1000 | ||
1001 | ruby-install: $(REXT) | |
e9227902 | 1002 | $(INSTALL) -d $(DESTDIR)$(prefix)/$(RBSIGROK_EXTDIR) |
d8f96097 | 1003 | $(INSTALL) $(REXT) $(DESTDIR)$(prefix)/$(RBSIGROK_EXTDIR) |
27d44cf6 | 1004 | |
c4a1015a MS |
1005 | ruby-uninstall: |
1006 | rm -f $(DESTDIR)$(prefix)/$(RBSIGROK_EXTDIR)/sigrok.$(RUBY_DLEXT) | |
1007 | ||
27d44cf6 AJ |
1008 | ruby-clean: |
1009 | -$(AM_V_at)rm -fr $(RDIR)/doc | |
17165513 | 1010 | -$(AM_V_at)rm -f $(REXT) $(ROBJ) $(RWRAP) $(RDOC) |
27d44cf6 AJ |
1011 | |
1012 | ruby-doc: $(RWRAP) | |
d8f96097 | 1013 | $(AM_V_at)yard doc -o $(RDIR)/doc $(RWRAP) |
27d44cf6 AJ |
1014 | |
1015 | BUILD_EXTRA += ruby-build | |
1016 | INSTALL_EXTRA += ruby-install | |
c4a1015a | 1017 | UNINSTALL_EXTRA += ruby-uninstall |
27d44cf6 AJ |
1018 | CLEAN_EXTRA += ruby-clean |
1019 | ||
1020 | endif | |
1021 | ||
9fcf4d0b ML |
1022 | if BINDINGS_JAVA |
1023 | ||
1024 | JDIR = bindings/java | |
90bd7656 ML |
1025 | JPKG = org/sigrok/core |
1026 | JCLS = $(JDIR)/$(JPKG)/classes | |
1027 | JINT = $(JDIR)/$(JPKG)/interfaces | |
33c84e81 | 1028 | JSRC = $(JCLS)/*.java $(srcdir)/$(JINT)/*.java |
90bd7656 | 1029 | JSWG = $(JCLS)/classes.i |
bd4fda24 | 1030 | JDOC = $(JCLS)/doc.i |
90bd7656 | 1031 | JCXX = $(JCLS)/classes_wrap.cxx |
9fcf4d0b ML |
1032 | JLIB = $(JDIR)/libsigrok_java_core_classes.so |
1033 | JJAR = $(JDIR)/sigrok-core.jar | |
1034 | ||
a9cb82ac DE |
1035 | java_cleanfiles = $(JCXX) $(JCLS)/*.java $(JCLS)/*.class $(JINT)/*.class $(JJAR) $(JLIB) |
1036 | ||
9fcf4d0b ML |
1037 | java-build: $(JJAR) $(JLIB) |
1038 | ||
dbde3b65 | 1039 | $(JDOC): $(srcdir)/bindings/swig/doc.py $(CPPXMLDOC) |
f3256bb7 | 1040 | $(AM_V_at)test -d $(JCLS) || $(MKDIR_P) $(JCLS) |
dbde3b65 | 1041 | $(AM_V_GEN)$(PYTHON) $(srcdir)/bindings/swig/doc.py java $(CPPXMLDOC) > $@ |
bd4fda24 | 1042 | |
36e3f6a9 ML |
1043 | $(JCXX): $(srcdir)/$(JSWG) $(JDOC) bindings/swig/classes.i \ |
1044 | bindings/swig/templates.i bindings/swig/enums.i \ | |
fd31865e ML |
1045 | $(bindings_cxx_libsigrokcxx_la_include_HEADERS) \ |
1046 | $(nodist_bindings_cxx_libsigrokcxx_la_include_HEADERS) | |
a9cb82ac | 1047 | -$(AM_V_at)rm -f $(java_cleanfiles) |
8ebf1469 | 1048 | $(AM_V_GEN)$(SWIG) -c++ $(swig_defs) \ |
4c9208a7 | 1049 | -java -package org.sigrok.core.classes \ |
dbde3b65 DE |
1050 | -Ibindings -I$(JCLS) $(local_includes) -I$(srcdir) $(JNI_CPPFLAGS) \ |
1051 | -outdir $(JCLS) -o $@ $(srcdir)/$(JSWG) | |
9fcf4d0b | 1052 | |
90bd7656 | 1053 | $(JJAR): $(JCXX) |
1f61c22f | 1054 | $(AM_V_GEN)$(JAVAC) -d $(JDIR) $(JSRC) |
f2a189f0 | 1055 | $(AM_V_at)jar cf $(JJAR) -C $(JDIR) $(JPKG) |
9fcf4d0b | 1056 | |
fd31865e ML |
1057 | $(JLIB): $(JCXX) \ |
1058 | $(library_include_HEADERS) $(nodist_library_include_HEADERS) \ | |
1059 | $(bindings_cxx_libsigrokcxx_la_include_HEADERS) \ | |
1060 | $(nodist_bindings_cxx_libsigrokcxx_la_include_HEADERS) \ | |
ba3070ff | 1061 | @ORDER@ bindings/cxx/libsigrokcxx.la |
9d8f363d | 1062 | $(AM_V_GEN)$(CXXCOMPILE) $(JNI_CPPFLAGS) $(LDFLAGS) -L.libs -Lbindings/cxx/.libs \ |
90bd7656 | 1063 | -fno-strict-aliasing -fPIC -shared $(JCLS)/classes_wrap.cxx \ |
9d8f363d | 1064 | -lsigrokcxx $(LIBSIGROKCXX_LIBS) $(SR_EXTRA_CXX_LIBS) -o $(JLIB) |
9fcf4d0b ML |
1065 | |
1066 | java-install: | |
df705a7a | 1067 | $(INSTALL) -d $(DESTDIR)$(libdir)/jni |
8e0f9bf7 | 1068 | $(INSTALL) $(JLIB) $(DESTDIR)$(libdir)/jni |
df705a7a | 1069 | $(INSTALL) -d $(DESTDIR)$(datadir)/java |
8e0f9bf7 | 1070 | $(INSTALL) $(JJAR) $(DESTDIR)$(datadir)/java |
9fcf4d0b | 1071 | |
7252a09e DE |
1072 | java-uninstall: |
1073 | -rm -f $(DESTDIR)$(datadir)/java/sigrok-core.jar | |
1074 | -rm -f $(DESTDIR)$(libdir)/jni/libsigrok_java_core_classes.so | |
1075 | ||
9fcf4d0b | 1076 | java-clean: |
45ec8f77 | 1077 | -$(AM_V_at)rm -f $(java_cleanfiles) $(JDOC) |
a9cb82ac | 1078 | -$(AM_V_at)rm -fr $(JDIR)/doxy |
8a314e90 ML |
1079 | |
1080 | java-doc: | |
3535a6ee | 1081 | $(AM_V_at)cd $(srcdir)/$(JDIR) && SRCDIR="$(abs_srcdir)/$(JDIR)/" BUILDDIR="$(abs_builddir)/$(JDIR)/" doxygen Doxyfile |
9fcf4d0b ML |
1082 | |
1083 | BUILD_EXTRA += java-build | |
1084 | INSTALL_EXTRA += java-install | |
7252a09e | 1085 | UNINSTALL_EXTRA += java-uninstall |
9fcf4d0b ML |
1086 | CLEAN_EXTRA += java-clean |
1087 | ||
1088 | endif | |
1089 | ||
f7740954 ML |
1090 | all-local: $(BUILD_EXTRA) |
1091 | install-exec-local: $(INSTALL_EXTRA) | |
09b2ca47 | 1092 | uninstall-hook: $(UNINSTALL_EXTRA) |
d1785122 | 1093 | clean-local: $(CLEAN_EXTRA) |
f7740954 | 1094 | |
37829c15 DE |
1095 | .PHONY: dist-changelog |
1096 | ||
1097 | dist-hook: dist-changelog | |
1098 | ||
1099 | dist-changelog: | |
1100 | $(AM_V_at)if test ! -d '$(top_srcdir)/.git'; then \ | |
1101 | cp -f '$(top_srcdir)/ChangeLog' "$(top_distdir)/ChangeLog"; \ | |
1102 | elif git -C '$(top_srcdir)' log >.ChangeLog.tmp; then \ | |
1103 | mv -f .ChangeLog.tmp "$(top_distdir)/ChangeLog"; \ | |
1104 | else \ | |
1105 | rm -f .ChangeLog.tmp; exit 1; \ | |
1106 | fi | |
0fc12d66 | 1107 |