2010-04-15 18:16:53 +00:00
|
|
|
##
|
2013-04-23 20:24:30 +00:00
|
|
|
## This file is part of the libsigrok project.
|
2010-04-15 18:16:53 +00:00
|
|
|
##
|
2012-02-13 13:31:51 +00:00
|
|
|
## Copyright (C) 2010-2012 Bert Vermeulen <bert@biot.com>
|
2012-10-15 06:17:32 +00:00
|
|
|
## Copyright (C) 2012 Alexandru Gagniuc <mr.nuke.me@gmail.com>
|
2010-04-15 18:16:53 +00:00
|
|
|
##
|
2010-04-02 18:18:27 +00:00
|
|
|
## This program is free software: you can redistribute it and/or modify
|
|
|
|
## it under the terms of the GNU General Public License as published by
|
|
|
|
## the Free Software Foundation, either version 3 of the License, or
|
|
|
|
## (at your option) any later version.
|
2010-04-15 18:16:53 +00:00
|
|
|
##
|
2010-04-02 18:18:27 +00:00
|
|
|
## This program is distributed in the hope that it will be useful,
|
|
|
|
## but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
## GNU General Public License for more details.
|
2010-04-15 18:16:53 +00:00
|
|
|
##
|
2010-04-02 18:18:27 +00:00
|
|
|
## You should have received a copy of the GNU General Public License
|
|
|
|
## along with this program. If not, see <http://www.gnu.org/licenses/>.
|
2010-04-15 18:16:53 +00:00
|
|
|
##
|
2010-04-02 18:18:27 +00:00
|
|
|
|
2015-08-22 18:58:11 +00:00
|
|
|
ACLOCAL_AMFLAGS = -I m4
|
2015-08-24 20:20:30 +00:00
|
|
|
AM_LIBTOOLFLAGS = --silent
|
2015-09-10 17:35:17 +00:00
|
|
|
GNUMAKEFLAGS = --no-print-directory
|
2015-08-24 20:20:30 +00:00
|
|
|
|
2015-11-07 21:08:45 +00:00
|
|
|
# distutils/setuptools cause trouble on distcheck. Disable for now.
|
|
|
|
DISTCHECK_CONFIGURE_FLAGS = --disable-python
|
|
|
|
|
2015-08-24 20:20:30 +00:00
|
|
|
FIRMWARE_DIR = $(datadir)/sigrok-firmware
|
2011-12-30 09:42:39 +00:00
|
|
|
|
2015-08-15 16:10:50 +00:00
|
|
|
local_includes = -Iinclude -I$(srcdir)/include -I$(srcdir)/src -I.
|
2015-08-15 13:59:52 +00:00
|
|
|
if BINDINGS_CXX
|
2015-08-23 13:02:30 +00:00
|
|
|
local_includes += -Ibindings/cxx/include -I$(srcdir)/bindings/cxx/include -Ibindings/cxx
|
2015-08-15 13:59:52 +00:00
|
|
|
endif
|
2015-10-03 12:08:32 +00:00
|
|
|
# Do not hard-code the firmware location on Windows.
|
|
|
|
if WIN32
|
|
|
|
global_defs =
|
|
|
|
else
|
|
|
|
global_defs = -DFIRMWARE_DIR='"$(FIRMWARE_DIR)"'
|
|
|
|
endif
|
2015-08-15 13:59:52 +00:00
|
|
|
# Ensure that local include directories are always searched first.
|
2015-10-03 12:08:32 +00:00
|
|
|
AM_CPPFLAGS = $(local_includes) $(global_defs)
|
2011-01-08 02:32:25 +00:00
|
|
|
|
2015-08-26 11:13:39 +00:00
|
|
|
# The tests CFLAGS are a superset of the libsigrok CFLAGS, and the
|
2015-08-15 13:59:52 +00:00
|
|
|
# python bindings CFLAGS are a superset of the C++ bindings CFLAGS.
|
2015-08-26 11:13:39 +00:00
|
|
|
AM_CFLAGS = $(SR_EXTRA_CFLAGS) $(SR_WFLAGS) $(TESTS_CFLAGS)
|
2016-01-11 13:32:22 +00:00
|
|
|
AM_CXXFLAGS = $(SR_WXXFLAGS) $(LIBSIGROKCXX_CFLAGS)
|
2015-08-15 13:59:52 +00:00
|
|
|
|
2011-04-03 21:18:46 +00:00
|
|
|
lib_LTLIBRARIES = libsigrok.la
|
2010-04-02 18:18:27 +00:00
|
|
|
|
Switch to a non-recursive automake setup.
Instead of >= 44 Makefile.am's we now only have one top-level
Makefile.am, and use the 'subdir-objects' automake option to
handle the build via non-recursive (auto)make.
This has the advantage of fewer (boilerplate or other) files and less
clutter in general, as well as performance advantages since the new
setup can build many files in parallel (with 'make -j'), not only 2 or 3
files within the same (e.g. hardware/xxxx/* subdirectory) and also since
we no longer need to build intermediate libtool helper libs per subdirectory.
A quick, non-scientific test build on a quad-core laptop with 'make -j 4'
yields a build time reduction from 35s to 19s.
All autotools features that worked before are still intact without any
regressions, including the Make targets 'install', 'uninstall', 'check',
'dist', 'clean', 'distclean' and so on, as well as all the usual portability
handling (build works on any OS, with any Make implementation such as
GNU Make or BSD Make, with any shell such as sh/ksh/zsh/bash/dash, etc. etc.)
and features such as out-of-tree build support, cross-compile support,
testsuite support (also with colored output), "silent make rules", etc. etc.
2014-03-19 22:04:55 +00:00
|
|
|
# Backend files
|
2010-04-02 18:26:48 +00:00
|
|
|
libsigrok_la_SOURCES = \
|
2014-07-21 19:27:33 +00:00
|
|
|
src/backend.c \
|
2017-07-01 22:55:03 +00:00
|
|
|
src/conversion.c \
|
2014-07-21 19:27:33 +00:00
|
|
|
src/device.c \
|
|
|
|
src/session.c \
|
|
|
|
src/session_file.c \
|
|
|
|
src/session_driver.c \
|
|
|
|
src/hwdriver.c \
|
|
|
|
src/trigger.c \
|
|
|
|
src/soft-trigger.c \
|
2014-11-12 16:05:13 +00:00
|
|
|
src/analog.c \
|
2014-12-06 23:56:22 +00:00
|
|
|
src/fallback.c \
|
2015-09-26 11:38:30 +00:00
|
|
|
src/resource.c \
|
2014-07-21 19:27:33 +00:00
|
|
|
src/strutil.c \
|
|
|
|
src/log.c \
|
|
|
|
src/version.c \
|
|
|
|
src/error.c \
|
2016-05-01 11:50:08 +00:00
|
|
|
src/std.c \
|
|
|
|
src/sw_limits.c
|
2010-06-24 23:11:11 +00:00
|
|
|
|
2014-07-21 19:27:33 +00:00
|
|
|
# Input modules
|
|
|
|
libsigrok_la_SOURCES += \
|
|
|
|
src/input/input.c \
|
2014-08-19 23:29:37 +00:00
|
|
|
src/input/binary.c \
|
2014-08-19 22:43:13 +00:00
|
|
|
src/input/chronovu_la8.c \
|
2014-08-18 22:14:47 +00:00
|
|
|
src/input/csv.c \
|
input/logicport: introduce input module for LogicPort File (*.lpf)
Implement an input module for .lpf files, the "LogicPort File" format of
the Intronix LA1034 vendor software. This version supports wires with
enabled and inverted state, compressed samples, signal names, signal
groups (but not multiple assignment), and automatic format detection.
The logic which determines whether "the file header" was completely
received, and sample data can get sent to the session, implements an
assumption in the absence of a better and more reliable condition.
Invalid input gets rejected, but diagnostics is rather limited. Since
all channels get to be the member of a channel group, either specified
by the user in the input file, or arranged for in the input module, the
"missing separator" part of bug 1186 has become obsolete.
2018-04-24 21:25:25 +00:00
|
|
|
src/input/logicport.c \
|
2015-11-28 18:55:12 +00:00
|
|
|
src/input/raw_analog.c \
|
2015-12-20 19:20:56 +00:00
|
|
|
src/input/trace32_ad.c \
|
2014-08-13 12:18:12 +00:00
|
|
|
src/input/vcd.c \
|
2018-04-19 20:15:54 +00:00
|
|
|
src/input/wav.c \
|
|
|
|
src/input/null.c
|
Switch to a non-recursive automake setup.
Instead of >= 44 Makefile.am's we now only have one top-level
Makefile.am, and use the 'subdir-objects' automake option to
handle the build via non-recursive (auto)make.
This has the advantage of fewer (boilerplate or other) files and less
clutter in general, as well as performance advantages since the new
setup can build many files in parallel (with 'make -j'), not only 2 or 3
files within the same (e.g. hardware/xxxx/* subdirectory) and also since
we no longer need to build intermediate libtool helper libs per subdirectory.
A quick, non-scientific test build on a quad-core laptop with 'make -j 4'
yields a build time reduction from 35s to 19s.
All autotools features that worked before are still intact without any
regressions, including the Make targets 'install', 'uninstall', 'check',
'dist', 'clean', 'distclean' and so on, as well as all the usual portability
handling (build works on any OS, with any Make implementation such as
GNU Make or BSD Make, with any shell such as sh/ksh/zsh/bash/dash, etc. etc.)
and features such as out-of-tree build support, cross-compile support,
testsuite support (also with colored output), "silent make rules", etc. etc.
2014-03-19 22:04:55 +00:00
|
|
|
|
2014-07-21 19:27:33 +00:00
|
|
|
# Output modules
|
|
|
|
libsigrok_la_SOURCES += \
|
|
|
|
src/output/output.c \
|
|
|
|
src/output/analog.c \
|
|
|
|
src/output/ascii.c \
|
|
|
|
src/output/bits.c \
|
|
|
|
src/output/binary.c \
|
|
|
|
src/output/csv.c \
|
|
|
|
src/output/chronovu_la8.c \
|
2014-07-26 09:00:51 +00:00
|
|
|
src/output/wav.c \
|
2014-07-21 19:27:33 +00:00
|
|
|
src/output/hex.c \
|
|
|
|
src/output/ols.c \
|
2014-11-11 22:23:09 +00:00
|
|
|
src/output/srzip.c \
|
2018-04-19 18:10:50 +00:00
|
|
|
src/output/vcd.c \
|
|
|
|
src/output/null.c
|
Switch to a non-recursive automake setup.
Instead of >= 44 Makefile.am's we now only have one top-level
Makefile.am, and use the 'subdir-objects' automake option to
handle the build via non-recursive (auto)make.
This has the advantage of fewer (boilerplate or other) files and less
clutter in general, as well as performance advantages since the new
setup can build many files in parallel (with 'make -j'), not only 2 or 3
files within the same (e.g. hardware/xxxx/* subdirectory) and also since
we no longer need to build intermediate libtool helper libs per subdirectory.
A quick, non-scientific test build on a quad-core laptop with 'make -j 4'
yields a build time reduction from 35s to 19s.
All autotools features that worked before are still intact without any
regressions, including the Make targets 'install', 'uninstall', 'check',
'dist', 'clean', 'distclean' and so on, as well as all the usual portability
handling (build works on any OS, with any Make implementation such as
GNU Make or BSD Make, with any shell such as sh/ksh/zsh/bash/dash, etc. etc.)
and features such as out-of-tree build support, cross-compile support,
testsuite support (also with colored output), "silent make rules", etc. etc.
2014-03-19 22:04:55 +00:00
|
|
|
|
2015-02-10 19:49:46 +00:00
|
|
|
# Transform modules
|
|
|
|
libsigrok_la_SOURCES += \
|
2015-02-10 20:38:21 +00:00
|
|
|
src/transform/transform.c \
|
2015-02-10 21:25:52 +00:00
|
|
|
src/transform/nop.c \
|
2015-02-11 08:34:38 +00:00
|
|
|
src/transform/scale.c \
|
|
|
|
src/transform/invert.c
|
2015-02-10 19:49:46 +00:00
|
|
|
|
2014-07-21 19:27:33 +00:00
|
|
|
# SCPI support
|
Switch to a non-recursive automake setup.
Instead of >= 44 Makefile.am's we now only have one top-level
Makefile.am, and use the 'subdir-objects' automake option to
handle the build via non-recursive (auto)make.
This has the advantage of fewer (boilerplate or other) files and less
clutter in general, as well as performance advantages since the new
setup can build many files in parallel (with 'make -j'), not only 2 or 3
files within the same (e.g. hardware/xxxx/* subdirectory) and also since
we no longer need to build intermediate libtool helper libs per subdirectory.
A quick, non-scientific test build on a quad-core laptop with 'make -j 4'
yields a build time reduction from 35s to 19s.
All autotools features that worked before are still intact without any
regressions, including the Make targets 'install', 'uninstall', 'check',
'dist', 'clean', 'distclean' and so on, as well as all the usual portability
handling (build works on any OS, with any Make implementation such as
GNU Make or BSD Make, with any shell such as sh/ksh/zsh/bash/dash, etc. etc.)
and features such as out-of-tree build support, cross-compile support,
testsuite support (also with colored output), "silent make rules", etc. etc.
2014-03-19 22:04:55 +00:00
|
|
|
libsigrok_la_SOURCES += \
|
2015-11-07 20:57:20 +00:00
|
|
|
src/scpi.h \
|
2014-07-21 19:27:33 +00:00
|
|
|
src/scpi/scpi.c \
|
|
|
|
src/scpi/scpi_tcp.c
|
Switch to a non-recursive automake setup.
Instead of >= 44 Makefile.am's we now only have one top-level
Makefile.am, and use the 'subdir-objects' automake option to
handle the build via non-recursive (auto)make.
This has the advantage of fewer (boilerplate or other) files and less
clutter in general, as well as performance advantages since the new
setup can build many files in parallel (with 'make -j'), not only 2 or 3
files within the same (e.g. hardware/xxxx/* subdirectory) and also since
we no longer need to build intermediate libtool helper libs per subdirectory.
A quick, non-scientific test build on a quad-core laptop with 'make -j 4'
yields a build time reduction from 35s to 19s.
All autotools features that worked before are still intact without any
regressions, including the Make targets 'install', 'uninstall', 'check',
'dist', 'clean', 'distclean' and so on, as well as all the usual portability
handling (build works on any OS, with any Make implementation such as
GNU Make or BSD Make, with any shell such as sh/ksh/zsh/bash/dash, etc. etc.)
and features such as out-of-tree build support, cross-compile support,
testsuite support (also with colored output), "silent make rules", etc. etc.
2014-03-19 22:04:55 +00:00
|
|
|
if NEED_RPC
|
|
|
|
libsigrok_la_SOURCES += \
|
2014-07-21 19:27:33 +00:00
|
|
|
src/scpi/scpi_vxi.c \
|
|
|
|
src/scpi/vxi_clnt.c \
|
|
|
|
src/scpi/vxi_xdr.c \
|
|
|
|
src/scpi/vxi.h
|
Switch to a non-recursive automake setup.
Instead of >= 44 Makefile.am's we now only have one top-level
Makefile.am, and use the 'subdir-objects' automake option to
handle the build via non-recursive (auto)make.
This has the advantage of fewer (boilerplate or other) files and less
clutter in general, as well as performance advantages since the new
setup can build many files in parallel (with 'make -j'), not only 2 or 3
files within the same (e.g. hardware/xxxx/* subdirectory) and also since
we no longer need to build intermediate libtool helper libs per subdirectory.
A quick, non-scientific test build on a quad-core laptop with 'make -j 4'
yields a build time reduction from 35s to 19s.
All autotools features that worked before are still intact without any
regressions, including the Make targets 'install', 'uninstall', 'check',
'dist', 'clean', 'distclean' and so on, as well as all the usual portability
handling (build works on any OS, with any Make implementation such as
GNU Make or BSD Make, with any shell such as sh/ksh/zsh/bash/dash, etc. etc.)
and features such as out-of-tree build support, cross-compile support,
testsuite support (also with colored output), "silent make rules", etc. etc.
2014-03-19 22:04:55 +00:00
|
|
|
endif
|
|
|
|
if NEED_SERIAL
|
|
|
|
libsigrok_la_SOURCES += \
|
2014-07-21 19:27:33 +00:00
|
|
|
src/serial.c \
|
|
|
|
src/scpi/scpi_serial.c
|
Switch to a non-recursive automake setup.
Instead of >= 44 Makefile.am's we now only have one top-level
Makefile.am, and use the 'subdir-objects' automake option to
handle the build via non-recursive (auto)make.
This has the advantage of fewer (boilerplate or other) files and less
clutter in general, as well as performance advantages since the new
setup can build many files in parallel (with 'make -j'), not only 2 or 3
files within the same (e.g. hardware/xxxx/* subdirectory) and also since
we no longer need to build intermediate libtool helper libs per subdirectory.
A quick, non-scientific test build on a quad-core laptop with 'make -j 4'
yields a build time reduction from 35s to 19s.
All autotools features that worked before are still intact without any
regressions, including the Make targets 'install', 'uninstall', 'check',
'dist', 'clean', 'distclean' and so on, as well as all the usual portability
handling (build works on any OS, with any Make implementation such as
GNU Make or BSD Make, with any shell such as sh/ksh/zsh/bash/dash, etc. etc.)
and features such as out-of-tree build support, cross-compile support,
testsuite support (also with colored output), "silent make rules", etc. etc.
2014-03-19 22:04:55 +00:00
|
|
|
endif
|
|
|
|
if NEED_USB
|
|
|
|
libsigrok_la_SOURCES += \
|
2014-07-21 19:27:33 +00:00
|
|
|
src/ezusb.c \
|
|
|
|
src/usb.c \
|
|
|
|
src/scpi/scpi_usbtmc_libusb.c
|
Switch to a non-recursive automake setup.
Instead of >= 44 Makefile.am's we now only have one top-level
Makefile.am, and use the 'subdir-objects' automake option to
handle the build via non-recursive (auto)make.
This has the advantage of fewer (boilerplate or other) files and less
clutter in general, as well as performance advantages since the new
setup can build many files in parallel (with 'make -j'), not only 2 or 3
files within the same (e.g. hardware/xxxx/* subdirectory) and also since
we no longer need to build intermediate libtool helper libs per subdirectory.
A quick, non-scientific test build on a quad-core laptop with 'make -j 4'
yields a build time reduction from 35s to 19s.
All autotools features that worked before are still intact without any
regressions, including the Make targets 'install', 'uninstall', 'check',
'dist', 'clean', 'distclean' and so on, as well as all the usual portability
handling (build works on any OS, with any Make implementation such as
GNU Make or BSD Make, with any shell such as sh/ksh/zsh/bash/dash, etc. etc.)
and features such as out-of-tree build support, cross-compile support,
testsuite support (also with colored output), "silent make rules", etc. etc.
2014-03-19 22:04:55 +00:00
|
|
|
endif
|
|
|
|
if NEED_VISA
|
|
|
|
libsigrok_la_SOURCES += \
|
2014-07-21 19:27:33 +00:00
|
|
|
src/scpi/scpi_visa.c
|
Switch to a non-recursive automake setup.
Instead of >= 44 Makefile.am's we now only have one top-level
Makefile.am, and use the 'subdir-objects' automake option to
handle the build via non-recursive (auto)make.
This has the advantage of fewer (boilerplate or other) files and less
clutter in general, as well as performance advantages since the new
setup can build many files in parallel (with 'make -j'), not only 2 or 3
files within the same (e.g. hardware/xxxx/* subdirectory) and also since
we no longer need to build intermediate libtool helper libs per subdirectory.
A quick, non-scientific test build on a quad-core laptop with 'make -j 4'
yields a build time reduction from 35s to 19s.
All autotools features that worked before are still intact without any
regressions, including the Make targets 'install', 'uninstall', 'check',
'dist', 'clean', 'distclean' and so on, as well as all the usual portability
handling (build works on any OS, with any Make implementation such as
GNU Make or BSD Make, with any shell such as sh/ksh/zsh/bash/dash, etc. etc.)
and features such as out-of-tree build support, cross-compile support,
testsuite support (also with colored output), "silent make rules", etc. etc.
2014-03-19 22:04:55 +00:00
|
|
|
endif
|
2014-09-05 09:34:04 +00:00
|
|
|
if NEED_GPIB
|
|
|
|
libsigrok_la_SOURCES += \
|
2014-09-05 16:33:48 +00:00
|
|
|
src/scpi/scpi_libgpib.c
|
2014-09-05 09:34:04 +00:00
|
|
|
endif
|
Switch to a non-recursive automake setup.
Instead of >= 44 Makefile.am's we now only have one top-level
Makefile.am, and use the 'subdir-objects' automake option to
handle the build via non-recursive (auto)make.
This has the advantage of fewer (boilerplate or other) files and less
clutter in general, as well as performance advantages since the new
setup can build many files in parallel (with 'make -j'), not only 2 or 3
files within the same (e.g. hardware/xxxx/* subdirectory) and also since
we no longer need to build intermediate libtool helper libs per subdirectory.
A quick, non-scientific test build on a quad-core laptop with 'make -j 4'
yields a build time reduction from 35s to 19s.
All autotools features that worked before are still intact without any
regressions, including the Make targets 'install', 'uninstall', 'check',
'dist', 'clean', 'distclean' and so on, as well as all the usual portability
handling (build works on any OS, with any Make implementation such as
GNU Make or BSD Make, with any shell such as sh/ksh/zsh/bash/dash, etc. etc.)
and features such as out-of-tree build support, cross-compile support,
testsuite support (also with colored output), "silent make rules", etc. etc.
2014-03-19 22:04:55 +00:00
|
|
|
|
2015-06-07 18:40:32 +00:00
|
|
|
# Modbus support
|
2015-02-22 23:13:31 +00:00
|
|
|
libsigrok_la_SOURCES += \
|
|
|
|
src/modbus/modbus.c
|
2015-02-22 23:20:26 +00:00
|
|
|
if NEED_SERIAL
|
|
|
|
libsigrok_la_SOURCES += \
|
|
|
|
src/modbus/modbus_serial_rtu.c
|
|
|
|
endif
|
2015-02-22 23:13:31 +00:00
|
|
|
|
2014-07-21 19:27:33 +00:00
|
|
|
# Hardware (DMM chip parsers)
|
|
|
|
libsigrok_la_SOURCES += \
|
|
|
|
src/dmm/es519xx.c \
|
|
|
|
src/dmm/fs9721.c \
|
|
|
|
src/dmm/fs9922.c \
|
|
|
|
src/dmm/m2110.c \
|
|
|
|
src/dmm/metex14.c \
|
2016-11-28 00:01:15 +00:00
|
|
|
src/dmm/asycii.c \
|
2014-07-30 07:28:58 +00:00
|
|
|
src/dmm/rs9lcd.c \
|
2014-10-25 09:36:58 +00:00
|
|
|
src/dmm/bm25x.c \
|
2015-03-01 21:13:30 +00:00
|
|
|
src/dmm/ut71x.c \
|
2014-12-29 22:30:41 +00:00
|
|
|
src/dmm/ut372.c \
|
2015-11-04 21:58:15 +00:00
|
|
|
src/dmm/vc870.c \
|
2018-04-12 19:09:20 +00:00
|
|
|
src/dmm/dtm0660.c \
|
2018-06-10 18:25:32 +00:00
|
|
|
src/dmm/ms8250d.c \
|
|
|
|
src/dmm/vc96.c
|
Switch to a non-recursive automake setup.
Instead of >= 44 Makefile.am's we now only have one top-level
Makefile.am, and use the 'subdir-objects' automake option to
handle the build via non-recursive (auto)make.
This has the advantage of fewer (boilerplate or other) files and less
clutter in general, as well as performance advantages since the new
setup can build many files in parallel (with 'make -j'), not only 2 or 3
files within the same (e.g. hardware/xxxx/* subdirectory) and also since
we no longer need to build intermediate libtool helper libs per subdirectory.
A quick, non-scientific test build on a quad-core laptop with 'make -j 4'
yields a build time reduction from 35s to 19s.
All autotools features that worked before are still intact without any
regressions, including the Make targets 'install', 'uninstall', 'check',
'dist', 'clean', 'distclean' and so on, as well as all the usual portability
handling (build works on any OS, with any Make implementation such as
GNU Make or BSD Make, with any shell such as sh/ksh/zsh/bash/dash, etc. etc.)
and features such as out-of-tree build support, cross-compile support,
testsuite support (also with colored output), "silent make rules", etc. etc.
2014-03-19 22:04:55 +00:00
|
|
|
|
2014-10-11 12:47:34 +00:00
|
|
|
# Hardware (LCR chip parsers)
|
2015-01-31 21:41:04 +00:00
|
|
|
if NEED_SERIAL
|
2014-10-11 12:47:34 +00:00
|
|
|
libsigrok_la_SOURCES += \
|
|
|
|
src/lcr/es51919.c
|
2015-01-31 21:41:04 +00:00
|
|
|
endif
|
2014-10-11 12:47:34 +00:00
|
|
|
|
2015-08-27 19:21:03 +00:00
|
|
|
# Hardware (Scale protocol parsers)
|
|
|
|
libsigrok_la_SOURCES += \
|
|
|
|
src/scale/kern.c
|
|
|
|
|
Switch to a non-recursive automake setup.
Instead of >= 44 Makefile.am's we now only have one top-level
Makefile.am, and use the 'subdir-objects' automake option to
handle the build via non-recursive (auto)make.
This has the advantage of fewer (boilerplate or other) files and less
clutter in general, as well as performance advantages since the new
setup can build many files in parallel (with 'make -j'), not only 2 or 3
files within the same (e.g. hardware/xxxx/* subdirectory) and also since
we no longer need to build intermediate libtool helper libs per subdirectory.
A quick, non-scientific test build on a quad-core laptop with 'make -j 4'
yields a build time reduction from 35s to 19s.
All autotools features that worked before are still intact without any
regressions, including the Make targets 'install', 'uninstall', 'check',
'dist', 'clean', 'distclean' and so on, as well as all the usual portability
handling (build works on any OS, with any Make implementation such as
GNU Make or BSD Make, with any shell such as sh/ksh/zsh/bash/dash, etc. etc.)
and features such as out-of-tree build support, cross-compile support,
testsuite support (also with colored output), "silent make rules", etc. etc.
2014-03-19 22:04:55 +00:00
|
|
|
# Hardware drivers
|
2017-08-20 07:53:06 +00:00
|
|
|
noinst_LTLIBRARIES = src/libdrivers.la \
|
|
|
|
src/libdrivers_head.la src/libdrivers_tail.la
|
2016-05-12 13:13:47 +00:00
|
|
|
|
2017-08-20 07:53:06 +00:00
|
|
|
src/libdrivers.o: src/libdrivers.la \
|
|
|
|
src/libdrivers_head.la src/libdrivers_tail.la
|
|
|
|
$(AM_V_CCLD)$(LINK) src/libdrivers_head.la src/libdrivers.la \
|
|
|
|
src/libdrivers_tail.la
|
2016-06-05 21:10:44 +00:00
|
|
|
src/libdrivers.lo: src/libdrivers.o
|
|
|
|
$(AM_V_GEN)echo "# Generated by libtool" > $@
|
|
|
|
$(AM_V_at)echo "pic_object='libdrivers.o'" >> $@
|
|
|
|
$(AM_V_at)echo "non_pic_object='libdrivers.o'" >> $@
|
|
|
|
|
2017-08-20 07:53:06 +00:00
|
|
|
src_libdrivers_head_la_SOURCES = src/driver_list_start.c
|
|
|
|
|
|
|
|
src_libdrivers_tail_la_SOURCES = src/driver_list_stop.c
|
|
|
|
|
2016-06-05 21:10:44 +00:00
|
|
|
src_libdrivers_la_SOURCES = src/drivers.c
|
2016-05-12 13:13:47 +00:00
|
|
|
|
Switch to a non-recursive automake setup.
Instead of >= 44 Makefile.am's we now only have one top-level
Makefile.am, and use the 'subdir-objects' automake option to
handle the build via non-recursive (auto)make.
This has the advantage of fewer (boilerplate or other) files and less
clutter in general, as well as performance advantages since the new
setup can build many files in parallel (with 'make -j'), not only 2 or 3
files within the same (e.g. hardware/xxxx/* subdirectory) and also since
we no longer need to build intermediate libtool helper libs per subdirectory.
A quick, non-scientific test build on a quad-core laptop with 'make -j 4'
yields a build time reduction from 35s to 19s.
All autotools features that worked before are still intact without any
regressions, including the Make targets 'install', 'uninstall', 'check',
'dist', 'clean', 'distclean' and so on, as well as all the usual portability
handling (build works on any OS, with any Make implementation such as
GNU Make or BSD Make, with any shell such as sh/ksh/zsh/bash/dash, etc. etc.)
and features such as out-of-tree build support, cross-compile support,
testsuite support (also with colored output), "silent make rules", etc. etc.
2014-03-19 22:04:55 +00:00
|
|
|
if HW_AGILENT_DMM
|
2016-06-05 21:10:44 +00:00
|
|
|
src_libdrivers_la_SOURCES += \
|
2016-09-18 16:50:11 +00:00
|
|
|
src/hardware/agilent-dmm/protocol.h \
|
|
|
|
src/hardware/agilent-dmm/protocol.c \
|
|
|
|
src/hardware/agilent-dmm/api.c
|
Switch to a non-recursive automake setup.
Instead of >= 44 Makefile.am's we now only have one top-level
Makefile.am, and use the 'subdir-objects' automake option to
handle the build via non-recursive (auto)make.
This has the advantage of fewer (boilerplate or other) files and less
clutter in general, as well as performance advantages since the new
setup can build many files in parallel (with 'make -j'), not only 2 or 3
files within the same (e.g. hardware/xxxx/* subdirectory) and also since
we no longer need to build intermediate libtool helper libs per subdirectory.
A quick, non-scientific test build on a quad-core laptop with 'make -j 4'
yields a build time reduction from 35s to 19s.
All autotools features that worked before are still intact without any
regressions, including the Make targets 'install', 'uninstall', 'check',
'dist', 'clean', 'distclean' and so on, as well as all the usual portability
handling (build works on any OS, with any Make implementation such as
GNU Make or BSD Make, with any shell such as sh/ksh/zsh/bash/dash, etc. etc.)
and features such as out-of-tree build support, cross-compile support,
testsuite support (also with colored output), "silent make rules", etc. etc.
2014-03-19 22:04:55 +00:00
|
|
|
endif
|
|
|
|
if HW_APPA_55II
|
2016-06-05 21:10:44 +00:00
|
|
|
src_libdrivers_la_SOURCES += \
|
2014-07-21 19:27:33 +00:00
|
|
|
src/hardware/appa-55ii/protocol.h \
|
|
|
|
src/hardware/appa-55ii/protocol.c \
|
|
|
|
src/hardware/appa-55ii/api.c
|
Switch to a non-recursive automake setup.
Instead of >= 44 Makefile.am's we now only have one top-level
Makefile.am, and use the 'subdir-objects' automake option to
handle the build via non-recursive (auto)make.
This has the advantage of fewer (boilerplate or other) files and less
clutter in general, as well as performance advantages since the new
setup can build many files in parallel (with 'make -j'), not only 2 or 3
files within the same (e.g. hardware/xxxx/* subdirectory) and also since
we no longer need to build intermediate libtool helper libs per subdirectory.
A quick, non-scientific test build on a quad-core laptop with 'make -j 4'
yields a build time reduction from 35s to 19s.
All autotools features that worked before are still intact without any
regressions, including the Make targets 'install', 'uninstall', 'check',
'dist', 'clean', 'distclean' and so on, as well as all the usual portability
handling (build works on any OS, with any Make implementation such as
GNU Make or BSD Make, with any shell such as sh/ksh/zsh/bash/dash, etc. etc.)
and features such as out-of-tree build support, cross-compile support,
testsuite support (also with colored output), "silent make rules", etc. etc.
2014-03-19 22:04:55 +00:00
|
|
|
endif
|
2015-12-29 00:58:05 +00:00
|
|
|
if HW_ARACHNID_LABS_RE_LOAD_PRO
|
2016-06-05 21:10:44 +00:00
|
|
|
src_libdrivers_la_SOURCES += \
|
2015-12-29 00:58:05 +00:00
|
|
|
src/hardware/arachnid-labs-re-load-pro/protocol.h \
|
|
|
|
src/hardware/arachnid-labs-re-load-pro/protocol.c \
|
|
|
|
src/hardware/arachnid-labs-re-load-pro/api.c
|
|
|
|
endif
|
Switch to a non-recursive automake setup.
Instead of >= 44 Makefile.am's we now only have one top-level
Makefile.am, and use the 'subdir-objects' automake option to
handle the build via non-recursive (auto)make.
This has the advantage of fewer (boilerplate or other) files and less
clutter in general, as well as performance advantages since the new
setup can build many files in parallel (with 'make -j'), not only 2 or 3
files within the same (e.g. hardware/xxxx/* subdirectory) and also since
we no longer need to build intermediate libtool helper libs per subdirectory.
A quick, non-scientific test build on a quad-core laptop with 'make -j 4'
yields a build time reduction from 35s to 19s.
All autotools features that worked before are still intact without any
regressions, including the Make targets 'install', 'uninstall', 'check',
'dist', 'clean', 'distclean' and so on, as well as all the usual portability
handling (build works on any OS, with any Make implementation such as
GNU Make or BSD Make, with any shell such as sh/ksh/zsh/bash/dash, etc. etc.)
and features such as out-of-tree build support, cross-compile support,
testsuite support (also with colored output), "silent make rules", etc. etc.
2014-03-19 22:04:55 +00:00
|
|
|
if HW_ASIX_SIGMA
|
2016-06-05 21:10:44 +00:00
|
|
|
src_libdrivers_la_SOURCES += \
|
2015-11-05 10:41:27 +00:00
|
|
|
src/hardware/asix-sigma/protocol.h \
|
|
|
|
src/hardware/asix-sigma/protocol.c \
|
|
|
|
src/hardware/asix-sigma/api.c
|
Switch to a non-recursive automake setup.
Instead of >= 44 Makefile.am's we now only have one top-level
Makefile.am, and use the 'subdir-objects' automake option to
handle the build via non-recursive (auto)make.
This has the advantage of fewer (boilerplate or other) files and less
clutter in general, as well as performance advantages since the new
setup can build many files in parallel (with 'make -j'), not only 2 or 3
files within the same (e.g. hardware/xxxx/* subdirectory) and also since
we no longer need to build intermediate libtool helper libs per subdirectory.
A quick, non-scientific test build on a quad-core laptop with 'make -j 4'
yields a build time reduction from 35s to 19s.
All autotools features that worked before are still intact without any
regressions, including the Make targets 'install', 'uninstall', 'check',
'dist', 'clean', 'distclean' and so on, as well as all the usual portability
handling (build works on any OS, with any Make implementation such as
GNU Make or BSD Make, with any shell such as sh/ksh/zsh/bash/dash, etc. etc.)
and features such as out-of-tree build support, cross-compile support,
testsuite support (also with colored output), "silent make rules", etc. etc.
2014-03-19 22:04:55 +00:00
|
|
|
endif
|
|
|
|
if HW_ATTEN_PPS3XXX
|
2016-06-05 21:10:44 +00:00
|
|
|
src_libdrivers_la_SOURCES += \
|
2014-07-21 19:27:33 +00:00
|
|
|
src/hardware/atten-pps3xxx/protocol.h \
|
|
|
|
src/hardware/atten-pps3xxx/protocol.c \
|
|
|
|
src/hardware/atten-pps3xxx/api.c
|
Switch to a non-recursive automake setup.
Instead of >= 44 Makefile.am's we now only have one top-level
Makefile.am, and use the 'subdir-objects' automake option to
handle the build via non-recursive (auto)make.
This has the advantage of fewer (boilerplate or other) files and less
clutter in general, as well as performance advantages since the new
setup can build many files in parallel (with 'make -j'), not only 2 or 3
files within the same (e.g. hardware/xxxx/* subdirectory) and also since
we no longer need to build intermediate libtool helper libs per subdirectory.
A quick, non-scientific test build on a quad-core laptop with 'make -j 4'
yields a build time reduction from 35s to 19s.
All autotools features that worked before are still intact without any
regressions, including the Make targets 'install', 'uninstall', 'check',
'dist', 'clean', 'distclean' and so on, as well as all the usual portability
handling (build works on any OS, with any Make implementation such as
GNU Make or BSD Make, with any shell such as sh/ksh/zsh/bash/dash, etc. etc.)
and features such as out-of-tree build support, cross-compile support,
testsuite support (also with colored output), "silent make rules", etc. etc.
2014-03-19 22:04:55 +00:00
|
|
|
endif
|
2015-02-12 13:53:49 +00:00
|
|
|
if HW_BAYLIBRE_ACME
|
2016-06-05 21:10:44 +00:00
|
|
|
src_libdrivers_la_SOURCES += \
|
2015-02-12 13:53:49 +00:00
|
|
|
src/hardware/baylibre-acme/protocol.h \
|
|
|
|
src/hardware/baylibre-acme/protocol.c \
|
2015-02-12 13:53:54 +00:00
|
|
|
src/hardware/baylibre-acme/api.c \
|
|
|
|
src/hardware/baylibre-acme/gpio.h \
|
|
|
|
src/hardware/baylibre-acme/gpio.c
|
2015-02-12 13:53:49 +00:00
|
|
|
endif
|
2014-07-21 20:11:52 +00:00
|
|
|
if HW_BEAGLELOGIC
|
2016-06-05 21:10:44 +00:00
|
|
|
src_libdrivers_la_SOURCES += \
|
2014-07-22 20:50:06 +00:00
|
|
|
src/hardware/beaglelogic/beaglelogic.h \
|
2014-07-21 19:27:33 +00:00
|
|
|
src/hardware/beaglelogic/protocol.h \
|
|
|
|
src/hardware/beaglelogic/protocol.c \
|
2017-07-24 14:46:05 +00:00
|
|
|
src/hardware/beaglelogic/api.c \
|
2017-09-21 16:24:17 +00:00
|
|
|
src/hardware/beaglelogic/beaglelogic_native.c \
|
|
|
|
src/hardware/beaglelogic/beaglelogic_tcp.c
|
2014-07-21 20:11:52 +00:00
|
|
|
endif
|
Switch to a non-recursive automake setup.
Instead of >= 44 Makefile.am's we now only have one top-level
Makefile.am, and use the 'subdir-objects' automake option to
handle the build via non-recursive (auto)make.
This has the advantage of fewer (boilerplate or other) files and less
clutter in general, as well as performance advantages since the new
setup can build many files in parallel (with 'make -j'), not only 2 or 3
files within the same (e.g. hardware/xxxx/* subdirectory) and also since
we no longer need to build intermediate libtool helper libs per subdirectory.
A quick, non-scientific test build on a quad-core laptop with 'make -j 4'
yields a build time reduction from 35s to 19s.
All autotools features that worked before are still intact without any
regressions, including the Make targets 'install', 'uninstall', 'check',
'dist', 'clean', 'distclean' and so on, as well as all the usual portability
handling (build works on any OS, with any Make implementation such as
GNU Make or BSD Make, with any shell such as sh/ksh/zsh/bash/dash, etc. etc.)
and features such as out-of-tree build support, cross-compile support,
testsuite support (also with colored output), "silent make rules", etc. etc.
2014-03-19 22:04:55 +00:00
|
|
|
if HW_BRYMEN_BM86X
|
2016-06-05 21:10:44 +00:00
|
|
|
src_libdrivers_la_SOURCES += \
|
2014-07-21 19:27:33 +00:00
|
|
|
src/hardware/brymen-bm86x/protocol.h \
|
|
|
|
src/hardware/brymen-bm86x/protocol.c \
|
|
|
|
src/hardware/brymen-bm86x/api.c
|
Switch to a non-recursive automake setup.
Instead of >= 44 Makefile.am's we now only have one top-level
Makefile.am, and use the 'subdir-objects' automake option to
handle the build via non-recursive (auto)make.
This has the advantage of fewer (boilerplate or other) files and less
clutter in general, as well as performance advantages since the new
setup can build many files in parallel (with 'make -j'), not only 2 or 3
files within the same (e.g. hardware/xxxx/* subdirectory) and also since
we no longer need to build intermediate libtool helper libs per subdirectory.
A quick, non-scientific test build on a quad-core laptop with 'make -j 4'
yields a build time reduction from 35s to 19s.
All autotools features that worked before are still intact without any
regressions, including the Make targets 'install', 'uninstall', 'check',
'dist', 'clean', 'distclean' and so on, as well as all the usual portability
handling (build works on any OS, with any Make implementation such as
GNU Make or BSD Make, with any shell such as sh/ksh/zsh/bash/dash, etc. etc.)
and features such as out-of-tree build support, cross-compile support,
testsuite support (also with colored output), "silent make rules", etc. etc.
2014-03-19 22:04:55 +00:00
|
|
|
endif
|
|
|
|
if HW_BRYMEN_DMM
|
2016-06-05 21:10:44 +00:00
|
|
|
src_libdrivers_la_SOURCES += \
|
2014-07-21 19:27:33 +00:00
|
|
|
src/hardware/brymen-dmm/parser.c \
|
|
|
|
src/hardware/brymen-dmm/protocol.h \
|
|
|
|
src/hardware/brymen-dmm/protocol.c \
|
|
|
|
src/hardware/brymen-dmm/api.c
|
Switch to a non-recursive automake setup.
Instead of >= 44 Makefile.am's we now only have one top-level
Makefile.am, and use the 'subdir-objects' automake option to
handle the build via non-recursive (auto)make.
This has the advantage of fewer (boilerplate or other) files and less
clutter in general, as well as performance advantages since the new
setup can build many files in parallel (with 'make -j'), not only 2 or 3
files within the same (e.g. hardware/xxxx/* subdirectory) and also since
we no longer need to build intermediate libtool helper libs per subdirectory.
A quick, non-scientific test build on a quad-core laptop with 'make -j 4'
yields a build time reduction from 35s to 19s.
All autotools features that worked before are still intact without any
regressions, including the Make targets 'install', 'uninstall', 'check',
'dist', 'clean', 'distclean' and so on, as well as all the usual portability
handling (build works on any OS, with any Make implementation such as
GNU Make or BSD Make, with any shell such as sh/ksh/zsh/bash/dash, etc. etc.)
and features such as out-of-tree build support, cross-compile support,
testsuite support (also with colored output), "silent make rules", etc. etc.
2014-03-19 22:04:55 +00:00
|
|
|
endif
|
|
|
|
if HW_CEM_DT_885X
|
2016-06-05 21:10:44 +00:00
|
|
|
src_libdrivers_la_SOURCES += \
|
2014-07-21 19:27:33 +00:00
|
|
|
src/hardware/cem-dt-885x/protocol.h \
|
|
|
|
src/hardware/cem-dt-885x/protocol.c \
|
|
|
|
src/hardware/cem-dt-885x/api.c
|
Switch to a non-recursive automake setup.
Instead of >= 44 Makefile.am's we now only have one top-level
Makefile.am, and use the 'subdir-objects' automake option to
handle the build via non-recursive (auto)make.
This has the advantage of fewer (boilerplate or other) files and less
clutter in general, as well as performance advantages since the new
setup can build many files in parallel (with 'make -j'), not only 2 or 3
files within the same (e.g. hardware/xxxx/* subdirectory) and also since
we no longer need to build intermediate libtool helper libs per subdirectory.
A quick, non-scientific test build on a quad-core laptop with 'make -j 4'
yields a build time reduction from 35s to 19s.
All autotools features that worked before are still intact without any
regressions, including the Make targets 'install', 'uninstall', 'check',
'dist', 'clean', 'distclean' and so on, as well as all the usual portability
handling (build works on any OS, with any Make implementation such as
GNU Make or BSD Make, with any shell such as sh/ksh/zsh/bash/dash, etc. etc.)
and features such as out-of-tree build support, cross-compile support,
testsuite support (also with colored output), "silent make rules", etc. etc.
2014-03-19 22:04:55 +00:00
|
|
|
endif
|
|
|
|
if HW_CENTER_3XX
|
2016-06-05 21:10:44 +00:00
|
|
|
src_libdrivers_la_SOURCES += \
|
2014-07-21 19:27:33 +00:00
|
|
|
src/hardware/center-3xx/protocol.h \
|
|
|
|
src/hardware/center-3xx/protocol.c \
|
|
|
|
src/hardware/center-3xx/api.c
|
Switch to a non-recursive automake setup.
Instead of >= 44 Makefile.am's we now only have one top-level
Makefile.am, and use the 'subdir-objects' automake option to
handle the build via non-recursive (auto)make.
This has the advantage of fewer (boilerplate or other) files and less
clutter in general, as well as performance advantages since the new
setup can build many files in parallel (with 'make -j'), not only 2 or 3
files within the same (e.g. hardware/xxxx/* subdirectory) and also since
we no longer need to build intermediate libtool helper libs per subdirectory.
A quick, non-scientific test build on a quad-core laptop with 'make -j 4'
yields a build time reduction from 35s to 19s.
All autotools features that worked before are still intact without any
regressions, including the Make targets 'install', 'uninstall', 'check',
'dist', 'clean', 'distclean' and so on, as well as all the usual portability
handling (build works on any OS, with any Make implementation such as
GNU Make or BSD Make, with any shell such as sh/ksh/zsh/bash/dash, etc. etc.)
and features such as out-of-tree build support, cross-compile support,
testsuite support (also with colored output), "silent make rules", etc. etc.
2014-03-19 22:04:55 +00:00
|
|
|
endif
|
2014-04-01 19:47:11 +00:00
|
|
|
if HW_CHRONOVU_LA
|
2016-06-05 21:10:44 +00:00
|
|
|
src_libdrivers_la_SOURCES += \
|
2014-07-21 19:27:33 +00:00
|
|
|
src/hardware/chronovu-la/protocol.h \
|
|
|
|
src/hardware/chronovu-la/protocol.c \
|
|
|
|
src/hardware/chronovu-la/api.c
|
Switch to a non-recursive automake setup.
Instead of >= 44 Makefile.am's we now only have one top-level
Makefile.am, and use the 'subdir-objects' automake option to
handle the build via non-recursive (auto)make.
This has the advantage of fewer (boilerplate or other) files and less
clutter in general, as well as performance advantages since the new
setup can build many files in parallel (with 'make -j'), not only 2 or 3
files within the same (e.g. hardware/xxxx/* subdirectory) and also since
we no longer need to build intermediate libtool helper libs per subdirectory.
A quick, non-scientific test build on a quad-core laptop with 'make -j 4'
yields a build time reduction from 35s to 19s.
All autotools features that worked before are still intact without any
regressions, including the Make targets 'install', 'uninstall', 'check',
'dist', 'clean', 'distclean' and so on, as well as all the usual portability
handling (build works on any OS, with any Make implementation such as
GNU Make or BSD Make, with any shell such as sh/ksh/zsh/bash/dash, etc. etc.)
and features such as out-of-tree build support, cross-compile support,
testsuite support (also with colored output), "silent make rules", etc. etc.
2014-03-19 22:04:55 +00:00
|
|
|
endif
|
|
|
|
if HW_COLEAD_SLM
|
2016-06-05 21:10:44 +00:00
|
|
|
src_libdrivers_la_SOURCES += \
|
2014-07-21 19:27:33 +00:00
|
|
|
src/hardware/colead-slm/protocol.h \
|
|
|
|
src/hardware/colead-slm/protocol.c \
|
|
|
|
src/hardware/colead-slm/api.c
|
Switch to a non-recursive automake setup.
Instead of >= 44 Makefile.am's we now only have one top-level
Makefile.am, and use the 'subdir-objects' automake option to
handle the build via non-recursive (auto)make.
This has the advantage of fewer (boilerplate or other) files and less
clutter in general, as well as performance advantages since the new
setup can build many files in parallel (with 'make -j'), not only 2 or 3
files within the same (e.g. hardware/xxxx/* subdirectory) and also since
we no longer need to build intermediate libtool helper libs per subdirectory.
A quick, non-scientific test build on a quad-core laptop with 'make -j 4'
yields a build time reduction from 35s to 19s.
All autotools features that worked before are still intact without any
regressions, including the Make targets 'install', 'uninstall', 'check',
'dist', 'clean', 'distclean' and so on, as well as all the usual portability
handling (build works on any OS, with any Make implementation such as
GNU Make or BSD Make, with any shell such as sh/ksh/zsh/bash/dash, etc. etc.)
and features such as out-of-tree build support, cross-compile support,
testsuite support (also with colored output), "silent make rules", etc. etc.
2014-03-19 22:04:55 +00:00
|
|
|
endif
|
|
|
|
if HW_CONRAD_DIGI_35_CPU
|
2016-06-05 21:10:44 +00:00
|
|
|
src_libdrivers_la_SOURCES += \
|
2014-07-21 19:27:33 +00:00
|
|
|
src/hardware/conrad-digi-35-cpu/protocol.h \
|
|
|
|
src/hardware/conrad-digi-35-cpu/protocol.c \
|
|
|
|
src/hardware/conrad-digi-35-cpu/api.c
|
Switch to a non-recursive automake setup.
Instead of >= 44 Makefile.am's we now only have one top-level
Makefile.am, and use the 'subdir-objects' automake option to
handle the build via non-recursive (auto)make.
This has the advantage of fewer (boilerplate or other) files and less
clutter in general, as well as performance advantages since the new
setup can build many files in parallel (with 'make -j'), not only 2 or 3
files within the same (e.g. hardware/xxxx/* subdirectory) and also since
we no longer need to build intermediate libtool helper libs per subdirectory.
A quick, non-scientific test build on a quad-core laptop with 'make -j 4'
yields a build time reduction from 35s to 19s.
All autotools features that worked before are still intact without any
regressions, including the Make targets 'install', 'uninstall', 'check',
'dist', 'clean', 'distclean' and so on, as well as all the usual portability
handling (build works on any OS, with any Make implementation such as
GNU Make or BSD Make, with any shell such as sh/ksh/zsh/bash/dash, etc. etc.)
and features such as out-of-tree build support, cross-compile support,
testsuite support (also with colored output), "silent make rules", etc. etc.
2014-03-19 22:04:55 +00:00
|
|
|
endif
|
|
|
|
if HW_DEMO
|
2016-06-05 21:10:44 +00:00
|
|
|
src_libdrivers_la_SOURCES += \
|
2016-09-18 23:48:56 +00:00
|
|
|
src/hardware/demo/protocol.h \
|
|
|
|
src/hardware/demo/protocol.c \
|
|
|
|
src/hardware/demo/api.c
|
Switch to a non-recursive automake setup.
Instead of >= 44 Makefile.am's we now only have one top-level
Makefile.am, and use the 'subdir-objects' automake option to
handle the build via non-recursive (auto)make.
This has the advantage of fewer (boilerplate or other) files and less
clutter in general, as well as performance advantages since the new
setup can build many files in parallel (with 'make -j'), not only 2 or 3
files within the same (e.g. hardware/xxxx/* subdirectory) and also since
we no longer need to build intermediate libtool helper libs per subdirectory.
A quick, non-scientific test build on a quad-core laptop with 'make -j 4'
yields a build time reduction from 35s to 19s.
All autotools features that worked before are still intact without any
regressions, including the Make targets 'install', 'uninstall', 'check',
'dist', 'clean', 'distclean' and so on, as well as all the usual portability
handling (build works on any OS, with any Make implementation such as
GNU Make or BSD Make, with any shell such as sh/ksh/zsh/bash/dash, etc. etc.)
and features such as out-of-tree build support, cross-compile support,
testsuite support (also with colored output), "silent make rules", etc. etc.
2014-03-19 22:04:55 +00:00
|
|
|
endif
|
2017-06-20 21:07:27 +00:00
|
|
|
if HW_DREAMSOURCELAB_DSLOGIC
|
2017-06-10 00:02:29 +00:00
|
|
|
src_libdrivers_la_SOURCES += \
|
2017-06-20 21:07:27 +00:00
|
|
|
src/hardware/dreamsourcelab-dslogic/protocol.h \
|
|
|
|
src/hardware/dreamsourcelab-dslogic/protocol.c \
|
|
|
|
src/hardware/dreamsourcelab-dslogic/api.c
|
2017-06-10 00:02:29 +00:00
|
|
|
endif
|
2017-09-09 16:31:15 +00:00
|
|
|
if HW_FLUKE_45
|
|
|
|
src_libdrivers_la_SOURCES += \
|
|
|
|
src/hardware/fluke-45/protocol.h \
|
|
|
|
src/hardware/fluke-45/protocol.c \
|
|
|
|
src/hardware/fluke-45/api.c
|
|
|
|
endif
|
Switch to a non-recursive automake setup.
Instead of >= 44 Makefile.am's we now only have one top-level
Makefile.am, and use the 'subdir-objects' automake option to
handle the build via non-recursive (auto)make.
This has the advantage of fewer (boilerplate or other) files and less
clutter in general, as well as performance advantages since the new
setup can build many files in parallel (with 'make -j'), not only 2 or 3
files within the same (e.g. hardware/xxxx/* subdirectory) and also since
we no longer need to build intermediate libtool helper libs per subdirectory.
A quick, non-scientific test build on a quad-core laptop with 'make -j 4'
yields a build time reduction from 35s to 19s.
All autotools features that worked before are still intact without any
regressions, including the Make targets 'install', 'uninstall', 'check',
'dist', 'clean', 'distclean' and so on, as well as all the usual portability
handling (build works on any OS, with any Make implementation such as
GNU Make or BSD Make, with any shell such as sh/ksh/zsh/bash/dash, etc. etc.)
and features such as out-of-tree build support, cross-compile support,
testsuite support (also with colored output), "silent make rules", etc. etc.
2014-03-19 22:04:55 +00:00
|
|
|
if HW_FLUKE_DMM
|
2016-06-05 21:10:44 +00:00
|
|
|
src_libdrivers_la_SOURCES += \
|
2016-09-18 16:52:53 +00:00
|
|
|
src/hardware/fluke-dmm/protocol.h \
|
|
|
|
src/hardware/fluke-dmm/protocol.c \
|
2014-07-21 19:27:33 +00:00
|
|
|
src/hardware/fluke-dmm/api.c
|
Switch to a non-recursive automake setup.
Instead of >= 44 Makefile.am's we now only have one top-level
Makefile.am, and use the 'subdir-objects' automake option to
handle the build via non-recursive (auto)make.
This has the advantage of fewer (boilerplate or other) files and less
clutter in general, as well as performance advantages since the new
setup can build many files in parallel (with 'make -j'), not only 2 or 3
files within the same (e.g. hardware/xxxx/* subdirectory) and also since
we no longer need to build intermediate libtool helper libs per subdirectory.
A quick, non-scientific test build on a quad-core laptop with 'make -j 4'
yields a build time reduction from 35s to 19s.
All autotools features that worked before are still intact without any
regressions, including the Make targets 'install', 'uninstall', 'check',
'dist', 'clean', 'distclean' and so on, as well as all the usual portability
handling (build works on any OS, with any Make implementation such as
GNU Make or BSD Make, with any shell such as sh/ksh/zsh/bash/dash, etc. etc.)
and features such as out-of-tree build support, cross-compile support,
testsuite support (also with colored output), "silent make rules", etc. etc.
2014-03-19 22:04:55 +00:00
|
|
|
endif
|
2016-04-02 16:36:52 +00:00
|
|
|
if HW_FTDI_LA
|
2016-06-05 21:10:44 +00:00
|
|
|
src_libdrivers_la_SOURCES += \
|
2016-04-02 16:36:52 +00:00
|
|
|
src/hardware/ftdi-la/protocol.h \
|
|
|
|
src/hardware/ftdi-la/protocol.c \
|
|
|
|
src/hardware/ftdi-la/api.c
|
2015-07-30 04:27:43 +00:00
|
|
|
endif
|
Switch to a non-recursive automake setup.
Instead of >= 44 Makefile.am's we now only have one top-level
Makefile.am, and use the 'subdir-objects' automake option to
handle the build via non-recursive (auto)make.
This has the advantage of fewer (boilerplate or other) files and less
clutter in general, as well as performance advantages since the new
setup can build many files in parallel (with 'make -j'), not only 2 or 3
files within the same (e.g. hardware/xxxx/* subdirectory) and also since
we no longer need to build intermediate libtool helper libs per subdirectory.
A quick, non-scientific test build on a quad-core laptop with 'make -j 4'
yields a build time reduction from 35s to 19s.
All autotools features that worked before are still intact without any
regressions, including the Make targets 'install', 'uninstall', 'check',
'dist', 'clean', 'distclean' and so on, as well as all the usual portability
handling (build works on any OS, with any Make implementation such as
GNU Make or BSD Make, with any shell such as sh/ksh/zsh/bash/dash, etc. etc.)
and features such as out-of-tree build support, cross-compile support,
testsuite support (also with colored output), "silent make rules", etc. etc.
2014-03-19 22:04:55 +00:00
|
|
|
if HW_FX2LAFW
|
2016-06-05 21:10:44 +00:00
|
|
|
src_libdrivers_la_SOURCES += \
|
2014-07-21 19:27:33 +00:00
|
|
|
src/hardware/fx2lafw/protocol.h \
|
|
|
|
src/hardware/fx2lafw/protocol.c \
|
2017-06-10 00:02:29 +00:00
|
|
|
src/hardware/fx2lafw/api.c
|
Switch to a non-recursive automake setup.
Instead of >= 44 Makefile.am's we now only have one top-level
Makefile.am, and use the 'subdir-objects' automake option to
handle the build via non-recursive (auto)make.
This has the advantage of fewer (boilerplate or other) files and less
clutter in general, as well as performance advantages since the new
setup can build many files in parallel (with 'make -j'), not only 2 or 3
files within the same (e.g. hardware/xxxx/* subdirectory) and also since
we no longer need to build intermediate libtool helper libs per subdirectory.
A quick, non-scientific test build on a quad-core laptop with 'make -j 4'
yields a build time reduction from 35s to 19s.
All autotools features that worked before are still intact without any
regressions, including the Make targets 'install', 'uninstall', 'check',
'dist', 'clean', 'distclean' and so on, as well as all the usual portability
handling (build works on any OS, with any Make implementation such as
GNU Make or BSD Make, with any shell such as sh/ksh/zsh/bash/dash, etc. etc.)
and features such as out-of-tree build support, cross-compile support,
testsuite support (also with colored output), "silent make rules", etc. etc.
2014-03-19 22:04:55 +00:00
|
|
|
endif
|
|
|
|
if HW_GMC_MH_1X_2X
|
2016-06-05 21:10:44 +00:00
|
|
|
src_libdrivers_la_SOURCES += \
|
2014-07-21 19:27:33 +00:00
|
|
|
src/hardware/gmc-mh-1x-2x/protocol.h \
|
|
|
|
src/hardware/gmc-mh-1x-2x/protocol.c \
|
|
|
|
src/hardware/gmc-mh-1x-2x/api.c
|
Switch to a non-recursive automake setup.
Instead of >= 44 Makefile.am's we now only have one top-level
Makefile.am, and use the 'subdir-objects' automake option to
handle the build via non-recursive (auto)make.
This has the advantage of fewer (boilerplate or other) files and less
clutter in general, as well as performance advantages since the new
setup can build many files in parallel (with 'make -j'), not only 2 or 3
files within the same (e.g. hardware/xxxx/* subdirectory) and also since
we no longer need to build intermediate libtool helper libs per subdirectory.
A quick, non-scientific test build on a quad-core laptop with 'make -j 4'
yields a build time reduction from 35s to 19s.
All autotools features that worked before are still intact without any
regressions, including the Make targets 'install', 'uninstall', 'check',
'dist', 'clean', 'distclean' and so on, as well as all the usual portability
handling (build works on any OS, with any Make implementation such as
GNU Make or BSD Make, with any shell such as sh/ksh/zsh/bash/dash, etc. etc.)
and features such as out-of-tree build support, cross-compile support,
testsuite support (also with colored output), "silent make rules", etc. etc.
2014-03-19 22:04:55 +00:00
|
|
|
endif
|
2015-08-16 12:52:49 +00:00
|
|
|
if HW_GWINSTEK_GDS_800
|
2016-06-05 21:10:44 +00:00
|
|
|
src_libdrivers_la_SOURCES += \
|
2015-08-16 12:52:49 +00:00
|
|
|
src/hardware/gwinstek-gds-800/protocol.h \
|
|
|
|
src/hardware/gwinstek-gds-800/protocol.c \
|
|
|
|
src/hardware/gwinstek-gds-800/api.c
|
|
|
|
endif
|
2018-02-02 16:45:32 +00:00
|
|
|
if HW_GWINSTEK_GPD
|
|
|
|
src_libdrivers_la_SOURCES += \
|
|
|
|
src/hardware/gwinstek-gpd/protocol.h \
|
|
|
|
src/hardware/gwinstek-gpd/protocol.c \
|
|
|
|
src/hardware/gwinstek-gpd/api.c
|
|
|
|
endif
|
Switch to a non-recursive automake setup.
Instead of >= 44 Makefile.am's we now only have one top-level
Makefile.am, and use the 'subdir-objects' automake option to
handle the build via non-recursive (auto)make.
This has the advantage of fewer (boilerplate or other) files and less
clutter in general, as well as performance advantages since the new
setup can build many files in parallel (with 'make -j'), not only 2 or 3
files within the same (e.g. hardware/xxxx/* subdirectory) and also since
we no longer need to build intermediate libtool helper libs per subdirectory.
A quick, non-scientific test build on a quad-core laptop with 'make -j 4'
yields a build time reduction from 35s to 19s.
All autotools features that worked before are still intact without any
regressions, including the Make targets 'install', 'uninstall', 'check',
'dist', 'clean', 'distclean' and so on, as well as all the usual portability
handling (build works on any OS, with any Make implementation such as
GNU Make or BSD Make, with any shell such as sh/ksh/zsh/bash/dash, etc. etc.)
and features such as out-of-tree build support, cross-compile support,
testsuite support (also with colored output), "silent make rules", etc. etc.
2014-03-19 22:04:55 +00:00
|
|
|
if HW_HAMEG_HMO
|
2016-06-05 21:10:44 +00:00
|
|
|
src_libdrivers_la_SOURCES += \
|
2014-07-21 19:27:33 +00:00
|
|
|
src/hardware/hameg-hmo/protocol.h \
|
|
|
|
src/hardware/hameg-hmo/protocol.c \
|
|
|
|
src/hardware/hameg-hmo/api.c
|
Switch to a non-recursive automake setup.
Instead of >= 44 Makefile.am's we now only have one top-level
Makefile.am, and use the 'subdir-objects' automake option to
handle the build via non-recursive (auto)make.
This has the advantage of fewer (boilerplate or other) files and less
clutter in general, as well as performance advantages since the new
setup can build many files in parallel (with 'make -j'), not only 2 or 3
files within the same (e.g. hardware/xxxx/* subdirectory) and also since
we no longer need to build intermediate libtool helper libs per subdirectory.
A quick, non-scientific test build on a quad-core laptop with 'make -j 4'
yields a build time reduction from 35s to 19s.
All autotools features that worked before are still intact without any
regressions, including the Make targets 'install', 'uninstall', 'check',
'dist', 'clean', 'distclean' and so on, as well as all the usual portability
handling (build works on any OS, with any Make implementation such as
GNU Make or BSD Make, with any shell such as sh/ksh/zsh/bash/dash, etc. etc.)
and features such as out-of-tree build support, cross-compile support,
testsuite support (also with colored output), "silent make rules", etc. etc.
2014-03-19 22:04:55 +00:00
|
|
|
endif
|
2016-03-05 06:56:33 +00:00
|
|
|
if HW_HANTEK_4032L
|
|
|
|
src_libdrivers_la_SOURCES += \
|
|
|
|
src/hardware/hantek-4032l/protocol.h \
|
|
|
|
src/hardware/hantek-4032l/protocol.c \
|
|
|
|
src/hardware/hantek-4032l/api.c
|
|
|
|
endif
|
2016-03-05 20:55:02 +00:00
|
|
|
if HW_HANTEK_6XXX
|
|
|
|
src_libdrivers_la_SOURCES += \
|
|
|
|
src/hardware/hantek-6xxx/protocol.h \
|
|
|
|
src/hardware/hantek-6xxx/protocol.c \
|
|
|
|
src/hardware/hantek-6xxx/api.c
|
|
|
|
endif
|
Switch to a non-recursive automake setup.
Instead of >= 44 Makefile.am's we now only have one top-level
Makefile.am, and use the 'subdir-objects' automake option to
handle the build via non-recursive (auto)make.
This has the advantage of fewer (boilerplate or other) files and less
clutter in general, as well as performance advantages since the new
setup can build many files in parallel (with 'make -j'), not only 2 or 3
files within the same (e.g. hardware/xxxx/* subdirectory) and also since
we no longer need to build intermediate libtool helper libs per subdirectory.
A quick, non-scientific test build on a quad-core laptop with 'make -j 4'
yields a build time reduction from 35s to 19s.
All autotools features that worked before are still intact without any
regressions, including the Make targets 'install', 'uninstall', 'check',
'dist', 'clean', 'distclean' and so on, as well as all the usual portability
handling (build works on any OS, with any Make implementation such as
GNU Make or BSD Make, with any shell such as sh/ksh/zsh/bash/dash, etc. etc.)
and features such as out-of-tree build support, cross-compile support,
testsuite support (also with colored output), "silent make rules", etc. etc.
2014-03-19 22:04:55 +00:00
|
|
|
if HW_HANTEK_DSO
|
2016-06-05 21:10:44 +00:00
|
|
|
src_libdrivers_la_SOURCES += \
|
2016-09-18 16:54:56 +00:00
|
|
|
src/hardware/hantek-dso/protocol.h \
|
|
|
|
src/hardware/hantek-dso/protocol.c \
|
2014-07-21 19:27:33 +00:00
|
|
|
src/hardware/hantek-dso/api.c
|
Switch to a non-recursive automake setup.
Instead of >= 44 Makefile.am's we now only have one top-level
Makefile.am, and use the 'subdir-objects' automake option to
handle the build via non-recursive (auto)make.
This has the advantage of fewer (boilerplate or other) files and less
clutter in general, as well as performance advantages since the new
setup can build many files in parallel (with 'make -j'), not only 2 or 3
files within the same (e.g. hardware/xxxx/* subdirectory) and also since
we no longer need to build intermediate libtool helper libs per subdirectory.
A quick, non-scientific test build on a quad-core laptop with 'make -j 4'
yields a build time reduction from 35s to 19s.
All autotools features that worked before are still intact without any
regressions, including the Make targets 'install', 'uninstall', 'check',
'dist', 'clean', 'distclean' and so on, as well as all the usual portability
handling (build works on any OS, with any Make implementation such as
GNU Make or BSD Make, with any shell such as sh/ksh/zsh/bash/dash, etc. etc.)
and features such as out-of-tree build support, cross-compile support,
testsuite support (also with colored output), "silent make rules", etc. etc.
2014-03-19 22:04:55 +00:00
|
|
|
endif
|
2016-02-28 06:05:27 +00:00
|
|
|
if HW_HP_3457A
|
2016-06-05 21:10:44 +00:00
|
|
|
src_libdrivers_la_SOURCES += \
|
2016-02-28 06:05:27 +00:00
|
|
|
src/hardware/hp-3457a/protocol.h \
|
|
|
|
src/hardware/hp-3457a/protocol.c \
|
|
|
|
src/hardware/hp-3457a/api.c
|
|
|
|
endif
|
2017-09-17 13:04:06 +00:00
|
|
|
if HW_HP_3478A
|
|
|
|
src_libdrivers_la_SOURCES += \
|
|
|
|
src/hardware/hp-3478a/protocol.h \
|
|
|
|
src/hardware/hp-3478a/protocol.c \
|
|
|
|
src/hardware/hp-3478a/api.c
|
|
|
|
endif
|
2015-09-07 00:18:13 +00:00
|
|
|
if HW_HUNG_CHANG_DSO_2100
|
2016-06-05 21:10:44 +00:00
|
|
|
src_libdrivers_la_SOURCES += \
|
2015-09-07 00:18:13 +00:00
|
|
|
src/hardware/hung-chang-dso-2100/protocol.h \
|
|
|
|
src/hardware/hung-chang-dso-2100/protocol.c \
|
|
|
|
src/hardware/hung-chang-dso-2100/api.c
|
|
|
|
endif
|
Switch to a non-recursive automake setup.
Instead of >= 44 Makefile.am's we now only have one top-level
Makefile.am, and use the 'subdir-objects' automake option to
handle the build via non-recursive (auto)make.
This has the advantage of fewer (boilerplate or other) files and less
clutter in general, as well as performance advantages since the new
setup can build many files in parallel (with 'make -j'), not only 2 or 3
files within the same (e.g. hardware/xxxx/* subdirectory) and also since
we no longer need to build intermediate libtool helper libs per subdirectory.
A quick, non-scientific test build on a quad-core laptop with 'make -j 4'
yields a build time reduction from 35s to 19s.
All autotools features that worked before are still intact without any
regressions, including the Make targets 'install', 'uninstall', 'check',
'dist', 'clean', 'distclean' and so on, as well as all the usual portability
handling (build works on any OS, with any Make implementation such as
GNU Make or BSD Make, with any shell such as sh/ksh/zsh/bash/dash, etc. etc.)
and features such as out-of-tree build support, cross-compile support,
testsuite support (also with colored output), "silent make rules", etc. etc.
2014-03-19 22:04:55 +00:00
|
|
|
if HW_IKALOGIC_SCANALOGIC2
|
2016-06-05 21:10:44 +00:00
|
|
|
src_libdrivers_la_SOURCES += \
|
2014-07-21 19:27:33 +00:00
|
|
|
src/hardware/ikalogic-scanalogic2/protocol.h \
|
|
|
|
src/hardware/ikalogic-scanalogic2/protocol.c \
|
|
|
|
src/hardware/ikalogic-scanalogic2/api.c
|
Switch to a non-recursive automake setup.
Instead of >= 44 Makefile.am's we now only have one top-level
Makefile.am, and use the 'subdir-objects' automake option to
handle the build via non-recursive (auto)make.
This has the advantage of fewer (boilerplate or other) files and less
clutter in general, as well as performance advantages since the new
setup can build many files in parallel (with 'make -j'), not only 2 or 3
files within the same (e.g. hardware/xxxx/* subdirectory) and also since
we no longer need to build intermediate libtool helper libs per subdirectory.
A quick, non-scientific test build on a quad-core laptop with 'make -j 4'
yields a build time reduction from 35s to 19s.
All autotools features that worked before are still intact without any
regressions, including the Make targets 'install', 'uninstall', 'check',
'dist', 'clean', 'distclean' and so on, as well as all the usual portability
handling (build works on any OS, with any Make implementation such as
GNU Make or BSD Make, with any shell such as sh/ksh/zsh/bash/dash, etc. etc.)
and features such as out-of-tree build support, cross-compile support,
testsuite support (also with colored output), "silent make rules", etc. etc.
2014-03-19 22:04:55 +00:00
|
|
|
endif
|
|
|
|
if HW_IKALOGIC_SCANAPLUS
|
2016-06-05 21:10:44 +00:00
|
|
|
src_libdrivers_la_SOURCES += \
|
2014-07-21 19:27:33 +00:00
|
|
|
src/hardware/ikalogic-scanaplus/protocol.h \
|
|
|
|
src/hardware/ikalogic-scanaplus/protocol.c \
|
|
|
|
src/hardware/ikalogic-scanaplus/api.c
|
Switch to a non-recursive automake setup.
Instead of >= 44 Makefile.am's we now only have one top-level
Makefile.am, and use the 'subdir-objects' automake option to
handle the build via non-recursive (auto)make.
This has the advantage of fewer (boilerplate or other) files and less
clutter in general, as well as performance advantages since the new
setup can build many files in parallel (with 'make -j'), not only 2 or 3
files within the same (e.g. hardware/xxxx/* subdirectory) and also since
we no longer need to build intermediate libtool helper libs per subdirectory.
A quick, non-scientific test build on a quad-core laptop with 'make -j 4'
yields a build time reduction from 35s to 19s.
All autotools features that worked before are still intact without any
regressions, including the Make targets 'install', 'uninstall', 'check',
'dist', 'clean', 'distclean' and so on, as well as all the usual portability
handling (build works on any OS, with any Make implementation such as
GNU Make or BSD Make, with any shell such as sh/ksh/zsh/bash/dash, etc. etc.)
and features such as out-of-tree build support, cross-compile support,
testsuite support (also with colored output), "silent make rules", etc. etc.
2014-03-19 22:04:55 +00:00
|
|
|
endif
|
2018-08-29 22:02:16 +00:00
|
|
|
if HW_IPDBG_LA
|
2017-05-16 20:13:53 +00:00
|
|
|
src_libdrivers_la_SOURCES += \
|
2018-08-29 22:02:16 +00:00
|
|
|
src/hardware/ipdbg-la/protocol.h \
|
|
|
|
src/hardware/ipdbg-la/protocol.c \
|
|
|
|
src/hardware/ipdbg-la/api.c
|
2017-05-16 20:13:53 +00:00
|
|
|
endif
|
Switch to a non-recursive automake setup.
Instead of >= 44 Makefile.am's we now only have one top-level
Makefile.am, and use the 'subdir-objects' automake option to
handle the build via non-recursive (auto)make.
This has the advantage of fewer (boilerplate or other) files and less
clutter in general, as well as performance advantages since the new
setup can build many files in parallel (with 'make -j'), not only 2 or 3
files within the same (e.g. hardware/xxxx/* subdirectory) and also since
we no longer need to build intermediate libtool helper libs per subdirectory.
A quick, non-scientific test build on a quad-core laptop with 'make -j 4'
yields a build time reduction from 35s to 19s.
All autotools features that worked before are still intact without any
regressions, including the Make targets 'install', 'uninstall', 'check',
'dist', 'clean', 'distclean' and so on, as well as all the usual portability
handling (build works on any OS, with any Make implementation such as
GNU Make or BSD Make, with any shell such as sh/ksh/zsh/bash/dash, etc. etc.)
and features such as out-of-tree build support, cross-compile support,
testsuite support (also with colored output), "silent make rules", etc. etc.
2014-03-19 22:04:55 +00:00
|
|
|
if HW_KECHENG_KC_330B
|
2016-06-05 21:10:44 +00:00
|
|
|
src_libdrivers_la_SOURCES += \
|
2014-07-21 19:27:33 +00:00
|
|
|
src/hardware/kecheng-kc-330b/protocol.h \
|
|
|
|
src/hardware/kecheng-kc-330b/protocol.c \
|
|
|
|
src/hardware/kecheng-kc-330b/api.c
|
Switch to a non-recursive automake setup.
Instead of >= 44 Makefile.am's we now only have one top-level
Makefile.am, and use the 'subdir-objects' automake option to
handle the build via non-recursive (auto)make.
This has the advantage of fewer (boilerplate or other) files and less
clutter in general, as well as performance advantages since the new
setup can build many files in parallel (with 'make -j'), not only 2 or 3
files within the same (e.g. hardware/xxxx/* subdirectory) and also since
we no longer need to build intermediate libtool helper libs per subdirectory.
A quick, non-scientific test build on a quad-core laptop with 'make -j 4'
yields a build time reduction from 35s to 19s.
All autotools features that worked before are still intact without any
regressions, including the Make targets 'install', 'uninstall', 'check',
'dist', 'clean', 'distclean' and so on, as well as all the usual portability
handling (build works on any OS, with any Make implementation such as
GNU Make or BSD Make, with any shell such as sh/ksh/zsh/bash/dash, etc. etc.)
and features such as out-of-tree build support, cross-compile support,
testsuite support (also with colored output), "silent make rules", etc. etc.
2014-03-19 22:04:55 +00:00
|
|
|
endif
|
2015-08-27 19:42:46 +00:00
|
|
|
if HW_KERN_SCALE
|
2016-06-05 21:10:44 +00:00
|
|
|
src_libdrivers_la_SOURCES += \
|
2015-08-27 19:42:46 +00:00
|
|
|
src/hardware/kern-scale/protocol.h \
|
|
|
|
src/hardware/kern-scale/protocol.c \
|
|
|
|
src/hardware/kern-scale/api.c
|
|
|
|
endif
|
2015-11-26 23:16:05 +00:00
|
|
|
if HW_KORAD_KAXXXXP
|
2016-06-05 21:10:44 +00:00
|
|
|
src_libdrivers_la_SOURCES += \
|
2015-11-26 23:16:05 +00:00
|
|
|
src/hardware/korad-kaxxxxp/protocol.h \
|
|
|
|
src/hardware/korad-kaxxxxp/protocol.c \
|
|
|
|
src/hardware/korad-kaxxxxp/api.c
|
2015-09-24 19:58:38 +00:00
|
|
|
endif
|
Switch to a non-recursive automake setup.
Instead of >= 44 Makefile.am's we now only have one top-level
Makefile.am, and use the 'subdir-objects' automake option to
handle the build via non-recursive (auto)make.
This has the advantage of fewer (boilerplate or other) files and less
clutter in general, as well as performance advantages since the new
setup can build many files in parallel (with 'make -j'), not only 2 or 3
files within the same (e.g. hardware/xxxx/* subdirectory) and also since
we no longer need to build intermediate libtool helper libs per subdirectory.
A quick, non-scientific test build on a quad-core laptop with 'make -j 4'
yields a build time reduction from 35s to 19s.
All autotools features that worked before are still intact without any
regressions, including the Make targets 'install', 'uninstall', 'check',
'dist', 'clean', 'distclean' and so on, as well as all the usual portability
handling (build works on any OS, with any Make implementation such as
GNU Make or BSD Make, with any shell such as sh/ksh/zsh/bash/dash, etc. etc.)
and features such as out-of-tree build support, cross-compile support,
testsuite support (also with colored output), "silent make rules", etc. etc.
2014-03-19 22:04:55 +00:00
|
|
|
if HW_LASCAR_EL_USB
|
2016-06-05 21:10:44 +00:00
|
|
|
src_libdrivers_la_SOURCES += \
|
2014-07-21 19:27:33 +00:00
|
|
|
src/hardware/lascar-el-usb/protocol.h \
|
|
|
|
src/hardware/lascar-el-usb/protocol.c \
|
|
|
|
src/hardware/lascar-el-usb/api.c
|
Switch to a non-recursive automake setup.
Instead of >= 44 Makefile.am's we now only have one top-level
Makefile.am, and use the 'subdir-objects' automake option to
handle the build via non-recursive (auto)make.
This has the advantage of fewer (boilerplate or other) files and less
clutter in general, as well as performance advantages since the new
setup can build many files in parallel (with 'make -j'), not only 2 or 3
files within the same (e.g. hardware/xxxx/* subdirectory) and also since
we no longer need to build intermediate libtool helper libs per subdirectory.
A quick, non-scientific test build on a quad-core laptop with 'make -j 4'
yields a build time reduction from 35s to 19s.
All autotools features that worked before are still intact without any
regressions, including the Make targets 'install', 'uninstall', 'check',
'dist', 'clean', 'distclean' and so on, as well as all the usual portability
handling (build works on any OS, with any Make implementation such as
GNU Make or BSD Make, with any shell such as sh/ksh/zsh/bash/dash, etc. etc.)
and features such as out-of-tree build support, cross-compile support,
testsuite support (also with colored output), "silent make rules", etc. etc.
2014-03-19 22:04:55 +00:00
|
|
|
endif
|
2015-10-08 18:13:53 +00:00
|
|
|
if HW_LECROY_LOGICSTUDIO
|
2016-06-05 21:10:44 +00:00
|
|
|
src_libdrivers_la_SOURCES += \
|
2015-10-08 18:13:53 +00:00
|
|
|
src/hardware/lecroy-logicstudio/protocol.h \
|
|
|
|
src/hardware/lecroy-logicstudio/protocol.c \
|
|
|
|
src/hardware/lecroy-logicstudio/api.c
|
|
|
|
endif
|
2017-02-12 19:18:15 +00:00
|
|
|
if HW_LECROY_XSTREAM
|
|
|
|
src_libdrivers_la_SOURCES += \
|
|
|
|
src/hardware/lecroy-xstream/protocol.h \
|
|
|
|
src/hardware/lecroy-xstream/protocol.c \
|
|
|
|
src/hardware/lecroy-xstream/api.c
|
|
|
|
endif
|
2014-06-22 22:31:22 +00:00
|
|
|
if HW_MANSON_HCS_3XXX
|
2016-06-05 21:10:44 +00:00
|
|
|
src_libdrivers_la_SOURCES += \
|
2014-07-21 19:27:33 +00:00
|
|
|
src/hardware/manson-hcs-3xxx/protocol.h \
|
|
|
|
src/hardware/manson-hcs-3xxx/protocol.c \
|
|
|
|
src/hardware/manson-hcs-3xxx/api.c
|
2014-06-22 22:31:22 +00:00
|
|
|
endif
|
2015-02-01 22:49:03 +00:00
|
|
|
if HW_MAYNUO_M97
|
2016-06-05 21:10:44 +00:00
|
|
|
src_libdrivers_la_SOURCES += \
|
2015-02-01 22:49:03 +00:00
|
|
|
src/hardware/maynuo-m97/protocol.h \
|
|
|
|
src/hardware/maynuo-m97/protocol.c \
|
|
|
|
src/hardware/maynuo-m97/api.c
|
|
|
|
endif
|
Switch to a non-recursive automake setup.
Instead of >= 44 Makefile.am's we now only have one top-level
Makefile.am, and use the 'subdir-objects' automake option to
handle the build via non-recursive (auto)make.
This has the advantage of fewer (boilerplate or other) files and less
clutter in general, as well as performance advantages since the new
setup can build many files in parallel (with 'make -j'), not only 2 or 3
files within the same (e.g. hardware/xxxx/* subdirectory) and also since
we no longer need to build intermediate libtool helper libs per subdirectory.
A quick, non-scientific test build on a quad-core laptop with 'make -j 4'
yields a build time reduction from 35s to 19s.
All autotools features that worked before are still intact without any
regressions, including the Make targets 'install', 'uninstall', 'check',
'dist', 'clean', 'distclean' and so on, as well as all the usual portability
handling (build works on any OS, with any Make implementation such as
GNU Make or BSD Make, with any shell such as sh/ksh/zsh/bash/dash, etc. etc.)
and features such as out-of-tree build support, cross-compile support,
testsuite support (also with colored output), "silent make rules", etc. etc.
2014-03-19 22:04:55 +00:00
|
|
|
if HW_MIC_985XX
|
2016-06-05 21:10:44 +00:00
|
|
|
src_libdrivers_la_SOURCES += \
|
2014-07-21 19:27:33 +00:00
|
|
|
src/hardware/mic-985xx/protocol.h \
|
|
|
|
src/hardware/mic-985xx/protocol.c \
|
|
|
|
src/hardware/mic-985xx/api.c
|
Switch to a non-recursive automake setup.
Instead of >= 44 Makefile.am's we now only have one top-level
Makefile.am, and use the 'subdir-objects' automake option to
handle the build via non-recursive (auto)make.
This has the advantage of fewer (boilerplate or other) files and less
clutter in general, as well as performance advantages since the new
setup can build many files in parallel (with 'make -j'), not only 2 or 3
files within the same (e.g. hardware/xxxx/* subdirectory) and also since
we no longer need to build intermediate libtool helper libs per subdirectory.
A quick, non-scientific test build on a quad-core laptop with 'make -j 4'
yields a build time reduction from 35s to 19s.
All autotools features that worked before are still intact without any
regressions, including the Make targets 'install', 'uninstall', 'check',
'dist', 'clean', 'distclean' and so on, as well as all the usual portability
handling (build works on any OS, with any Make implementation such as
GNU Make or BSD Make, with any shell such as sh/ksh/zsh/bash/dash, etc. etc.)
and features such as out-of-tree build support, cross-compile support,
testsuite support (also with colored output), "silent make rules", etc. etc.
2014-03-19 22:04:55 +00:00
|
|
|
endif
|
2014-05-19 17:23:30 +00:00
|
|
|
if HW_MOTECH_LPS_30X
|
2016-06-05 21:10:44 +00:00
|
|
|
src_libdrivers_la_SOURCES += \
|
2014-07-21 19:27:33 +00:00
|
|
|
src/hardware/motech-lps-30x/protocol.h \
|
|
|
|
src/hardware/motech-lps-30x/protocol.c \
|
|
|
|
src/hardware/motech-lps-30x/api.c
|
2014-05-19 17:23:30 +00:00
|
|
|
endif
|
Switch to a non-recursive automake setup.
Instead of >= 44 Makefile.am's we now only have one top-level
Makefile.am, and use the 'subdir-objects' automake option to
handle the build via non-recursive (auto)make.
This has the advantage of fewer (boilerplate or other) files and less
clutter in general, as well as performance advantages since the new
setup can build many files in parallel (with 'make -j'), not only 2 or 3
files within the same (e.g. hardware/xxxx/* subdirectory) and also since
we no longer need to build intermediate libtool helper libs per subdirectory.
A quick, non-scientific test build on a quad-core laptop with 'make -j 4'
yields a build time reduction from 35s to 19s.
All autotools features that worked before are still intact without any
regressions, including the Make targets 'install', 'uninstall', 'check',
'dist', 'clean', 'distclean' and so on, as well as all the usual portability
handling (build works on any OS, with any Make implementation such as
GNU Make or BSD Make, with any shell such as sh/ksh/zsh/bash/dash, etc. etc.)
and features such as out-of-tree build support, cross-compile support,
testsuite support (also with colored output), "silent make rules", etc. etc.
2014-03-19 22:04:55 +00:00
|
|
|
if HW_NORMA_DMM
|
2016-06-05 21:10:44 +00:00
|
|
|
src_libdrivers_la_SOURCES += \
|
2014-07-21 19:27:33 +00:00
|
|
|
src/hardware/norma-dmm/protocol.h \
|
|
|
|
src/hardware/norma-dmm/protocol.c \
|
|
|
|
src/hardware/norma-dmm/api.c
|
Switch to a non-recursive automake setup.
Instead of >= 44 Makefile.am's we now only have one top-level
Makefile.am, and use the 'subdir-objects' automake option to
handle the build via non-recursive (auto)make.
This has the advantage of fewer (boilerplate or other) files and less
clutter in general, as well as performance advantages since the new
setup can build many files in parallel (with 'make -j'), not only 2 or 3
files within the same (e.g. hardware/xxxx/* subdirectory) and also since
we no longer need to build intermediate libtool helper libs per subdirectory.
A quick, non-scientific test build on a quad-core laptop with 'make -j 4'
yields a build time reduction from 35s to 19s.
All autotools features that worked before are still intact without any
regressions, including the Make targets 'install', 'uninstall', 'check',
'dist', 'clean', 'distclean' and so on, as well as all the usual portability
handling (build works on any OS, with any Make implementation such as
GNU Make or BSD Make, with any shell such as sh/ksh/zsh/bash/dash, etc. etc.)
and features such as out-of-tree build support, cross-compile support,
testsuite support (also with colored output), "silent make rules", etc. etc.
2014-03-19 22:04:55 +00:00
|
|
|
endif
|
2014-07-10 15:26:22 +00:00
|
|
|
if HW_OPENBENCH_LOGIC_SNIFFER
|
2016-06-05 21:10:44 +00:00
|
|
|
src_libdrivers_la_SOURCES += \
|
2014-07-21 19:27:33 +00:00
|
|
|
src/hardware/openbench-logic-sniffer/protocol.h \
|
|
|
|
src/hardware/openbench-logic-sniffer/protocol.c \
|
|
|
|
src/hardware/openbench-logic-sniffer/api.c
|
Switch to a non-recursive automake setup.
Instead of >= 44 Makefile.am's we now only have one top-level
Makefile.am, and use the 'subdir-objects' automake option to
handle the build via non-recursive (auto)make.
This has the advantage of fewer (boilerplate or other) files and less
clutter in general, as well as performance advantages since the new
setup can build many files in parallel (with 'make -j'), not only 2 or 3
files within the same (e.g. hardware/xxxx/* subdirectory) and also since
we no longer need to build intermediate libtool helper libs per subdirectory.
A quick, non-scientific test build on a quad-core laptop with 'make -j 4'
yields a build time reduction from 35s to 19s.
All autotools features that worked before are still intact without any
regressions, including the Make targets 'install', 'uninstall', 'check',
'dist', 'clean', 'distclean' and so on, as well as all the usual portability
handling (build works on any OS, with any Make implementation such as
GNU Make or BSD Make, with any shell such as sh/ksh/zsh/bash/dash, etc. etc.)
and features such as out-of-tree build support, cross-compile support,
testsuite support (also with colored output), "silent make rules", etc. etc.
2014-03-19 22:04:55 +00:00
|
|
|
endif
|
2016-04-30 20:34:15 +00:00
|
|
|
if HW_PCE_322A
|
2016-06-05 21:10:44 +00:00
|
|
|
src_libdrivers_la_SOURCES += \
|
2016-04-30 20:34:15 +00:00
|
|
|
src/hardware/pce-322a/protocol.h \
|
|
|
|
src/hardware/pce-322a/protocol.c \
|
|
|
|
src/hardware/pce-322a/api.c
|
|
|
|
endif
|
2014-05-10 22:44:13 +00:00
|
|
|
if HW_PIPISTRELLO_OLS
|
2016-06-05 21:10:44 +00:00
|
|
|
src_libdrivers_la_SOURCES += \
|
2014-05-10 22:44:13 +00:00
|
|
|
src/hardware/pipistrello-ols/protocol.h \
|
|
|
|
src/hardware/pipistrello-ols/protocol.c \
|
|
|
|
src/hardware/pipistrello-ols/api.c
|
|
|
|
endif
|
2018-02-20 01:28:38 +00:00
|
|
|
if HW_RDTECH_DPS
|
|
|
|
src_libdrivers_la_SOURCES += \
|
|
|
|
src/hardware/rdtech-dps/protocol.h \
|
|
|
|
src/hardware/rdtech-dps/protocol.c \
|
|
|
|
src/hardware/rdtech-dps/api.c
|
|
|
|
endif
|
Switch to a non-recursive automake setup.
Instead of >= 44 Makefile.am's we now only have one top-level
Makefile.am, and use the 'subdir-objects' automake option to
handle the build via non-recursive (auto)make.
This has the advantage of fewer (boilerplate or other) files and less
clutter in general, as well as performance advantages since the new
setup can build many files in parallel (with 'make -j'), not only 2 or 3
files within the same (e.g. hardware/xxxx/* subdirectory) and also since
we no longer need to build intermediate libtool helper libs per subdirectory.
A quick, non-scientific test build on a quad-core laptop with 'make -j 4'
yields a build time reduction from 35s to 19s.
All autotools features that worked before are still intact without any
regressions, including the Make targets 'install', 'uninstall', 'check',
'dist', 'clean', 'distclean' and so on, as well as all the usual portability
handling (build works on any OS, with any Make implementation such as
GNU Make or BSD Make, with any shell such as sh/ksh/zsh/bash/dash, etc. etc.)
and features such as out-of-tree build support, cross-compile support,
testsuite support (also with colored output), "silent make rules", etc. etc.
2014-03-19 22:04:55 +00:00
|
|
|
if HW_RIGOL_DS
|
2016-06-05 21:10:44 +00:00
|
|
|
src_libdrivers_la_SOURCES += \
|
2014-07-21 19:27:33 +00:00
|
|
|
src/hardware/rigol-ds/protocol.h \
|
|
|
|
src/hardware/rigol-ds/protocol.c \
|
|
|
|
src/hardware/rigol-ds/api.c
|
Switch to a non-recursive automake setup.
Instead of >= 44 Makefile.am's we now only have one top-level
Makefile.am, and use the 'subdir-objects' automake option to
handle the build via non-recursive (auto)make.
This has the advantage of fewer (boilerplate or other) files and less
clutter in general, as well as performance advantages since the new
setup can build many files in parallel (with 'make -j'), not only 2 or 3
files within the same (e.g. hardware/xxxx/* subdirectory) and also since
we no longer need to build intermediate libtool helper libs per subdirectory.
A quick, non-scientific test build on a quad-core laptop with 'make -j 4'
yields a build time reduction from 35s to 19s.
All autotools features that worked before are still intact without any
regressions, including the Make targets 'install', 'uninstall', 'check',
'dist', 'clean', 'distclean' and so on, as well as all the usual portability
handling (build works on any OS, with any Make implementation such as
GNU Make or BSD Make, with any shell such as sh/ksh/zsh/bash/dash, etc. etc.)
and features such as out-of-tree build support, cross-compile support,
testsuite support (also with colored output), "silent make rules", etc. etc.
2014-03-19 22:04:55 +00:00
|
|
|
endif
|
2016-10-27 13:22:55 +00:00
|
|
|
if HW_ROHDE_SCHWARZ_SME_0X
|
|
|
|
src_libdrivers_la_SOURCES += \
|
|
|
|
src/hardware/rohde-schwarz-sme-0x/protocol.h \
|
|
|
|
src/hardware/rohde-schwarz-sme-0x/protocol.c \
|
|
|
|
src/hardware/rohde-schwarz-sme-0x/api.c
|
|
|
|
endif
|
Switch to a non-recursive automake setup.
Instead of >= 44 Makefile.am's we now only have one top-level
Makefile.am, and use the 'subdir-objects' automake option to
handle the build via non-recursive (auto)make.
This has the advantage of fewer (boilerplate or other) files and less
clutter in general, as well as performance advantages since the new
setup can build many files in parallel (with 'make -j'), not only 2 or 3
files within the same (e.g. hardware/xxxx/* subdirectory) and also since
we no longer need to build intermediate libtool helper libs per subdirectory.
A quick, non-scientific test build on a quad-core laptop with 'make -j 4'
yields a build time reduction from 35s to 19s.
All autotools features that worked before are still intact without any
regressions, including the Make targets 'install', 'uninstall', 'check',
'dist', 'clean', 'distclean' and so on, as well as all the usual portability
handling (build works on any OS, with any Make implementation such as
GNU Make or BSD Make, with any shell such as sh/ksh/zsh/bash/dash, etc. etc.)
and features such as out-of-tree build support, cross-compile support,
testsuite support (also with colored output), "silent make rules", etc. etc.
2014-03-19 22:04:55 +00:00
|
|
|
if HW_SALEAE_LOGIC16
|
2016-06-05 21:10:44 +00:00
|
|
|
src_libdrivers_la_SOURCES += \
|
2014-07-21 19:27:33 +00:00
|
|
|
src/hardware/saleae-logic16/protocol.h \
|
|
|
|
src/hardware/saleae-logic16/protocol.c \
|
|
|
|
src/hardware/saleae-logic16/api.c
|
Switch to a non-recursive automake setup.
Instead of >= 44 Makefile.am's we now only have one top-level
Makefile.am, and use the 'subdir-objects' automake option to
handle the build via non-recursive (auto)make.
This has the advantage of fewer (boilerplate or other) files and less
clutter in general, as well as performance advantages since the new
setup can build many files in parallel (with 'make -j'), not only 2 or 3
files within the same (e.g. hardware/xxxx/* subdirectory) and also since
we no longer need to build intermediate libtool helper libs per subdirectory.
A quick, non-scientific test build on a quad-core laptop with 'make -j 4'
yields a build time reduction from 35s to 19s.
All autotools features that worked before are still intact without any
regressions, including the Make targets 'install', 'uninstall', 'check',
'dist', 'clean', 'distclean' and so on, as well as all the usual portability
handling (build works on any OS, with any Make implementation such as
GNU Make or BSD Make, with any shell such as sh/ksh/zsh/bash/dash, etc. etc.)
and features such as out-of-tree build support, cross-compile support,
testsuite support (also with colored output), "silent make rules", etc. etc.
2014-03-19 22:04:55 +00:00
|
|
|
endif
|
2017-06-28 06:15:24 +00:00
|
|
|
if HW_SALEAE_LOGIC_PRO
|
2017-06-25 18:37:57 +00:00
|
|
|
src_libdrivers_la_SOURCES += \
|
2017-06-28 06:15:24 +00:00
|
|
|
src/hardware/saleae-logic-pro/protocol.h \
|
|
|
|
src/hardware/saleae-logic-pro/protocol.c \
|
|
|
|
src/hardware/saleae-logic-pro/api.c
|
2017-06-25 18:37:57 +00:00
|
|
|
endif
|
2014-08-31 15:20:39 +00:00
|
|
|
if HW_SCPI_PPS
|
2016-06-05 21:10:44 +00:00
|
|
|
src_libdrivers_la_SOURCES += \
|
2014-08-31 15:20:39 +00:00
|
|
|
src/hardware/scpi-pps/protocol.h \
|
|
|
|
src/hardware/scpi-pps/protocol.c \
|
2014-09-05 01:23:32 +00:00
|
|
|
src/hardware/scpi-pps/profiles.c \
|
2014-08-31 15:20:39 +00:00
|
|
|
src/hardware/scpi-pps/api.c
|
|
|
|
endif
|
Switch to a non-recursive automake setup.
Instead of >= 44 Makefile.am's we now only have one top-level
Makefile.am, and use the 'subdir-objects' automake option to
handle the build via non-recursive (auto)make.
This has the advantage of fewer (boilerplate or other) files and less
clutter in general, as well as performance advantages since the new
setup can build many files in parallel (with 'make -j'), not only 2 or 3
files within the same (e.g. hardware/xxxx/* subdirectory) and also since
we no longer need to build intermediate libtool helper libs per subdirectory.
A quick, non-scientific test build on a quad-core laptop with 'make -j 4'
yields a build time reduction from 35s to 19s.
All autotools features that worked before are still intact without any
regressions, including the Make targets 'install', 'uninstall', 'check',
'dist', 'clean', 'distclean' and so on, as well as all the usual portability
handling (build works on any OS, with any Make implementation such as
GNU Make or BSD Make, with any shell such as sh/ksh/zsh/bash/dash, etc. etc.)
and features such as out-of-tree build support, cross-compile support,
testsuite support (also with colored output), "silent make rules", etc. etc.
2014-03-19 22:04:55 +00:00
|
|
|
if HW_SERIAL_DMM
|
2016-06-05 21:10:44 +00:00
|
|
|
src_libdrivers_la_SOURCES += \
|
2014-07-21 19:27:33 +00:00
|
|
|
src/hardware/serial-dmm/protocol.h \
|
|
|
|
src/hardware/serial-dmm/protocol.c \
|
|
|
|
src/hardware/serial-dmm/api.c
|
Switch to a non-recursive automake setup.
Instead of >= 44 Makefile.am's we now only have one top-level
Makefile.am, and use the 'subdir-objects' automake option to
handle the build via non-recursive (auto)make.
This has the advantage of fewer (boilerplate or other) files and less
clutter in general, as well as performance advantages since the new
setup can build many files in parallel (with 'make -j'), not only 2 or 3
files within the same (e.g. hardware/xxxx/* subdirectory) and also since
we no longer need to build intermediate libtool helper libs per subdirectory.
A quick, non-scientific test build on a quad-core laptop with 'make -j 4'
yields a build time reduction from 35s to 19s.
All autotools features that worked before are still intact without any
regressions, including the Make targets 'install', 'uninstall', 'check',
'dist', 'clean', 'distclean' and so on, as well as all the usual portability
handling (build works on any OS, with any Make implementation such as
GNU Make or BSD Make, with any shell such as sh/ksh/zsh/bash/dash, etc. etc.)
and features such as out-of-tree build support, cross-compile support,
testsuite support (also with colored output), "silent make rules", etc. etc.
2014-03-19 22:04:55 +00:00
|
|
|
endif
|
2016-12-26 12:12:35 +00:00
|
|
|
if HW_SERIAL_LCR
|
|
|
|
src_libdrivers_la_SOURCES += \
|
|
|
|
src/hardware/serial-lcr/api.c
|
|
|
|
endif
|
2018-02-11 14:18:57 +00:00
|
|
|
if HW_SIGLENT_SDS
|
|
|
|
src_libdrivers_la_SOURCES += \
|
|
|
|
src/hardware/siglent-sds/protocol.h \
|
|
|
|
src/hardware/siglent-sds/protocol.c \
|
|
|
|
src/hardware/siglent-sds/api.c
|
|
|
|
endif
|
Switch to a non-recursive automake setup.
Instead of >= 44 Makefile.am's we now only have one top-level
Makefile.am, and use the 'subdir-objects' automake option to
handle the build via non-recursive (auto)make.
This has the advantage of fewer (boilerplate or other) files and less
clutter in general, as well as performance advantages since the new
setup can build many files in parallel (with 'make -j'), not only 2 or 3
files within the same (e.g. hardware/xxxx/* subdirectory) and also since
we no longer need to build intermediate libtool helper libs per subdirectory.
A quick, non-scientific test build on a quad-core laptop with 'make -j 4'
yields a build time reduction from 35s to 19s.
All autotools features that worked before are still intact without any
regressions, including the Make targets 'install', 'uninstall', 'check',
'dist', 'clean', 'distclean' and so on, as well as all the usual portability
handling (build works on any OS, with any Make implementation such as
GNU Make or BSD Make, with any shell such as sh/ksh/zsh/bash/dash, etc. etc.)
and features such as out-of-tree build support, cross-compile support,
testsuite support (also with colored output), "silent make rules", etc. etc.
2014-03-19 22:04:55 +00:00
|
|
|
if HW_SYSCLK_LWLA
|
2016-06-05 21:10:44 +00:00
|
|
|
src_libdrivers_la_SOURCES += \
|
2014-07-21 19:27:33 +00:00
|
|
|
src/hardware/sysclk-lwla/lwla.h \
|
|
|
|
src/hardware/sysclk-lwla/lwla.c \
|
2015-11-22 16:45:54 +00:00
|
|
|
src/hardware/sysclk-lwla/lwla1016.c \
|
|
|
|
src/hardware/sysclk-lwla/lwla1034.c \
|
2014-07-21 19:27:33 +00:00
|
|
|
src/hardware/sysclk-lwla/protocol.h \
|
|
|
|
src/hardware/sysclk-lwla/protocol.c \
|
|
|
|
src/hardware/sysclk-lwla/api.c
|
Switch to a non-recursive automake setup.
Instead of >= 44 Makefile.am's we now only have one top-level
Makefile.am, and use the 'subdir-objects' automake option to
handle the build via non-recursive (auto)make.
This has the advantage of fewer (boilerplate or other) files and less
clutter in general, as well as performance advantages since the new
setup can build many files in parallel (with 'make -j'), not only 2 or 3
files within the same (e.g. hardware/xxxx/* subdirectory) and also since
we no longer need to build intermediate libtool helper libs per subdirectory.
A quick, non-scientific test build on a quad-core laptop with 'make -j 4'
yields a build time reduction from 35s to 19s.
All autotools features that worked before are still intact without any
regressions, including the Make targets 'install', 'uninstall', 'check',
'dist', 'clean', 'distclean' and so on, as well as all the usual portability
handling (build works on any OS, with any Make implementation such as
GNU Make or BSD Make, with any shell such as sh/ksh/zsh/bash/dash, etc. etc.)
and features such as out-of-tree build support, cross-compile support,
testsuite support (also with colored output), "silent make rules", etc. etc.
2014-03-19 22:04:55 +00:00
|
|
|
endif
|
|
|
|
if HW_TELEINFO
|
2016-06-05 21:10:44 +00:00
|
|
|
src_libdrivers_la_SOURCES += \
|
2014-07-21 19:27:33 +00:00
|
|
|
src/hardware/teleinfo/protocol.h \
|
|
|
|
src/hardware/teleinfo/protocol.c \
|
|
|
|
src/hardware/teleinfo/api.c
|
Switch to a non-recursive automake setup.
Instead of >= 44 Makefile.am's we now only have one top-level
Makefile.am, and use the 'subdir-objects' automake option to
handle the build via non-recursive (auto)make.
This has the advantage of fewer (boilerplate or other) files and less
clutter in general, as well as performance advantages since the new
setup can build many files in parallel (with 'make -j'), not only 2 or 3
files within the same (e.g. hardware/xxxx/* subdirectory) and also since
we no longer need to build intermediate libtool helper libs per subdirectory.
A quick, non-scientific test build on a quad-core laptop with 'make -j 4'
yields a build time reduction from 35s to 19s.
All autotools features that worked before are still intact without any
regressions, including the Make targets 'install', 'uninstall', 'check',
'dist', 'clean', 'distclean' and so on, as well as all the usual portability
handling (build works on any OS, with any Make implementation such as
GNU Make or BSD Make, with any shell such as sh/ksh/zsh/bash/dash, etc. etc.)
and features such as out-of-tree build support, cross-compile support,
testsuite support (also with colored output), "silent make rules", etc. etc.
2014-03-19 22:04:55 +00:00
|
|
|
endif
|
2014-06-30 23:34:29 +00:00
|
|
|
if HW_TESTO
|
2016-06-05 21:10:44 +00:00
|
|
|
src_libdrivers_la_SOURCES += \
|
2014-07-21 19:27:33 +00:00
|
|
|
src/hardware/testo/protocol.h \
|
|
|
|
src/hardware/testo/protocol.c \
|
|
|
|
src/hardware/testo/api.c
|
2014-06-30 23:34:29 +00:00
|
|
|
endif
|
Switch to a non-recursive automake setup.
Instead of >= 44 Makefile.am's we now only have one top-level
Makefile.am, and use the 'subdir-objects' automake option to
handle the build via non-recursive (auto)make.
This has the advantage of fewer (boilerplate or other) files and less
clutter in general, as well as performance advantages since the new
setup can build many files in parallel (with 'make -j'), not only 2 or 3
files within the same (e.g. hardware/xxxx/* subdirectory) and also since
we no longer need to build intermediate libtool helper libs per subdirectory.
A quick, non-scientific test build on a quad-core laptop with 'make -j 4'
yields a build time reduction from 35s to 19s.
All autotools features that worked before are still intact without any
regressions, including the Make targets 'install', 'uninstall', 'check',
'dist', 'clean', 'distclean' and so on, as well as all the usual portability
handling (build works on any OS, with any Make implementation such as
GNU Make or BSD Make, with any shell such as sh/ksh/zsh/bash/dash, etc. etc.)
and features such as out-of-tree build support, cross-compile support,
testsuite support (also with colored output), "silent make rules", etc. etc.
2014-03-19 22:04:55 +00:00
|
|
|
if HW_TONDAJ_SL_814
|
2016-06-05 21:10:44 +00:00
|
|
|
src_libdrivers_la_SOURCES += \
|
2014-07-21 19:27:33 +00:00
|
|
|
src/hardware/tondaj-sl-814/protocol.h \
|
|
|
|
src/hardware/tondaj-sl-814/protocol.c \
|
|
|
|
src/hardware/tondaj-sl-814/api.c
|
Switch to a non-recursive automake setup.
Instead of >= 44 Makefile.am's we now only have one top-level
Makefile.am, and use the 'subdir-objects' automake option to
handle the build via non-recursive (auto)make.
This has the advantage of fewer (boilerplate or other) files and less
clutter in general, as well as performance advantages since the new
setup can build many files in parallel (with 'make -j'), not only 2 or 3
files within the same (e.g. hardware/xxxx/* subdirectory) and also since
we no longer need to build intermediate libtool helper libs per subdirectory.
A quick, non-scientific test build on a quad-core laptop with 'make -j 4'
yields a build time reduction from 35s to 19s.
All autotools features that worked before are still intact without any
regressions, including the Make targets 'install', 'uninstall', 'check',
'dist', 'clean', 'distclean' and so on, as well as all the usual portability
handling (build works on any OS, with any Make implementation such as
GNU Make or BSD Make, with any shell such as sh/ksh/zsh/bash/dash, etc. etc.)
and features such as out-of-tree build support, cross-compile support,
testsuite support (also with colored output), "silent make rules", etc. etc.
2014-03-19 22:04:55 +00:00
|
|
|
endif
|
|
|
|
if HW_UNI_T_DMM
|
2016-06-05 21:10:44 +00:00
|
|
|
src_libdrivers_la_SOURCES += \
|
2014-07-21 19:27:33 +00:00
|
|
|
src/hardware/uni-t-dmm/protocol.h \
|
|
|
|
src/hardware/uni-t-dmm/protocol.c \
|
|
|
|
src/hardware/uni-t-dmm/api.c
|
Switch to a non-recursive automake setup.
Instead of >= 44 Makefile.am's we now only have one top-level
Makefile.am, and use the 'subdir-objects' automake option to
handle the build via non-recursive (auto)make.
This has the advantage of fewer (boilerplate or other) files and less
clutter in general, as well as performance advantages since the new
setup can build many files in parallel (with 'make -j'), not only 2 or 3
files within the same (e.g. hardware/xxxx/* subdirectory) and also since
we no longer need to build intermediate libtool helper libs per subdirectory.
A quick, non-scientific test build on a quad-core laptop with 'make -j 4'
yields a build time reduction from 35s to 19s.
All autotools features that worked before are still intact without any
regressions, including the Make targets 'install', 'uninstall', 'check',
'dist', 'clean', 'distclean' and so on, as well as all the usual portability
handling (build works on any OS, with any Make implementation such as
GNU Make or BSD Make, with any shell such as sh/ksh/zsh/bash/dash, etc. etc.)
and features such as out-of-tree build support, cross-compile support,
testsuite support (also with colored output), "silent make rules", etc. etc.
2014-03-19 22:04:55 +00:00
|
|
|
endif
|
|
|
|
if HW_UNI_T_UT32X
|
2016-06-05 21:10:44 +00:00
|
|
|
src_libdrivers_la_SOURCES += \
|
2014-07-21 19:27:33 +00:00
|
|
|
src/hardware/uni-t-ut32x/protocol.h \
|
|
|
|
src/hardware/uni-t-ut32x/protocol.c \
|
|
|
|
src/hardware/uni-t-ut32x/api.c
|
Switch to a non-recursive automake setup.
Instead of >= 44 Makefile.am's we now only have one top-level
Makefile.am, and use the 'subdir-objects' automake option to
handle the build via non-recursive (auto)make.
This has the advantage of fewer (boilerplate or other) files and less
clutter in general, as well as performance advantages since the new
setup can build many files in parallel (with 'make -j'), not only 2 or 3
files within the same (e.g. hardware/xxxx/* subdirectory) and also since
we no longer need to build intermediate libtool helper libs per subdirectory.
A quick, non-scientific test build on a quad-core laptop with 'make -j 4'
yields a build time reduction from 35s to 19s.
All autotools features that worked before are still intact without any
regressions, including the Make targets 'install', 'uninstall', 'check',
'dist', 'clean', 'distclean' and so on, as well as all the usual portability
handling (build works on any OS, with any Make implementation such as
GNU Make or BSD Make, with any shell such as sh/ksh/zsh/bash/dash, etc. etc.)
and features such as out-of-tree build support, cross-compile support,
testsuite support (also with colored output), "silent make rules", etc. etc.
2014-03-19 22:04:55 +00:00
|
|
|
endif
|
|
|
|
if HW_VICTOR_DMM
|
2016-06-05 21:10:44 +00:00
|
|
|
src_libdrivers_la_SOURCES += \
|
2014-07-21 19:27:33 +00:00
|
|
|
src/hardware/victor-dmm/protocol.h \
|
|
|
|
src/hardware/victor-dmm/protocol.c \
|
|
|
|
src/hardware/victor-dmm/api.c
|
Switch to a non-recursive automake setup.
Instead of >= 44 Makefile.am's we now only have one top-level
Makefile.am, and use the 'subdir-objects' automake option to
handle the build via non-recursive (auto)make.
This has the advantage of fewer (boilerplate or other) files and less
clutter in general, as well as performance advantages since the new
setup can build many files in parallel (with 'make -j'), not only 2 or 3
files within the same (e.g. hardware/xxxx/* subdirectory) and also since
we no longer need to build intermediate libtool helper libs per subdirectory.
A quick, non-scientific test build on a quad-core laptop with 'make -j 4'
yields a build time reduction from 35s to 19s.
All autotools features that worked before are still intact without any
regressions, including the Make targets 'install', 'uninstall', 'check',
'dist', 'clean', 'distclean' and so on, as well as all the usual portability
handling (build works on any OS, with any Make implementation such as
GNU Make or BSD Make, with any shell such as sh/ksh/zsh/bash/dash, etc. etc.)
and features such as out-of-tree build support, cross-compile support,
testsuite support (also with colored output), "silent make rules", etc. etc.
2014-03-19 22:04:55 +00:00
|
|
|
endif
|
2014-08-25 11:09:42 +00:00
|
|
|
if HW_YOKOGAWA_DLM
|
2016-06-05 21:10:44 +00:00
|
|
|
src_libdrivers_la_SOURCES += \
|
2014-08-25 11:09:42 +00:00
|
|
|
src/hardware/yokogawa-dlm/protocol.h \
|
|
|
|
src/hardware/yokogawa-dlm/protocol.c \
|
|
|
|
src/hardware/yokogawa-dlm/protocol_wrappers.h \
|
|
|
|
src/hardware/yokogawa-dlm/protocol_wrappers.c \
|
|
|
|
src/hardware/yokogawa-dlm/api.c
|
|
|
|
endif
|
Switch to a non-recursive automake setup.
Instead of >= 44 Makefile.am's we now only have one top-level
Makefile.am, and use the 'subdir-objects' automake option to
handle the build via non-recursive (auto)make.
This has the advantage of fewer (boilerplate or other) files and less
clutter in general, as well as performance advantages since the new
setup can build many files in parallel (with 'make -j'), not only 2 or 3
files within the same (e.g. hardware/xxxx/* subdirectory) and also since
we no longer need to build intermediate libtool helper libs per subdirectory.
A quick, non-scientific test build on a quad-core laptop with 'make -j 4'
yields a build time reduction from 35s to 19s.
All autotools features that worked before are still intact without any
regressions, including the Make targets 'install', 'uninstall', 'check',
'dist', 'clean', 'distclean' and so on, as well as all the usual portability
handling (build works on any OS, with any Make implementation such as
GNU Make or BSD Make, with any shell such as sh/ksh/zsh/bash/dash, etc. etc.)
and features such as out-of-tree build support, cross-compile support,
testsuite support (also with colored output), "silent make rules", etc. etc.
2014-03-19 22:04:55 +00:00
|
|
|
if HW_ZEROPLUS_LOGIC_CUBE
|
2016-06-05 21:10:44 +00:00
|
|
|
src_libdrivers_la_SOURCES += \
|
2014-07-21 19:27:33 +00:00
|
|
|
src/hardware/zeroplus-logic-cube/analyzer.c \
|
|
|
|
src/hardware/zeroplus-logic-cube/analyzer.h \
|
|
|
|
src/hardware/zeroplus-logic-cube/gl_usb.h \
|
|
|
|
src/hardware/zeroplus-logic-cube/gl_usb.c \
|
|
|
|
src/hardware/zeroplus-logic-cube/protocol.h \
|
|
|
|
src/hardware/zeroplus-logic-cube/protocol.c \
|
|
|
|
src/hardware/zeroplus-logic-cube/api.c
|
Switch to a non-recursive automake setup.
Instead of >= 44 Makefile.am's we now only have one top-level
Makefile.am, and use the 'subdir-objects' automake option to
handle the build via non-recursive (auto)make.
This has the advantage of fewer (boilerplate or other) files and less
clutter in general, as well as performance advantages since the new
setup can build many files in parallel (with 'make -j'), not only 2 or 3
files within the same (e.g. hardware/xxxx/* subdirectory) and also since
we no longer need to build intermediate libtool helper libs per subdirectory.
A quick, non-scientific test build on a quad-core laptop with 'make -j 4'
yields a build time reduction from 35s to 19s.
All autotools features that worked before are still intact without any
regressions, including the Make targets 'install', 'uninstall', 'check',
'dist', 'clean', 'distclean' and so on, as well as all the usual portability
handling (build works on any OS, with any Make implementation such as
GNU Make or BSD Make, with any shell such as sh/ksh/zsh/bash/dash, etc. etc.)
and features such as out-of-tree build support, cross-compile support,
testsuite support (also with colored output), "silent make rules", etc. etc.
2014-03-19 22:04:55 +00:00
|
|
|
endif
|
2018-02-08 17:01:23 +00:00
|
|
|
if HW_ZKETECH_EBD_USB
|
|
|
|
src_libdrivers_la_SOURCES += \
|
|
|
|
src/hardware/zketech-ebd-usb/protocol.h \
|
|
|
|
src/hardware/zketech-ebd-usb/protocol.c \
|
|
|
|
src/hardware/zketech-ebd-usb/api.c
|
|
|
|
endif
|
Switch to a non-recursive automake setup.
Instead of >= 44 Makefile.am's we now only have one top-level
Makefile.am, and use the 'subdir-objects' automake option to
handle the build via non-recursive (auto)make.
This has the advantage of fewer (boilerplate or other) files and less
clutter in general, as well as performance advantages since the new
setup can build many files in parallel (with 'make -j'), not only 2 or 3
files within the same (e.g. hardware/xxxx/* subdirectory) and also since
we no longer need to build intermediate libtool helper libs per subdirectory.
A quick, non-scientific test build on a quad-core laptop with 'make -j 4'
yields a build time reduction from 35s to 19s.
All autotools features that worked before are still intact without any
regressions, including the Make targets 'install', 'uninstall', 'check',
'dist', 'clean', 'distclean' and so on, as well as all the usual portability
handling (build works on any OS, with any Make implementation such as
GNU Make or BSD Make, with any shell such as sh/ksh/zsh/bash/dash, etc. etc.)
and features such as out-of-tree build support, cross-compile support,
testsuite support (also with colored output), "silent make rules", etc. etc.
2014-03-19 22:04:55 +00:00
|
|
|
|
2016-06-05 21:10:44 +00:00
|
|
|
libsigrok_la_LIBADD = src/libdrivers.lo $(SR_EXTRA_LIBS) $(LIBSIGROK_LIBS)
|
2015-08-15 13:59:52 +00:00
|
|
|
libsigrok_la_LDFLAGS = -version-info $(SR_LIB_VERSION) -no-undefined
|
2015-03-18 12:30:26 +00:00
|
|
|
|
2012-07-04 22:55:07 +00:00
|
|
|
library_includedir = $(includedir)/libsigrok
|
2014-04-26 02:03:11 +00:00
|
|
|
library_include_HEADERS = \
|
|
|
|
include/libsigrok/libsigrok.h \
|
2015-08-15 16:33:05 +00:00
|
|
|
include/libsigrok/proto.h
|
|
|
|
nodist_library_include_HEADERS = \
|
2014-04-26 02:03:11 +00:00
|
|
|
include/libsigrok/version.h
|
2014-07-21 19:27:33 +00:00
|
|
|
noinst_HEADERS = src/libsigrok-internal.h
|
2010-04-02 18:18:27 +00:00
|
|
|
|
2011-04-03 21:18:46 +00:00
|
|
|
pkgconfigdir = $(libdir)/pkgconfig
|
|
|
|
pkgconfig_DATA = libsigrok.pc
|
2010-05-11 16:07:54 +00:00
|
|
|
|
2017-06-15 16:46:14 +00:00
|
|
|
mimeappdir = $(datadir)/mime/packages
|
2017-06-11 21:19:27 +00:00
|
|
|
mimeapp_DATA = contrib/vnd.sigrok.session.xml
|
|
|
|
|
|
|
|
mimeicondir = $(datadir)/icons/hicolor/48x48/mimetypes
|
|
|
|
mimeicon_DATA = contrib/libsigrok.png
|
|
|
|
|
|
|
|
mimeiconscalabledir = $(datadir)/icons/hicolor/scalable/mimetypes
|
|
|
|
mimeiconscalable_DATA = contrib/libsigrok.svg
|
|
|
|
|
Switch to a non-recursive automake setup.
Instead of >= 44 Makefile.am's we now only have one top-level
Makefile.am, and use the 'subdir-objects' automake option to
handle the build via non-recursive (auto)make.
This has the advantage of fewer (boilerplate or other) files and less
clutter in general, as well as performance advantages since the new
setup can build many files in parallel (with 'make -j'), not only 2 or 3
files within the same (e.g. hardware/xxxx/* subdirectory) and also since
we no longer need to build intermediate libtool helper libs per subdirectory.
A quick, non-scientific test build on a quad-core laptop with 'make -j 4'
yields a build time reduction from 35s to 19s.
All autotools features that worked before are still intact without any
regressions, including the Make targets 'install', 'uninstall', 'check',
'dist', 'clean', 'distclean' and so on, as well as all the usual portability
handling (build works on any OS, with any Make implementation such as
GNU Make or BSD Make, with any shell such as sh/ksh/zsh/bash/dash, etc. etc.)
and features such as out-of-tree build support, cross-compile support,
testsuite support (also with colored output), "silent make rules", etc. etc.
2014-03-19 22:04:55 +00:00
|
|
|
EXTRA_DIST = \
|
|
|
|
Doxyfile \
|
|
|
|
HACKING \
|
|
|
|
README.devices \
|
2015-08-15 14:59:47 +00:00
|
|
|
bindings/cxx/ConfigKey_methods.cpp \
|
|
|
|
bindings/cxx/ConfigKey_methods.hpp \
|
|
|
|
bindings/cxx/ConfigKey_methods.i \
|
|
|
|
bindings/cxx/Doxyfile \
|
|
|
|
bindings/cxx/QuantityFlag_methods.cpp \
|
|
|
|
bindings/cxx/QuantityFlag_methods.hpp \
|
|
|
|
bindings/cxx/enums.py \
|
|
|
|
bindings/python/Doxyfile \
|
|
|
|
bindings/python/setup.py \
|
|
|
|
bindings/python/sigrok/__init__.py \
|
|
|
|
bindings/python/sigrok/core/__init__.py \
|
|
|
|
bindings/python/sigrok/core/classes.i \
|
2016-05-13 15:44:12 +00:00
|
|
|
bindings/ruby/classes.i \
|
2015-08-15 14:59:47 +00:00
|
|
|
bindings/java/Doxyfile \
|
|
|
|
bindings/java/org/sigrok/core/classes/classes.i \
|
|
|
|
bindings/java/org/sigrok/core/interfaces/DatafeedCallback.java \
|
|
|
|
bindings/java/org/sigrok/core/interfaces/LogCallback.java \
|
|
|
|
bindings/swig/classes.i \
|
|
|
|
bindings/swig/doc.py \
|
2015-11-07 20:57:20 +00:00
|
|
|
bindings/swig/templates.i \
|
2017-06-11 21:03:09 +00:00
|
|
|
contrib/libsigrok_112x112.png \
|
2017-06-11 21:19:27 +00:00
|
|
|
contrib/libsigrok.png \
|
|
|
|
contrib/libsigrok.svg \
|
|
|
|
contrib/vnd.sigrok.session.xml \
|
2017-11-22 07:45:52 +00:00
|
|
|
contrib/60-libsigrok.rules \
|
|
|
|
contrib/61-libsigrok-plugdev.rules \
|
|
|
|
contrib/61-libsigrok-uaccess.rules
|
Switch to a non-recursive automake setup.
Instead of >= 44 Makefile.am's we now only have one top-level
Makefile.am, and use the 'subdir-objects' automake option to
handle the build via non-recursive (auto)make.
This has the advantage of fewer (boilerplate or other) files and less
clutter in general, as well as performance advantages since the new
setup can build many files in parallel (with 'make -j'), not only 2 or 3
files within the same (e.g. hardware/xxxx/* subdirectory) and also since
we no longer need to build intermediate libtool helper libs per subdirectory.
A quick, non-scientific test build on a quad-core laptop with 'make -j 4'
yields a build time reduction from 35s to 19s.
All autotools features that worked before are still intact without any
regressions, including the Make targets 'install', 'uninstall', 'check',
'dist', 'clean', 'distclean' and so on, as well as all the usual portability
handling (build works on any OS, with any Make implementation such as
GNU Make or BSD Make, with any shell such as sh/ksh/zsh/bash/dash, etc. etc.)
and features such as out-of-tree build support, cross-compile support,
testsuite support (also with colored output), "silent make rules", etc. etc.
2014-03-19 22:04:55 +00:00
|
|
|
|
|
|
|
if HAVE_CHECK
|
2015-02-16 21:39:19 +00:00
|
|
|
TESTS = tests/main
|
Switch to a non-recursive automake setup.
Instead of >= 44 Makefile.am's we now only have one top-level
Makefile.am, and use the 'subdir-objects' automake option to
handle the build via non-recursive (auto)make.
This has the advantage of fewer (boilerplate or other) files and less
clutter in general, as well as performance advantages since the new
setup can build many files in parallel (with 'make -j'), not only 2 or 3
files within the same (e.g. hardware/xxxx/* subdirectory) and also since
we no longer need to build intermediate libtool helper libs per subdirectory.
A quick, non-scientific test build on a quad-core laptop with 'make -j 4'
yields a build time reduction from 35s to 19s.
All autotools features that worked before are still intact without any
regressions, including the Make targets 'install', 'uninstall', 'check',
'dist', 'clean', 'distclean' and so on, as well as all the usual portability
handling (build works on any OS, with any Make implementation such as
GNU Make or BSD Make, with any shell such as sh/ksh/zsh/bash/dash, etc. etc.)
and features such as out-of-tree build support, cross-compile support,
testsuite support (also with colored output), "silent make rules", etc. etc.
2014-03-19 22:04:55 +00:00
|
|
|
check_PROGRAMS = ${TESTS}
|
2015-08-26 11:13:39 +00:00
|
|
|
endif
|
Switch to a non-recursive automake setup.
Instead of >= 44 Makefile.am's we now only have one top-level
Makefile.am, and use the 'subdir-objects' automake option to
handle the build via non-recursive (auto)make.
This has the advantage of fewer (boilerplate or other) files and less
clutter in general, as well as performance advantages since the new
setup can build many files in parallel (with 'make -j'), not only 2 or 3
files within the same (e.g. hardware/xxxx/* subdirectory) and also since
we no longer need to build intermediate libtool helper libs per subdirectory.
A quick, non-scientific test build on a quad-core laptop with 'make -j 4'
yields a build time reduction from 35s to 19s.
All autotools features that worked before are still intact without any
regressions, including the Make targets 'install', 'uninstall', 'check',
'dist', 'clean', 'distclean' and so on, as well as all the usual portability
handling (build works on any OS, with any Make implementation such as
GNU Make or BSD Make, with any shell such as sh/ksh/zsh/bash/dash, etc. etc.)
and features such as out-of-tree build support, cross-compile support,
testsuite support (also with colored output), "silent make rules", etc. etc.
2014-03-19 22:04:55 +00:00
|
|
|
|
2015-02-16 21:39:19 +00:00
|
|
|
tests_main_SOURCES = \
|
2014-07-20 10:03:29 +00:00
|
|
|
include/libsigrok/libsigrok.h \
|
Switch to a non-recursive automake setup.
Instead of >= 44 Makefile.am's we now only have one top-level
Makefile.am, and use the 'subdir-objects' automake option to
handle the build via non-recursive (auto)make.
This has the advantage of fewer (boilerplate or other) files and less
clutter in general, as well as performance advantages since the new
setup can build many files in parallel (with 'make -j'), not only 2 or 3
files within the same (e.g. hardware/xxxx/* subdirectory) and also since
we no longer need to build intermediate libtool helper libs per subdirectory.
A quick, non-scientific test build on a quad-core laptop with 'make -j 4'
yields a build time reduction from 35s to 19s.
All autotools features that worked before are still intact without any
regressions, including the Make targets 'install', 'uninstall', 'check',
'dist', 'clean', 'distclean' and so on, as well as all the usual portability
handling (build works on any OS, with any Make implementation such as
GNU Make or BSD Make, with any shell such as sh/ksh/zsh/bash/dash, etc. etc.)
and features such as out-of-tree build support, cross-compile support,
testsuite support (also with colored output), "silent make rules", etc. etc.
2014-03-19 22:04:55 +00:00
|
|
|
tests/lib.c \
|
|
|
|
tests/lib.h \
|
2015-02-16 21:39:19 +00:00
|
|
|
tests/main.c \
|
|
|
|
tests/core.c \
|
|
|
|
tests/input_all.c \
|
|
|
|
tests/input_binary.c \
|
|
|
|
tests/output_all.c \
|
|
|
|
tests/transform_all.c \
|
|
|
|
tests/session.c \
|
|
|
|
tests/strutil.c \
|
|
|
|
tests/version.c \
|
|
|
|
tests/driver_all.c \
|
|
|
|
tests/device.c \
|
2015-10-15 10:13:43 +00:00
|
|
|
tests/trigger.c \
|
|
|
|
tests/analog.c
|
2015-02-16 21:39:19 +00:00
|
|
|
|
2015-08-26 11:13:39 +00:00
|
|
|
tests_main_LDADD = libsigrok.la $(SR_EXTRA_LIBS) $(TESTS_LIBS)
|
2012-01-04 01:50:26 +00:00
|
|
|
|
2014-07-19 16:05:29 +00:00
|
|
|
BUILD_EXTRA =
|
|
|
|
INSTALL_EXTRA =
|
2015-11-07 21:20:19 +00:00
|
|
|
UNINSTALL_EXTRA =
|
2014-07-19 16:05:29 +00:00
|
|
|
CLEAN_EXTRA =
|
|
|
|
|
2017-06-03 16:25:54 +00:00
|
|
|
libsigrok-uninstall:
|
|
|
|
-rmdir $(DESTDIR)$(includedir)/libsigrok
|
|
|
|
|
|
|
|
UNINSTALL_EXTRA += libsigrok-uninstall
|
|
|
|
|
2014-07-17 17:39:49 +00:00
|
|
|
if BINDINGS_CXX
|
|
|
|
|
2015-01-17 17:49:04 +00:00
|
|
|
lib_LTLIBRARIES += bindings/cxx/libsigrokcxx.la
|
2014-07-17 17:39:49 +00:00
|
|
|
|
2015-01-17 17:49:04 +00:00
|
|
|
bindings_cxx_libsigrokcxx_la_SOURCES = bindings/cxx/classes.cpp
|
2014-07-17 17:39:49 +00:00
|
|
|
|
2016-12-06 20:01:23 +00:00
|
|
|
bindings_cxx_libsigrokcxx_la_LIBADD = libsigrok.la $(SR_EXTRA_LIBS) $(LIBSIGROKCXX_LIBS) $(SR_EXTRA_CXX_LIBS)
|
2015-08-15 13:59:52 +00:00
|
|
|
bindings_cxx_libsigrokcxx_la_LDFLAGS = -version-info $(SR_LIB_VERSION) -no-undefined
|
2015-04-07 00:29:09 +00:00
|
|
|
|
2015-01-17 19:29:05 +00:00
|
|
|
bindings_cxx_libsigrokcxx_la_includedir = $(includedir)/libsigrokcxx
|
|
|
|
bindings_cxx_libsigrokcxx_la_include_HEADERS = \
|
2015-08-15 16:33:05 +00:00
|
|
|
bindings/cxx/include/libsigrokcxx/libsigrokcxx.hpp
|
|
|
|
nodist_bindings_cxx_libsigrokcxx_la_include_HEADERS = \
|
2015-01-17 19:11:53 +00:00
|
|
|
bindings/cxx/include/libsigrokcxx/enums.hpp
|
2014-07-17 17:39:49 +00:00
|
|
|
|
2015-01-17 17:49:04 +00:00
|
|
|
pkgconfig_DATA += bindings/cxx/libsigrokcxx.pc
|
2014-07-17 17:39:49 +00:00
|
|
|
|
2014-08-01 16:18:09 +00:00
|
|
|
doxy/xml/index.xml: include/libsigrok/libsigrok.h
|
2014-08-15 12:42:18 +00:00
|
|
|
$(AM_V_GEN)cd $(srcdir) && BUILDDIR=$(abs_builddir)/ doxygen Doxyfile 2>/dev/null
|
2014-07-19 16:05:29 +00:00
|
|
|
|
2015-08-15 17:18:36 +00:00
|
|
|
bindings/swig/enums.i: bindings/cxx/enums.timestamp
|
2014-07-19 16:05:29 +00:00
|
|
|
bindings/cxx/enums.cpp: bindings/cxx/enums.timestamp
|
2015-01-17 19:11:53 +00:00
|
|
|
bindings/cxx/include/libsigrokcxx/enums.hpp: bindings/cxx/enums.timestamp
|
2014-07-17 17:39:49 +00:00
|
|
|
|
2015-02-10 13:09:28 +00:00
|
|
|
bindings/cxx/enums.timestamp: $(srcdir)/bindings/cxx/enums.py doxy/xml/index.xml \
|
2014-07-17 17:39:49 +00:00
|
|
|
bindings/cxx/ConfigKey_methods.cpp bindings/cxx/QuantityFlag_methods.cpp
|
2015-02-10 13:09:28 +00:00
|
|
|
$(AM_V_GEN)$(PYTHON) $(srcdir)/bindings/cxx/enums.py doxy/xml/index.xml
|
2014-07-19 18:21:19 +00:00
|
|
|
$(AM_V_at)touch $@
|
2014-07-17 17:39:49 +00:00
|
|
|
|
2014-07-19 16:05:29 +00:00
|
|
|
bindings/cxx/classes.lo: bindings/cxx/classes.cpp bindings/cxx/enums.cpp \
|
2015-08-15 17:18:36 +00:00
|
|
|
$(library_include_HEADERS) $(nodist_library_include_HEADERS)
|
2014-07-17 17:39:49 +00:00
|
|
|
|
2014-07-19 16:05:29 +00:00
|
|
|
cxx-clean:
|
2014-08-01 16:18:09 +00:00
|
|
|
rm -rf doxy/
|
2014-08-01 17:17:33 +00:00
|
|
|
rm -rf bindings/cxx/doxy/
|
2015-11-07 21:29:12 +00:00
|
|
|
rm -f bindings/swig/enums.i
|
2014-07-19 16:05:29 +00:00
|
|
|
rm -f bindings/cxx/enums.cpp
|
2015-01-17 19:11:53 +00:00
|
|
|
rm -f bindings/cxx/include/libsigrokcxx/enums.hpp
|
2014-07-19 16:05:29 +00:00
|
|
|
rm -f bindings/cxx/enums.timestamp
|
2014-07-17 17:39:49 +00:00
|
|
|
|
2014-07-19 16:05:29 +00:00
|
|
|
CLEAN_EXTRA += cxx-clean
|
|
|
|
|
2017-06-03 16:25:54 +00:00
|
|
|
cxx-uninstall:
|
|
|
|
-rmdir $(DESTDIR)$(includedir)/libsigrokcxx
|
|
|
|
|
|
|
|
UNINSTALL_EXTRA += cxx-uninstall
|
|
|
|
|
2014-07-19 16:05:29 +00:00
|
|
|
endif
|
2014-07-17 17:45:29 +00:00
|
|
|
|
2014-08-01 17:17:33 +00:00
|
|
|
CPPXMLDOC = bindings/cxx/doxy/xml/index.xml
|
|
|
|
|
2015-01-17 19:11:53 +00:00
|
|
|
$(CPPXMLDOC): bindings/cxx/include/libsigrokcxx/libsigrokcxx.hpp \
|
2014-08-01 17:17:33 +00:00
|
|
|
bindings/cxx/enums.timestamp
|
2014-08-14 21:07:45 +00:00
|
|
|
$(AM_V_GEN)cd $(srcdir)/bindings/cxx && BUILDDIR=$(abs_builddir)/bindings/cxx/ doxygen Doxyfile 2>/dev/null
|
2014-08-01 17:17:33 +00:00
|
|
|
|
2015-10-29 21:39:44 +00:00
|
|
|
# Macro definitions to be used by the SWIG parser.
|
|
|
|
swig_defs = -Dnoexcept= -Dprivate=protected -DG_GNUC_BEGIN_IGNORE_DEPRECATIONS= -DG_GNUC_END_IGNORE_DEPRECATIONS=
|
|
|
|
|
2014-07-17 17:45:29 +00:00
|
|
|
if BINDINGS_PYTHON
|
|
|
|
|
2014-07-19 15:23:45 +00:00
|
|
|
PDIR = bindings/python
|
2015-10-25 14:04:49 +00:00
|
|
|
PDOC_START = bindings/python/sigrok/core/doc_start.i
|
|
|
|
PDOC_END = bindings/python/sigrok/core/doc_end.i
|
2014-08-01 17:17:33 +00:00
|
|
|
|
2017-02-01 17:50:26 +00:00
|
|
|
setup_vars = VERSION='$(PACKAGE_VERSION)' CC='$(CXX)' CXX='$(CXX)' CFLAGS='$(CXXFLAGS) $(SR_WXXFLAGS) $(PYSIGROK_CFLAGS)' CXXFLAGS='$(CXXFLAGS) $(SR_WXXFLAGS) $(PYSIGROK_CFLAGS)' LDADD='$(PYSIGROK_LIBS)'
|
2015-08-28 23:54:17 +00:00
|
|
|
setup_quiet = --quiet
|
|
|
|
setup_py = $(PYTHON) $(srcdir)/$(PDIR)/setup.py $(setup_vars) $(setup_quiet)
|
2015-08-18 19:24:39 +00:00
|
|
|
|
2015-10-25 14:04:49 +00:00
|
|
|
$(PDOC_START): $(srcdir)/bindings/swig/doc.py $(CPPXMLDOC)
|
2015-01-12 00:19:12 +00:00
|
|
|
$(AM_V_at)test -d $(PDIR)/sigrok/core || $(MKDIR_P) $(PDIR)/sigrok/core
|
2015-10-25 14:04:49 +00:00
|
|
|
$(AM_V_GEN)$(PYTHON) $(srcdir)/bindings/swig/doc.py python $(CPPXMLDOC) start > $@
|
|
|
|
|
|
|
|
$(PDOC_END): $(srcdir)/bindings/swig/doc.py $(CPPXMLDOC)
|
|
|
|
$(AM_V_at)test -d $(PDIR)/sigrok/core || $(MKDIR_P) $(PDIR)/sigrok/core
|
|
|
|
$(AM_V_GEN)$(PYTHON) $(srcdir)/bindings/swig/doc.py python $(CPPXMLDOC) end > $@
|
2014-07-19 15:23:45 +00:00
|
|
|
|
|
|
|
python-build: $(PDIR)/timestamp
|
|
|
|
|
2015-09-07 11:32:05 +00:00
|
|
|
$(PDIR)/timestamp: $(PDIR)/sigrok/core/classes.i \
|
2015-10-25 14:43:15 +00:00
|
|
|
bindings/swig/classes.i bindings/swig/templates.i \
|
|
|
|
bindings/swig/enums.i $(PDOC_START) $(PDOC_END) \
|
|
|
|
$(library_include_HEADERS) \
|
2015-10-25 14:04:49 +00:00
|
|
|
$(nodist_library_include_HEADERS) \
|
2015-09-07 11:32:05 +00:00
|
|
|
$(bindings_cxx_libsigrokcxx_la_include_HEADERS) \
|
|
|
|
$(nodist_bindings_cxx_libsigrokcxx_la_include_HEADERS) \
|
2015-09-09 06:21:01 +00:00
|
|
|
@ORDER@ bindings/cxx/libsigrokcxx.la
|
2015-08-18 19:24:39 +00:00
|
|
|
$(AM_V_at)$(setup_py) clean --all 2>/dev/null
|
2015-10-29 21:39:44 +00:00
|
|
|
$(AM_V_GEN)$(setup_py) build_ext --swig "$(SWIG)" --swig-opts '$(swig_defs)' build_py
|
2015-08-18 19:24:39 +00:00
|
|
|
$(AM_V_at): >$@
|
2014-07-17 17:45:29 +00:00
|
|
|
|
2015-08-18 19:24:39 +00:00
|
|
|
python-install:
|
|
|
|
$(AM_V_at)$(MKDIR_P) "$(DESTDIR)$(prefix)" "$(DESTDIR)$(exec_prefix)"
|
2015-09-02 12:07:06 +00:00
|
|
|
destdir='$(DESTDIR)'; $(setup_py) install $${destdir:+"--root=$$destdir"} \
|
|
|
|
--prefix "$(prefix)" --exec-prefix "$(exec_prefix)"
|
2014-07-17 17:45:29 +00:00
|
|
|
|
2014-07-22 02:31:54 +00:00
|
|
|
python-clean:
|
2015-08-18 19:24:39 +00:00
|
|
|
-$(AM_V_at)rm -f $(PDIR)/timestamp
|
|
|
|
-$(AM_V_at)rm -fr $(PDIR)/doxy
|
2015-08-28 23:54:17 +00:00
|
|
|
-$(AM_V_at)$(setup_py) clean --all 2>/dev/null
|
2014-08-01 18:22:24 +00:00
|
|
|
|
|
|
|
python-doc:
|
2015-08-18 19:24:39 +00:00
|
|
|
$(AM_V_at)cd $(srcdir)/$(PDIR) && BUILDDIR="$(abs_builddir)/$(PDIR)/" doxygen Doxyfile 2>/dev/null
|
2014-07-17 17:45:29 +00:00
|
|
|
|
|
|
|
BUILD_EXTRA += python-build
|
|
|
|
INSTALL_EXTRA += python-install
|
|
|
|
CLEAN_EXTRA += python-clean
|
|
|
|
|
|
|
|
endif
|
|
|
|
|
2016-01-11 13:31:47 +00:00
|
|
|
if BINDINGS_RUBY
|
|
|
|
|
|
|
|
RDIR = bindings/ruby
|
|
|
|
RDOC = $(RDIR)/doc.i
|
|
|
|
RWRAP = $(RDIR)/classes_wrap.cpp
|
|
|
|
ROBJ = $(RWRAP:.cpp=.o)
|
2016-01-28 21:48:44 +00:00
|
|
|
REXT = $(RDIR)/sigrok.$(RUBY_DLEXT)
|
2016-01-11 13:31:47 +00:00
|
|
|
|
|
|
|
$(RDOC): $(srcdir)/bindings/swig/doc.py $(CPPXMLDOC)
|
2016-05-12 21:08:21 +00:00
|
|
|
$(AM_V_at)test -d $(RDIR) || $(MKDIR_P) $(RDIR)
|
2016-01-11 13:31:47 +00:00
|
|
|
$(AM_V_GEN)$(PYTHON) $(srcdir)/bindings/swig/doc.py ruby $(CPPXMLDOC) > $@
|
|
|
|
|
2016-05-25 20:38:41 +00:00
|
|
|
$(RWRAP): $(srcdir)/$(RDIR)/classes.i $(RDOC) \
|
2016-01-11 13:31:47 +00:00
|
|
|
bindings/swig/classes.i bindings/swig/templates.i \
|
|
|
|
bindings/swig/enums.i
|
2016-05-25 20:38:41 +00:00
|
|
|
$(AM_V_GEN)$(SWIG) -ruby -c++ -Ibindings -Ibindings/cxx/include -I$(RDIR) $(local_includes) $(swig_defs) -o $@ $(srcdir)/$(RDIR)/classes.i
|
2016-01-11 13:31:47 +00:00
|
|
|
|
|
|
|
$(ROBJ): $(RWRAP) \
|
|
|
|
$(library_include_HEADERS) \
|
|
|
|
$(nodist_library_include_HEADERS) \
|
|
|
|
$(bindings_cxx_libsigrokcxx_la_include_HEADERS) \
|
|
|
|
$(nodist_bindings_cxx_libsigrokcxx_la_include_HEADERS)
|
2016-05-25 20:38:41 +00:00
|
|
|
$(AM_V_CXX)$(CXX) $(RBSIGROK_CFLAGS) -I. -Iinclude -Ibindings/cxx/include $(local_includes) -fPIC -o $@ -c $(RWRAP)
|
2016-01-11 13:31:47 +00:00
|
|
|
|
|
|
|
$(REXT): $(ROBJ) @ORDER@ bindings/cxx/libsigrokcxx.la
|
2016-05-25 20:38:41 +00:00
|
|
|
$(AM_V_CXXLD)$(CXX) -shared -o $@ $(ROBJ) -lsigrokcxx -Lbindings/cxx/.libs $(RBSIGROK_LIBS)
|
2016-01-11 13:31:47 +00:00
|
|
|
|
|
|
|
ruby-build: $(REXT)
|
|
|
|
|
|
|
|
ruby-install: $(REXT)
|
2016-01-28 21:48:44 +00:00
|
|
|
$(INSTALL) -d $(DESTDIR)$(prefix)/$(RBSIGROK_EXTDIR)
|
2016-05-25 20:38:41 +00:00
|
|
|
$(INSTALL) $(REXT) $(DESTDIR)$(prefix)/$(RBSIGROK_EXTDIR)
|
2016-01-11 13:31:47 +00:00
|
|
|
|
2016-05-13 15:44:12 +00:00
|
|
|
ruby-uninstall:
|
|
|
|
rm -f $(DESTDIR)$(prefix)/$(RBSIGROK_EXTDIR)/sigrok.$(RUBY_DLEXT)
|
|
|
|
|
2016-01-11 13:31:47 +00:00
|
|
|
ruby-clean:
|
|
|
|
-$(AM_V_at)rm -fr $(RDIR)/doc
|
2016-05-12 21:08:21 +00:00
|
|
|
-$(AM_V_at)rm -f $(REXT) $(ROBJ) $(RWRAP) $(RDOC)
|
2016-01-11 13:31:47 +00:00
|
|
|
|
|
|
|
ruby-doc: $(RWRAP)
|
2016-05-25 20:38:41 +00:00
|
|
|
$(AM_V_at)yard doc -o $(RDIR)/doc $(RWRAP)
|
2016-01-11 13:31:47 +00:00
|
|
|
|
|
|
|
BUILD_EXTRA += ruby-build
|
|
|
|
INSTALL_EXTRA += ruby-install
|
2016-05-13 15:44:12 +00:00
|
|
|
UNINSTALL_EXTRA += ruby-uninstall
|
2016-01-11 13:31:47 +00:00
|
|
|
CLEAN_EXTRA += ruby-clean
|
|
|
|
|
|
|
|
endif
|
|
|
|
|
2014-04-27 08:48:18 +00:00
|
|
|
if BINDINGS_JAVA
|
|
|
|
|
|
|
|
JDIR = bindings/java
|
2014-07-26 18:11:11 +00:00
|
|
|
JPKG = org/sigrok/core
|
|
|
|
JCLS = $(JDIR)/$(JPKG)/classes
|
|
|
|
JINT = $(JDIR)/$(JPKG)/interfaces
|
2014-08-14 21:07:45 +00:00
|
|
|
JSRC = $(JCLS)/*.java $(srcdir)/$(JINT)/*.java
|
2014-07-26 18:11:11 +00:00
|
|
|
JSWG = $(JCLS)/classes.i
|
2014-08-01 17:17:33 +00:00
|
|
|
JDOC = $(JCLS)/doc.i
|
2014-07-26 18:11:11 +00:00
|
|
|
JCXX = $(JCLS)/classes_wrap.cxx
|
2014-04-27 08:48:18 +00:00
|
|
|
JLIB = $(JDIR)/libsigrok_java_core_classes.so
|
|
|
|
JJAR = $(JDIR)/sigrok-core.jar
|
|
|
|
|
2015-08-18 19:24:39 +00:00
|
|
|
java_cleanfiles = $(JCXX) $(JCLS)/*.java $(JCLS)/*.class $(JINT)/*.class $(JJAR) $(JLIB)
|
|
|
|
|
2014-04-27 08:48:18 +00:00
|
|
|
java-build: $(JJAR) $(JLIB)
|
|
|
|
|
2015-08-18 16:06:08 +00:00
|
|
|
$(JDOC): $(srcdir)/bindings/swig/doc.py $(CPPXMLDOC)
|
2015-01-12 00:19:12 +00:00
|
|
|
$(AM_V_at)test -d $(JCLS) || $(MKDIR_P) $(JCLS)
|
2015-08-18 16:06:08 +00:00
|
|
|
$(AM_V_GEN)$(PYTHON) $(srcdir)/bindings/swig/doc.py java $(CPPXMLDOC) > $@
|
2014-08-01 17:17:33 +00:00
|
|
|
|
2015-10-25 14:43:15 +00:00
|
|
|
$(JCXX): $(srcdir)/$(JSWG) $(JDOC) bindings/swig/classes.i \
|
|
|
|
bindings/swig/templates.i bindings/swig/enums.i \
|
2015-09-07 11:32:05 +00:00
|
|
|
$(bindings_cxx_libsigrokcxx_la_include_HEADERS) \
|
|
|
|
$(nodist_bindings_cxx_libsigrokcxx_la_include_HEADERS)
|
2015-08-18 19:24:39 +00:00
|
|
|
-$(AM_V_at)rm -f $(java_cleanfiles)
|
2015-10-29 21:39:44 +00:00
|
|
|
$(AM_V_GEN)$(SWIG) -c++ $(swig_defs) \
|
2015-10-11 12:31:18 +00:00
|
|
|
-java -package org.sigrok.core.classes \
|
2015-08-18 16:06:08 +00:00
|
|
|
-Ibindings -I$(JCLS) $(local_includes) -I$(srcdir) $(JNI_CPPFLAGS) \
|
|
|
|
-outdir $(JCLS) -o $@ $(srcdir)/$(JSWG)
|
2014-04-27 08:48:18 +00:00
|
|
|
|
2014-07-26 18:11:11 +00:00
|
|
|
$(JJAR): $(JCXX)
|
2015-08-15 13:59:52 +00:00
|
|
|
$(AM_V_GEN)$(JAVAC) -d $(JDIR) $(JSRC)
|
2014-07-19 18:21:19 +00:00
|
|
|
$(AM_V_at)jar cf $(JJAR) -C $(JDIR) $(JPKG)
|
2014-04-27 08:48:18 +00:00
|
|
|
|
2015-09-07 11:32:05 +00:00
|
|
|
$(JLIB): $(JCXX) \
|
|
|
|
$(library_include_HEADERS) $(nodist_library_include_HEADERS) \
|
|
|
|
$(bindings_cxx_libsigrokcxx_la_include_HEADERS) \
|
|
|
|
$(nodist_bindings_cxx_libsigrokcxx_la_include_HEADERS) \
|
2015-09-09 06:21:01 +00:00
|
|
|
@ORDER@ bindings/cxx/libsigrokcxx.la
|
2016-12-06 20:01:23 +00:00
|
|
|
$(AM_V_GEN)$(CXXCOMPILE) $(JNI_CPPFLAGS) $(LDFLAGS) -L.libs -Lbindings/cxx/.libs \
|
2014-07-26 18:11:11 +00:00
|
|
|
-fno-strict-aliasing -fPIC -shared $(JCLS)/classes_wrap.cxx \
|
2016-12-06 20:01:23 +00:00
|
|
|
-lsigrokcxx $(LIBSIGROKCXX_LIBS) $(SR_EXTRA_CXX_LIBS) -o $(JLIB)
|
2014-04-27 08:48:18 +00:00
|
|
|
|
|
|
|
java-install:
|
2015-05-29 22:00:19 +00:00
|
|
|
$(INSTALL) -d $(DESTDIR)$(libdir)/jni
|
2015-10-29 22:59:12 +00:00
|
|
|
$(INSTALL) $(JLIB) $(DESTDIR)$(libdir)/jni
|
2015-05-29 22:00:19 +00:00
|
|
|
$(INSTALL) -d $(DESTDIR)$(datadir)/java
|
2015-10-29 22:59:12 +00:00
|
|
|
$(INSTALL) $(JJAR) $(DESTDIR)$(datadir)/java
|
2014-04-27 08:48:18 +00:00
|
|
|
|
2015-11-07 21:20:19 +00:00
|
|
|
java-uninstall:
|
|
|
|
-rm -f $(DESTDIR)$(datadir)/java/sigrok-core.jar
|
|
|
|
-rm -f $(DESTDIR)$(libdir)/jni/libsigrok_java_core_classes.so
|
|
|
|
|
2014-04-27 08:48:18 +00:00
|
|
|
java-clean:
|
2015-11-07 21:29:12 +00:00
|
|
|
-$(AM_V_at)rm -f $(java_cleanfiles) $(JDOC)
|
2015-08-18 19:24:39 +00:00
|
|
|
-$(AM_V_at)rm -fr $(JDIR)/doxy
|
2014-08-01 18:29:48 +00:00
|
|
|
|
|
|
|
java-doc:
|
2015-08-18 19:24:39 +00:00
|
|
|
$(AM_V_at)cd $(srcdir)/$(JDIR) && BUILDDIR="$(abs_builddir)/$(JDIR)/" doxygen Doxyfile
|
2014-04-27 08:48:18 +00:00
|
|
|
|
|
|
|
BUILD_EXTRA += java-build
|
|
|
|
INSTALL_EXTRA += java-install
|
2015-11-07 21:20:19 +00:00
|
|
|
UNINSTALL_EXTRA += java-uninstall
|
2014-04-27 08:48:18 +00:00
|
|
|
CLEAN_EXTRA += java-clean
|
|
|
|
|
|
|
|
endif
|
|
|
|
|
2014-07-17 17:45:29 +00:00
|
|
|
all-local: $(BUILD_EXTRA)
|
|
|
|
install-exec-local: $(INSTALL_EXTRA)
|
2017-06-03 16:25:54 +00:00
|
|
|
uninstall-hook: $(UNINSTALL_EXTRA)
|
2014-07-19 15:23:45 +00:00
|
|
|
clean-local: $(CLEAN_EXTRA)
|
2014-07-17 17:45:29 +00:00
|
|
|
|
2015-11-07 20:51:40 +00:00
|
|
|
.PHONY: dist-changelog
|
|
|
|
|
|
|
|
dist-hook: dist-changelog
|
|
|
|
|
|
|
|
dist-changelog:
|
|
|
|
$(AM_V_at)if test ! -d '$(top_srcdir)/.git'; then \
|
|
|
|
cp -f '$(top_srcdir)/ChangeLog' "$(top_distdir)/ChangeLog"; \
|
|
|
|
elif git -C '$(top_srcdir)' log >.ChangeLog.tmp; then \
|
|
|
|
mv -f .ChangeLog.tmp "$(top_distdir)/ChangeLog"; \
|
|
|
|
else \
|
|
|
|
rm -f .ChangeLog.tmp; exit 1; \
|
|
|
|
fi
|
2012-03-28 00:32:52 +00:00
|
|
|
|