src/hwdriver.c \
src/trigger.c \
src/soft-trigger.c \
+ src/analog.c \
+ src/fallback.c \
src/strutil.c \
src/log.c \
src/version.c \
src/std.c
# Input modules
-# src/input/binary.c \
-#
libsigrok_la_SOURCES += \
src/input/input.c \
+ src/input/binary.c \
src/input/chronovu_la8.c \
src/input/csv.c \
src/input/vcd.c \
src/output/gnuplot.c \
src/output/hex.c \
src/output/ols.c \
+ src/output/srzip.c \
src/output/vcd.c
+# Transform modules
+libsigrok_la_SOURCES += \
+ src/transform/transform.c \
+ src/transform/nop.c \
+ src/transform/scale.c \
+ src/transform/invert.c
+
# SCPI support
libsigrok_la_SOURCES += \
src/scpi/scpi.c \
libsigrok_la_SOURCES += \
src/scpi/scpi_visa.c
endif
+if NEED_GPIB
+libsigrok_la_SOURCES += \
+ src/scpi/scpi_libgpib.c
+endif
# Hardware (DMM chip parsers)
libsigrok_la_SOURCES += \
src/dmm/m2110.c \
src/dmm/metex14.c \
src/dmm/rs9lcd.c \
- src/dmm/bm25x.c
+ src/dmm/bm25x.c \
+ src/dmm/ut71x.c
+
+# Hardware (LCR chip parsers)
+if NEED_SERIAL
+libsigrok_la_SOURCES += \
+ src/lcr/es51919.c
+endif
# Hardware drivers
if HW_AGILENT_DMM
libsigrok_la_SOURCES += \
src/hardware/demo/demo.c
endif
+if HW_DEREE_DE5000
+libsigrok_la_SOURCES += \
+ src/hardware/deree-de5000/api.c
+endif
if HW_FLUKE_DMM
libsigrok_la_SOURCES += \
src/hardware/fluke-dmm/fluke-dmm.h \
src/hardware/saleae-logic16/protocol.c \
src/hardware/saleae-logic16/api.c
endif
+if HW_SCPI_PPS
+libsigrok_la_SOURCES += \
+ src/hardware/scpi-pps/protocol.h \
+ src/hardware/scpi-pps/protocol.c \
+ src/hardware/scpi-pps/profiles.c \
+ src/hardware/scpi-pps/api.c
+endif
if HW_SERIAL_DMM
libsigrok_la_SOURCES += \
src/hardware/serial-dmm/protocol.h \
src/hardware/victor-dmm/protocol.c \
src/hardware/victor-dmm/api.c
endif
+if HW_YOKOGAWA_DLM
+libsigrok_la_SOURCES += \
+ 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
if HW_ZEROPLUS_LOGIC_CUBE
libsigrok_la_SOURCES += \
src/hardware/zeroplus-logic-cube/analyzer.c \
tests/check_session.c \
tests/check_strutil.c \
tests/check_version.c \
- tests/check_driver_all.c
+ tests/check_driver_all.c \
+ tests/check_device.c \
+ tests/check_trigger.c
tests_check_main_CFLAGS = @check_CFLAGS@
if BINDINGS_CXX
-lib_LTLIBRARIES += bindings/cxx/libsigrokxx.la
+lib_LTLIBRARIES += bindings/cxx/libsigrokcxx.la
-bindings_cxx_libsigrokxx_la_SOURCES = bindings/cxx/classes.cpp
+bindings_cxx_libsigrokcxx_la_SOURCES = bindings/cxx/classes.cpp
-bindings_cxx_libsigrokxx_la_LIBADD = libsigrok.la $(glibmm_LIBS)
+bindings_cxx_libsigrokcxx_la_LIBADD = libsigrok.la $(glibmm_LIBS)
-bindings_cxx_libsigrokxx_la_LDFLAGS = $(SR_LIB_LDFLAGS)
+bindings_cxx_libsigrokcxx_la_LDFLAGS = $(SR_LIB_LDFLAGS)
-library_include_HEADERS += \
- bindings/cxx/include/libsigrok/libsigrok.hpp \
- bindings/cxx/include/libsigrok/enums.hpp
+bindings_cxx_libsigrokcxx_la_includedir = $(includedir)/libsigrokcxx
+bindings_cxx_libsigrokcxx_la_include_HEADERS = \
+ bindings/cxx/include/libsigrokcxx/libsigrokcxx.hpp \
+ bindings/cxx/include/libsigrokcxx/enums.hpp
-pkgconfig_DATA += bindings/cxx/libsigrokxx.pc
+pkgconfig_DATA += bindings/cxx/libsigrokcxx.pc
doxy/xml/index.xml: include/libsigrok/libsigrok.h
$(AM_V_GEN)cd $(srcdir) && BUILDDIR=$(abs_builddir)/ doxygen Doxyfile 2>/dev/null
bindings/cxx/enums.cpp: bindings/cxx/enums.timestamp
-bindings/cxx/include/libsigrok/enums.hpp: bindings/cxx/enums.timestamp
+bindings/cxx/include/libsigrokcxx/enums.hpp: bindings/cxx/enums.timestamp
-bindings/cxx/enums.timestamp: bindings/cxx/enums.py doxy/xml/index.xml \
+bindings/cxx/enums.timestamp: $(srcdir)/bindings/cxx/enums.py doxy/xml/index.xml \
bindings/cxx/ConfigKey_methods.cpp bindings/cxx/QuantityFlag_methods.cpp
- $(AM_V_GEN)python $< doxy/xml/index.xml
+ $(AM_V_GEN)$(PYTHON) $(srcdir)/bindings/cxx/enums.py doxy/xml/index.xml
$(AM_V_at)touch $@
bindings/cxx/classes.lo: bindings/cxx/classes.cpp bindings/cxx/enums.cpp \
rm -rf doxy/
rm -rf bindings/cxx/doxy/
rm -f bindings/cxx/enums.cpp
- rm -f bindings/cxx/include/libsigrok/enums.hpp
+ rm -f bindings/cxx/include/libsigrokcxx/enums.hpp
rm -f bindings/cxx/enums.timestamp
CLEAN_EXTRA += cxx-clean
CPPXMLDOC = bindings/cxx/doxy/xml/index.xml
-$(CPPXMLDOC): bindings/cxx/include/libsigrok/libsigrok.hpp \
+$(CPPXMLDOC): bindings/cxx/include/libsigrokcxx/libsigrokcxx.hpp \
bindings/cxx/enums.timestamp
$(AM_V_GEN)cd $(srcdir)/bindings/cxx && BUILDDIR=$(abs_builddir)/bindings/cxx/ doxygen Doxyfile 2>/dev/null
PDOC = bindings/python/sigrok/core/doc.i
$(PDOC): bindings/swig/doc.py $(CPPXMLDOC)
- $(AM_V_at)test -d $(PDIR)/sigrok/core || mkdir -p $(PDIR)/sigrok/core
- $(AM_V_GEN)python $< python $(CPPXMLDOC) > $@
+ $(AM_V_at)test -d $(PDIR)/sigrok/core || $(MKDIR_P) $(PDIR)/sigrok/core
+ $(AM_V_GEN)$(PYTHON) $< python $(CPPXMLDOC) > $@
python-build: $(PDIR)/timestamp
python-quietclean:
- $(AM_V_at)cd $(PDIR) && python $(abs_srcdir)/$(PDIR)/setup.py --quiet clean --all 3>&1 1>&2 2>&3 \
+ $(AM_V_at)cd $(PDIR) && $(PYTHON) $(abs_srcdir)/$(PDIR)/setup.py --quiet clean --all 3>&1 1>&2 2>&3 \
| grep -v "can.t clean it"; true
-$(PDIR)/timestamp: bindings/cxx/libsigrokxx.la $(PDIR)/sigrok/core/classes.i \
+$(PDIR)/timestamp: bindings/cxx/libsigrokcxx.la $(PDIR)/sigrok/core/classes.i \
bindings/swig/classes.i $(PDOC) $(library_include_HEADERS)
$(AM_V_at)$(MAKE) python-quietclean
- $(AM_V_GEN)cd $(PDIR) && python $(abs_srcdir)/$(PDIR)/setup.py --quiet build 3>&1 1>&2 2>&3 \
+ $(AM_V_GEN)cd $(PDIR) && $(PYTHON) $(abs_srcdir)/$(PDIR)/setup.py --quiet build 3>&1 1>&2 2>&3 \
| grep -v "command line option.*Wstrict-prototypes"; true
$(AM_V_at)touch $(PDIR)/timestamp
-python-install:
- cd $(PDIR) && python $(abs_srcdir)/$(PDIR)/setup.py --quiet install --prefix $(prefix)
+$(DESTDIR)$(prefix):
+ $(MKDIR_P) $@
+
+python-install: $(DESTDIR)$(prefix)
+ cd $(PDIR) && $(PYTHON) $(abs_srcdir)/$(PDIR)/setup.py --quiet install --prefix $(prefix) `test "$(DESTDIR)" && echo --root=$(DESTDIR)`
python-clean:
$(AM_V_at)$(MAKE) python-quietclean
java-build: $(JJAR) $(JLIB)
$(JDOC): bindings/swig/doc.py $(CPPXMLDOC)
- $(AM_V_at)test -d $(JCLS) || mkdir -p $(JCLS)
+ $(AM_V_at)test -d $(JCLS) || $(MKDIR_P) $(JCLS)
$(AM_V_GEN)python $< java $(CPPXMLDOC) > $@
$(JCXX): $(JSWG) $(JDOC) bindings/swig/classes.i $(library_include_HEADERS)
+ $(AM_V_at)make java-clean
$(AM_V_GEN)swig -c++ -java -package org.sigrok.core.classes \
-I$(srcdir)/include -I$(srcdir)/bindings/cxx/include -I$(srcdir) -I$(JCLS) -Ibindings/cxx/include -outdir $(JCLS) -o $@ $<
$(AM_V_GEN)$(JAVAC) -sourcepath $(JDIR) -d $(JDIR) $(JSRC)
$(AM_V_at)jar cf $(JJAR) -C $(JDIR) $(JPKG)
-$(JLIB): $(JCXX) bindings/cxx/libsigrokxx.la $(library_include_HEADERS)
- $(AM_V_GEN)$(CXX) $(CXXFLAGS) -L.libs -Lbindings/cxx/.libs \
+$(JLIB): $(JCXX) bindings/cxx/libsigrokcxx.la $(library_include_HEADERS)
+ $(AM_V_GEN)$(CXXCOMPILE) -L.libs -Lbindings/cxx/.libs \
-fno-strict-aliasing -fPIC -shared $(JCLS)/classes_wrap.cxx \
- -lsigrokxx -o $(JLIB)
+ -lsigrokcxx -o $(JLIB)
java-install:
$(INSTALL) -d $(libdir)/jni
$(INSTALL) $(JJAR) -t $(datadir)/java
java-clean:
- rm -f $(JCXX)
- rm -f $(JCLS)/*.java
- rm -f $(JCLS)/*.class
- rm -f $(JINT)/*.class
- rm -f $(JJAR)
- rm -f $(JLIB)
- rm -rf $(JDIR)/doxy/
+ $(AM_V_at)rm -f $(JCXX)
+ $(AM_V_at)rm -f $(JCLS)/*.java
+ $(AM_V_at)rm -f $(JCLS)/*.class
+ $(AM_V_at)rm -f $(JINT)/*.class
+ $(AM_V_at)rm -f $(JJAR)
+ $(AM_V_at)rm -f $(JLIB)
+ $(AM_V_at)rm -rf $(JDIR)/doxy/
java-doc:
$(AM_V_at)cd $(srcdir)/$(JDIR) && BUILDDIR=$(abs_builddir)/$(JDIR)/ doxygen Doxyfile 2>/dev/null