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