X-Git-Url: https://sigrok.org/gitweb/?p=libsigrok.git;a=blobdiff_plain;f=Makefile.am;h=280cf64d29d915199a0b3092f9ffd5a96d5d3f7b;hp=dea187344335dce455dc128359c0c01c65b093af;hb=HEAD;hpb=15a6799987a5e35648aa6a0bd9e72aa6ff871620 diff --git a/Makefile.am b/Makefile.am index dea18734..62aca8ac 100644 --- a/Makefile.am +++ b/Makefile.am @@ -25,6 +25,8 @@ GNUMAKEFLAGS = --no-print-directory # distutils/setuptools cause trouble on distcheck. Disable for now. DISTCHECK_CONFIGURE_FLAGS = --disable-python +CLEAN_EXTRA = + FIRMWARE_DIR = $(datadir)/sigrok-firmware local_includes = -Iinclude -I$(srcdir)/include -I$(srcdir)/src -I. @RPC_CFLAGS@ @@ -69,7 +71,8 @@ libsigrok_la_SOURCES = \ src/version.c \ src/error.c \ src/std.c \ - src/sw_limits.c + src/sw_limits.c \ + src/tcp.c # Support code, shared among input and driver modules libsigrok_la_SOURCES += \ @@ -86,6 +89,7 @@ libsigrok_la_SOURCES += \ src/input/chronovu_la8.c \ src/input/csv.c \ src/input/logicport.c \ + src/input/protocoldata.c \ src/input/raw_analog.c \ src/input/saleae.c \ src/input/trace32_ad.c \ @@ -148,6 +152,7 @@ libsigrok_la_SOURCES += \ src/serial_hid_cp2110.c \ src/serial_hid_victor.c \ src/serial_libsp.c \ + src/serial_tcpraw.c \ src/scpi/scpi_serial.c else libsigrok_la_SOURCES += \ @@ -259,6 +264,12 @@ src_libdrivers_la_SOURCES += \ src/hardware/asix-sigma/protocol.c \ src/hardware/asix-sigma/api.c endif +if HW_ATORCH +src_libdrivers_la_SOURCES += \ + src/hardware/atorch/protocol.h \ + src/hardware/atorch/protocol.c \ + src/hardware/atorch/api.c +endif if HW_ATTEN_PPS3XXX src_libdrivers_la_SOURCES += \ src/hardware/atten-pps3xxx/protocol.h \ @@ -324,6 +335,12 @@ src_libdrivers_la_SOURCES += \ src/hardware/demo/protocol.c \ src/hardware/demo/api.c endif +if HW_DEVANTECH_ETH008 +src_libdrivers_la_SOURCES += \ + src/hardware/devantech-eth008/protocol.h \ + src/hardware/devantech-eth008/protocol.c \ + src/hardware/devantech-eth008/api.c +endif if HW_DREAMSOURCELAB_DSLOGIC src_libdrivers_la_SOURCES += \ src/hardware/dreamsourcelab-dslogic/protocol.h \ @@ -360,6 +377,12 @@ src_libdrivers_la_SOURCES += \ src/hardware/gmc-mh-1x-2x/protocol.c \ src/hardware/gmc-mh-1x-2x/api.c endif +if HW_GREATFET +src_libdrivers_la_SOURCES += \ + src/hardware/greatfet/protocol.h \ + src/hardware/greatfet/protocol.c \ + src/hardware/greatfet/api.c +endif if HW_GWINSTEK_GDS_800 src_libdrivers_la_SOURCES += \ src/hardware/gwinstek-gds-800/protocol.h \ @@ -450,6 +473,12 @@ src_libdrivers_la_SOURCES += \ src/hardware/itech-it8500/protocol.c \ src/hardware/itech-it8500/api.c endif +if HW_JUNTEK_JDS6600 +src_libdrivers_la_SOURCES += \ + src/hardware/juntek-jds6600/protocol.h \ + src/hardware/juntek-jds6600/protocol.c \ + src/hardware/juntek-jds6600/api.c +endif if HW_KECHENG_KC_330B src_libdrivers_la_SOURCES += \ src/hardware/kecheng-kc-330b/protocol.h \ @@ -558,6 +587,12 @@ src_libdrivers_la_SOURCES += \ src/hardware/pipistrello-ols/protocol.c \ src/hardware/pipistrello-ols/api.c endif +if HW_RASPBERRYPI_PICO +src_libdrivers_la_SOURCES += \ + src/hardware/raspberrypi-pico/protocol.h \ + src/hardware/raspberrypi-pico/protocol.c \ + src/hardware/raspberrypi-pico/api.c +endif if HW_RDTECH_DPS src_libdrivers_la_SOURCES += \ src/hardware/rdtech-dps/protocol.h \ @@ -725,6 +760,35 @@ nodist_library_include_HEADERS = \ include/libsigrok/version.h noinst_HEADERS = src/libsigrok-internal.h +$(builddir)/src/version.lo: $(builddir)/include/libsigrok/git-version.h + +# Create the git-version.h file even for non-versioned source trees, +# to reduce complexity in the library code. Re-create the header file +# when branches change, when revisions change, or upon re-configuration. +# Use the verbatim tagged version number when applicable, or append the +# "-git-[-dirty]" suffix for non-tagged source trees. +if VCS_IS_GIT + +$(builddir)/include/libsigrok/git-version.h: Makefile $(VERSION_GITVERSION_DEPS) + $(AM_V_GEN) \ + HASH=`git -C "$(srcdir)" describe --match "@VERSION_TAG_MATCH@" --always --dirty` && \ + HASH=`echo "$${HASH}" | sed 's/@VERSION_TAG_MATCH@-//'` && \ + SUFFIX=`git -C "$(srcdir)" describe --match "@VERSION_TAG_MATCH@" --exact-match > /dev/null 2> /dev/null || echo "-$${HASH}"` && \ + echo "#undef SR_PACKAGE_VERSION_STRING_SUFFIX" > $@ && \ + echo "#define SR_PACKAGE_VERSION_STRING_SUFFIX \"$${SUFFIX}\"" >> $@ + +else + +$(builddir)/include/libsigrok/git-version.h: + $(AM_V_GEN)echo '#define SR_PACKAGE_VERSION_STRING_SUFFIX ""' > $@ + +endif + +version-clean: + rm -f $(builddir)/include/libsigrok/git-version.h + +CLEAN_EXTRA += version-clean + pkgconfigdir = $(libdir)/pkgconfig pkgconfig_DATA = libsigrok.pc @@ -802,7 +866,6 @@ tests_main_LDADD = libsigrok.la $(SR_EXTRA_LIBS) $(TESTS_LIBS) BUILD_EXTRA = INSTALL_EXTRA = UNINSTALL_EXTRA = -CLEAN_EXTRA = libsigrok-uninstall: -rmdir $(DESTDIR)$(includedir)/libsigrok