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