From 5d794389a02d2cf9060ce3ef861366bafb9fdf66 Mon Sep 17 00:00:00 2001 From: Jelmer Vernooij Date: Tue, 26 Apr 2005 10:58:54 +0000 Subject: r6486: Add 'make install' and pkg-config file. (This used to be commit e3be094fb7b0c0fec50abcb4b242414e84a9a32d) --- source4/lib/ldb/Makefile.in | 11 +++++++++++ source4/lib/ldb/configure.in | 2 +- source4/lib/ldb/ldb.pc.in | 10 ++++++++++ 3 files changed, 22 insertions(+), 1 deletion(-) create mode 100644 source4/lib/ldb/ldb.pc.in (limited to 'source4') 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@ -- cgit