r17683: to pick up config.h we need -I. as well for talloc
[samba.git] / source / lib / talloc / Makefile.in
1 prefix = @prefix@
2 datarootdir = @datarootdir@
3 exec_prefix = @exec_prefix@
4 includedir = @includedir@
5 libdir = @libdir@
6 mandir = @mandir@
7 VPATH = @srcdir@
8 srcdir = @srcdir@
9 builddir = @builddir@
10 XSLTPROC = @XSLTPROC@
11 INSTALLCMD = @INSTALL@
12 CC = @CC@
13 CFLAGS = @CFLAGS@ -DHAVE_CONFIG_H= -I$(srcdir) -I.
14 EXTRA_TARGETS = @DOC_TARGET@
15
16 .SUFFIXES: .c .o .3 .3.xml .xml .html
17
18 LIBOBJ = talloc.o
19
20 all: libtalloc.a testsuite $(EXTRA_TARGETS)
21
22 testsuite: $(LIBOBJ) testsuite.o
23         $(CC) $(CFLAGS) -o testsuite testsuite.o $(LIBOBJ) $(LIBS)
24
25 libtalloc.a: libtalloc.a($(LIBOBJ))
26
27 install: all 
28         ${INSTALLCMD} -d ${libdir}
29         ${INSTALLCMD} -m 755 libtalloc.a $(libdir)
30         ${INSTALLCMD} -d ${includedir}
31         ${INSTALLCMD} -m 644 $(srcdir)/talloc.h $(includedir)
32         ${INSTALLCMD} -m 644 $(srcdir)/talloc.pc $(libdir)/pkgconfig
33         ${INSTALLCMD} -d ${mandir}/man3
34         test -z "$(XSLTPROC)" || ${INSTALLCMD} -m 644 talloc.3 $(mandir)/man3
35
36 doc: talloc.3
37
38 .3.xml.3:
39         test -z "$(XSLTPROC)" || $(XSLTPROC) -o $@ http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl $<
40
41 .xml.html:
42         test -z "$(XSLTPROC)" || $(XSLTPROC) -o $@ http://docbook.sourceforge.net/release/xsl/current/html/docbook.xsl $<
43
44 clean:
45         rm -f *~ *.o testsuite *.gc??
46
47 test: testsuite
48         ./testsuite
49
50 gcov:
51         gcov talloc.c
52
53 installcheck: 
54         $(MAKE) test