[GLUE] Rsync SAMBA_3_0 SVN r25598 in order to create the v3-0-test branch.
[Samba.git] / source / lib / talloc / Makefile.in
blob14e81156921071d0d6fb9517244069bc8b664460
1 #!gmake
3 prefix = @prefix@
4 datarootdir = @datarootdir@
5 exec_prefix = @exec_prefix@
6 includedir = @includedir@
7 libdir = @libdir@
8 mandir = @mandir@
9 VPATH = @srcdir@:@libreplacedir@
10 srcdir = @srcdir@
11 builddir = @builddir@
12 XSLTPROC = @XSLTPROC@
13 INSTALLCMD = @INSTALL@
14 CC = @CC@
15 CFLAGS = @CFLAGS@ -DHAVE_CONFIG_H= -I. -I@srcdir@ -I@libreplacedir@
16 EXTRA_TARGETS = @DOC_TARGET@
18 .SUFFIXES: .c .o .3 .3.xml .xml .html
20 LIBOBJ = @TALLOCOBJ@ @LIBREPLACEOBJ@
22 all: showflags libtalloc.a testsuite $(EXTRA_TARGETS)
24 showflags:
25 @echo 'talloc will be compiled with flags:'
26 @echo ' CFLAGS = $(CFLAGS)'
27 @echo ' LIBS = $(LIBS)'
29 testsuite: $(LIBOBJ) testsuite.o
30 $(CC) $(CFLAGS) -o testsuite testsuite.o $(LIBOBJ) $(LIBS)
32 libtalloc.a: $(LIBOBJ)
33 ar -rv $@ $(LIBOBJ)
34 @-ranlib $@
36 install: all
37 ${INSTALLCMD} -d ${libdir}
38 ${INSTALLCMD} -m 755 libtalloc.a $(libdir)
39 ${INSTALLCMD} -d ${includedir}
40 ${INSTALLCMD} -m 644 $(srcdir)/talloc.h $(includedir)
41 ${INSTALLCMD} -m 644 talloc.pc $(libdir)/pkgconfig
42 if [ -f talloc.3 ];then ${INSTALLCMD} -d ${mandir}/man3; fi
43 if [ -f talloc.3 ];then ${INSTALLCMD} -m 644 talloc.3 $(mandir)/man3; fi
45 doc: talloc.3 talloc.3.html
47 .3.xml.3:
48 -test -z "$(XSLTPROC)" || $(XSLTPROC) --nonet -o $@ http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl $<
50 .xml.html:
51 -test -z "$(XSLTPROC)" || $(XSLTPROC) --nonet -o $@ http://docbook.sourceforge.net/release/xsl/current/html/docbook.xsl $<
53 clean:
54 rm -f *~ $(LIBOBJ) libtalloc.a testsuite testsuite.o *.gc?? talloc.3 talloc.3.html
56 test: testsuite
57 ./testsuite
59 gcov:
60 gcov talloc.c
62 installcheck:
63 $(MAKE) test
65 distclean: clean
66 rm -f *~ */*~
67 rm -f Makefile
68 rm -f config.log config.status config.h config.cache
70 realdistclean: distclean
71 rm -f configure config.h.in