r17886: add talloc_ptrtype() and talloc_array_ptrtype(),
[samba.git] / source / lib / talloc / Makefile.in
index b6bc271986c525748b9c13a028754e945b3fab1b..71953aa371b6a37b6567261dea72aab784eb88cf 100644 (file)
@@ -1,41 +1,45 @@
-#OPT = -g -ftest-coverage -fprofile-arcs 
-#LIBS = -lgcov
-OPT = -O
 prefix = @prefix@
+datarootdir = @datarootdir@
 exec_prefix = @exec_prefix@
 includedir = @includedir@
 libdir = @libdir@
 mandir = @mandir@
+VPATH = @srcdir@
+srcdir = @srcdir@
+builddir = @builddir@
 XSLTPROC = @XSLTPROC@
-INSTALLCMD=@INSTALL@
+INSTALLCMD = @INSTALL@
+CC = @CC@
+CFLAGS = @CFLAGS@ -DHAVE_CONFIG_H= -I$(srcdir) -I.
+EXTRA_TARGETS = @DOC_TARGET@
 
-CFLAGS = $(OPT) -Wall
+.SUFFIXES: .c .o .3 .3.xml .xml .html
 
 LIBOBJ = talloc.o
 
-all: libtalloc.a testsuite 
+all: libtalloc.a testsuite $(EXTRA_TARGETS)
 
 testsuite: $(LIBOBJ) testsuite.o
        $(CC) $(CFLAGS) -o testsuite testsuite.o $(LIBOBJ) $(LIBS)
 
 libtalloc.a: libtalloc.a($(LIBOBJ))
 
-install: all doc
+install: all 
        ${INSTALLCMD} -d ${libdir}
        ${INSTALLCMD} -m 755 libtalloc.a $(libdir)
        ${INSTALLCMD} -d ${includedir}
-       ${INSTALLCMD} -m 644 talloc.h $(includedir)
+       ${INSTALLCMD} -m 644 $(srcdir)/talloc.h $(includedir)
        ${INSTALLCMD} -m 644 talloc.pc $(libdir)/pkgconfig
        ${INSTALLCMD} -d ${mandir}/man3
-       ${INSTALLCMD} -m 644 talloc.3 $(mandir)/man3
+       test -z "$(XSLTPROC)" || ${INSTALLCMD} -m 644 talloc.3 $(mandir)/man3
 
 doc: talloc.3
 
-%.3: %.3.xml
-       $(XSLTPROC) -o $@ http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl $<
+.3.xml.3:
+       test -z "$(XSLTPROC)" || $(XSLTPROC) -o $@ http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl $<
 
-%.html: %.xml
-       $(XSLTPROC) -o $@ http://docbook.sourceforge.net/release/xsl/current/html/docbook.xsl $<
+.xml.html:
+       test -z "$(XSLTPROC)" || $(XSLTPROC) -o $@ http://docbook.sourceforge.net/release/xsl/current/html/docbook.xsl $<
 
 clean:
        rm -f *~ *.o testsuite *.gc??
@@ -45,3 +49,6 @@ test: testsuite
 
 gcov:
        gcov talloc.c
+
+installcheck: 
+       $(MAKE) test