r6478: Add 'make install' and a pkg-config file
authorJelmer Vernooij <jelmer@samba.org>
Tue, 26 Apr 2005 03:59:59 +0000 (03:59 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 18:16:18 +0000 (13:16 -0500)
source/lib/talloc/Makefile.in
source/lib/talloc/configure.in
source/lib/talloc/talloc.pc.in [new file with mode: 0644]

index ff4fc7f561edd5109ecd1aa6f5ff98e1de4da01d..a3dd3f3e0b059254e14d23c8245f8e9bc905e69c 100644 (file)
@@ -1,6 +1,10 @@
 #OPT = -g -ftest-coverage -fprofile-arcs 
 #LIBS = -lgcov
 OPT = -O
+prefix = @prefix@
+exec_prefix = @exec_prefix@
+includedir = @includedir@
+libdir = @libdir@
 
 CFLAGS = $(OPT) -Wall
 
@@ -13,6 +17,11 @@ testsuite: $(LIBOBJ) testsuite.o
 
 libtalloc.a: libtalloc.a($(LIBOBJ))
 
+install:
+       cp libtalloc.a $(libdir)
+       cp talloc.h $(includedir)
+       cp talloc.pc $(libdir)/pkgconfig
+
 clean:
        rm -f *~ *.o testsuite *.gc??
 
index 5c3020011819bf7c9a7bb86e541c8be3b2e0d81f..0ebbde9fcf1134230633a8ba4722387a5902348f 100644 (file)
@@ -4,4 +4,4 @@ AC_INIT(talloc.h)
 AC_PROG_CC
 AC_PATH_PROG(GCOV,gcov)
 sinclude(config.m4)
-AC_OUTPUT(Makefile)
+AC_OUTPUT(Makefile talloc.pc)
diff --git a/source/lib/talloc/talloc.pc.in b/source/lib/talloc/talloc.pc.in
new file mode 100644 (file)
index 0000000..7f9ef75
--- /dev/null
@@ -0,0 +1,10 @@
+prefix=@prefix@
+exec_prefix=@exec_prefix@
+libdir=@libdir@
+includedir=@includedir@
+
+Name: talloc 
+Description: A hierarchical pool based memory system with destructors
+Version: 4.0
+Libs: @LIBS@ -L${libdir} -ltalloc
+Cflags: -I${includedir} @CFLAGS@