summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlon Levy <alevy@redhat.com>2012-10-19 11:21:54 +0200
committerAndy Green <andy.green@linaro.org>2012-10-19 18:26:22 +0800
commit3147b027fdb76cbddd25fba3fc348daa69a3af59 (patch)
tree2f9f13188cd7a117241034774255e76df4f9fe2b
parent88f8d5754c2e49f003bf7cb7901275b82d96f239 (diff)
add pkg-config file libwebsockets.pc
Signed-off-by: Alon Levy <alevy@redhat.com>
-rw-r--r--Makefile.am4
-rw-r--r--configure.ac4
-rw-r--r--libwebsockets.pc.in11
3 files changed, 18 insertions, 1 deletions
diff --git a/Makefile.am b/Makefile.am
index 2191648..1d39074 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -2,3 +2,7 @@
SUBDIRS=lib test-server
EXTRA_DIST=scripts/kernel-doc
+
+pkgconfigdir = $(libdir)/pkgconfig
+pkgconfig_DATA = libwebsockets.pc
+
diff --git a/configure.ac b/configure.ac
index 9acd2d5..3fadff1 100644
--- a/configure.ac
+++ b/configure.ac
@@ -127,4 +127,6 @@ AC_CONFIG_FILES([Makefile
lib/Makefile
test-server/Makefile])
-AC_OUTPUT
+AC_OUTPUT([
+libwebsockets.pc
+])
diff --git a/libwebsockets.pc.in b/libwebsockets.pc.in
new file mode 100644
index 0000000..4fadd72
--- /dev/null
+++ b/libwebsockets.pc.in
@@ -0,0 +1,11 @@
+prefix=@prefix@
+exec_prefix=@exec_prefix@
+libdir=@libdir@
+includedir=@includedir@
+
+Name: libwebsockets
+Description: Websockets server and client library
+Version: @VERSION@
+
+Libs: -L${libdir} -lwebsockets
+Cflags: -I${includedir}