summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile.am3
-rw-r--r--libsigrokdecode.pc.in13
2 files changed, 16 insertions, 0 deletions
diff --git a/Makefile.am b/Makefile.am
index 6aac2c1..e47170c 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -29,3 +29,6 @@ libsigrokdecode_la_LDFLAGS = $(LDFLAGS_PYTHON)
include_HEADERS = sigrokdecode.h
+pkgconfigdir = $(libdir)/pkgconfig
+pkgconfig_DATA = libsigrokdecode.pc
+
diff --git a/libsigrokdecode.pc.in b/libsigrokdecode.pc.in
new file mode 100644
index 0000000..2fecec6
--- /dev/null
+++ b/libsigrokdecode.pc.in
@@ -0,0 +1,13 @@
+prefix=@prefix@
+exec_prefix=@exec_prefix@
+libdir=@libdir@
+includedir=@includedir@
+
+Name: libsigrokdecode
+Description: Protocol decoder library of the sigrok logic analyzer software
+URL: http://www.sigrok.org
+Requires:
+Version: @VERSION@
+Libs: -L${libdir} -lsigrokdecode
+Cflags: -I${includedir}
+