Add support for pkg-config
authorMarcel Holtmann <marcel@holtmann.org>
Sun, 2 Mar 2008 10:34:25 +0000 (11:34 +0100)
committerMarcel Holtmann <marcel@holtmann.org>
Sun, 2 Mar 2008 10:34:25 +0000 (11:34 +0100)
.gitignore
Makefile.am
configure.in
connman.pc.in [new file with mode: 0644]

index 06c1058..4fb1449 100644 (file)
@@ -21,6 +21,7 @@ missing
 stamp-h1
 autom4te.cache
 
+connman.pc
 include/connman
 src/connmand
 src/connman.service
index 35d8c88..071be42 100644 (file)
@@ -1,6 +1,12 @@
 
 SUBDIRS = include src doc test plugins scripts
 
+pkgconfigdir = $(libdir)/pkgconfig
+
+noinst_DATA = connman.pc
+
+DISTCLEANFILES = $(noinst_DATA)
+
 MAINTAINERCLEANFILES = Makefile.in \
        aclocal.m4 configure config.h.in config.sub config.guess \
        ltmain.sh depcomp missing install-sh mkinstalldirs
index 119ac71..81144ec 100644 (file)
@@ -61,6 +61,6 @@ PKG_CHECK_MODULES(HAL, hal >= 0.5.8, dummy=yes,
 AC_SUBST(HAL_CFLAGS)
 AC_SUBST(HAL_LIBS)
 
-AC_OUTPUT(Makefile include/Makefile src/Makefile doc/Makefile test/Makefile
-                                       plugins/Makefile scripts/Makefile
-                                       scripts/connman src/connman.service)
+AC_OUTPUT(Makefile include/Makefile src/Makefile doc/Makefile
+                       test/Makefile plugins/Makefile scripts/Makefile
+                       scripts/connman src/connman.service connman.pc)
diff --git a/connman.pc.in b/connman.pc.in
new file mode 100644 (file)
index 0000000..96f1abc
--- /dev/null
@@ -0,0 +1,10 @@
+prefix=@prefix@
+exec_prefix=@exec_prefix@
+libdir=@libdir@
+includedir=@includedir@
+Name: connman
+Description: Connection Manager
+Version: @VERSION@
+Libs: -module -avoid-version -export-symbols-regex connman_plugin_desc
+Cflags: -I${includedir}