]> sigrok.org Git - libsigrok.git/blobdiff - Makefile.am
Add per-LA --enable-XXXX configure options.
[libsigrok.git] / Makefile.am
index 193cccf2d71497ef02dfba8bc219f0500d831044..060b2cabc0d06bf0c8b54c422751cdcca5b5529c 100644 (file)
@@ -30,16 +30,17 @@ libsigrok_la_SOURCES = \
        hwplugin.c \
        filter.c \
        hardware/common/ezusb.c \
+       hardware/common/misc.c \
        hardware/common/serial.c \
        hardware/openbench-logic-sniffer/ols.c \
        hardware/saleae-logic/saleae-logic.c \
-       hardware/asix-sigma/asix-sigma.c \
-       hardware/asix-sigma/asix-sigma.h \
        hardware/zeroplus-logic-cube/analyzer.c \
        hardware/zeroplus-logic-cube/analyzer.h \
        hardware/zeroplus-logic-cube/gl_usb.c \
        hardware/zeroplus-logic-cube/gl_usb.h \
        hardware/zeroplus-logic-cube/zeroplus.c \
+       input/input_binary.c \
+       input/input.c \
        output/output_binary.c \
        output/output_text.c \
        output/output_vcd.c \
@@ -47,7 +48,20 @@ libsigrok_la_SOURCES = \
        output/common.c \
        output/output.c
 
+if LA_ASIX_SIGMA
+libsigrok_la_SOURCES += \
+       hardware/asix-sigma/asix-sigma.c \
+       hardware/asix-sigma/asix-sigma.h
+else
+EXTRA_DIST = \
+       hardware/asix-sigma/asix-sigma.c \
+       hardware/asix-sigma/asix-sigma.h
+endif
+
 libsigrok_la_LIBADD = $(LIBOBJS)
 
 include_HEADERS = sigrok.h
 
+pkgconfigdir = $(libdir)/pkgconfig
+pkgconfig_DATA = libsigrok.pc
+