summaryrefslogtreecommitdiff
path: root/source4/lib/ldb
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2005-04-26 10:58:54 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:16:19 -0500
commit5d794389a02d2cf9060ce3ef861366bafb9fdf66 (patch)
tree3eb22c52d144864597a0836746bc1d77e0990ff7 /source4/lib/ldb
parentd4bcee3d27974e48e94bae9d3908722596df3a62 (diff)
downloadsamba-5d794389a02d2cf9060ce3ef861366bafb9fdf66.tar.gz
samba-5d794389a02d2cf9060ce3ef861366bafb9fdf66.tar.bz2
samba-5d794389a02d2cf9060ce3ef861366bafb9fdf66.zip
r6486: Add 'make install' and pkg-config file.
(This used to be commit e3be094fb7b0c0fec50abcb4b242414e84a9a32d)
Diffstat (limited to 'source4/lib/ldb')
-rw-r--r--source4/lib/ldb/Makefile.in11
-rw-r--r--source4/lib/ldb/configure.in2
-rw-r--r--source4/lib/ldb/ldb.pc.in10
3 files changed, 22 insertions, 1 deletions
diff --git a/source4/lib/ldb/Makefile.in b/source4/lib/ldb/Makefile.in
index 88824f031d..8b5e66fd75 100644
--- a/source4/lib/ldb/Makefile.in
+++ b/source4/lib/ldb/Makefile.in
@@ -1,6 +1,11 @@
CC = @CC@
GCOV = @GCOV@
YODL2MAN = @YODL2MAN@
+prefix = @prefix@
+exec_prefix = @exec_prefix@
+includedir = @includedir@
+libdir = @libdir@
+bindir = @bindir@
ifeq ($(WITH_LDAP),1)
OPENLDAP_PREFIX=/usr
@@ -107,6 +112,12 @@ test-schema:
test: test-tdb test-ldap test-schema
+install: all
+ cp include/ldb.h $(includedir)
+ cp $(LDB_LIB) $(libdir)
+ cp $(BINS) $(bindir)
+ cp ldb.pc $(libdir)/pkgconfig
+
gcov:
$(GCOV) -po ldb_ldap ldb_ldap/*.c 2| tee ldb_ldap.report.gcov
$(GCOV) -po ldb_tdb ldb_tdb/*.c 2| tee ldb_tdb.report.gcov
diff --git a/source4/lib/ldb/configure.in b/source4/lib/ldb/configure.in
index 9de28cbe26..74b25577b9 100644
--- a/source4/lib/ldb/configure.in
+++ b/source4/lib/ldb/configure.in
@@ -7,4 +7,4 @@ AC_PATH_PROG(YODL2MAN,yodl2man)
AC_PATH_PROG(GCOV,gcov)
sinclude(ldap.m4)
sinclude(config.m4)
-AC_OUTPUT(Makefile)
+AC_OUTPUT(Makefile ldb.pc)
diff --git a/source4/lib/ldb/ldb.pc.in b/source4/lib/ldb/ldb.pc.in
new file mode 100644
index 0000000000..e524fbed36
--- /dev/null
+++ b/source4/lib/ldb/ldb.pc.in
@@ -0,0 +1,10 @@
+prefix=@prefix@
+exec_prefix=@exec_prefix@
+libdir=@libdir@
+includedir=@includedir@
+
+Name: ldb
+Description: An LDAP-like embedded database
+Version: 4.0
+Libs: @LIBS@ -L${libdir} -lldb
+Cflags: -I${includedir} @CFLAGS@