4 datarootdir = @datarootdir@
5 exec_prefix = @exec_prefix@
6 includedir = @includedir@
13 INSTALLCMD = @INSTALL@
15 CFLAGS = @CFLAGS@ -DHAVE_CONFIG_H= -I. -I@srcdir@
16 EXTRA_TARGETS = @DOC_TARGET@
18 .SUFFIXES: .c .o .3 .3.xml .xml .html
22 all: showflags libtalloc.a testsuite $(EXTRA_TARGETS)
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)
37 ${INSTALLCMD} -d $(DESTDIR)$(libdir)
38 ${INSTALLCMD} -d $(DESTDIR)$(libdir)/pkgconfig
39 ${INSTALLCMD} -m 755 libtalloc.a $(DESTDIR)$(libdir)
40 ${INSTALLCMD} -d $(DESTDIR)${includedir}
41 ${INSTALLCMD} -m 644 $(srcdir)/talloc.h $(DESTDIR)$(includedir)
42 ${INSTALLCMD} -m 644 talloc.pc $(DESTDIR)$(libdir)/pkgconfig
43 if [ -f talloc.3 ];then ${INSTALLCMD} -d $(DESTDIR)$(mandir)/man3; fi
44 if [ -f talloc.3 ];then ${INSTALLCMD} -m 644 talloc.3 $(DESTDIR)$(mandir)/man3; fi
46 doc: talloc.3 talloc.3.html
49 -test -z "$(XSLTPROC)" || $(XSLTPROC) --nonet -o $@ http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl $<
52 -test -z "$(XSLTPROC)" || $(XSLTPROC) --nonet -o $@ http://docbook.sourceforge.net/release/xsl/current/html/docbook.xsl $<
55 rm -f *~ $(LIBOBJ) libtalloc.a testsuite testsuite.o *.gc?? talloc.3 talloc.3.html
69 rm -f config.log config.status config.h config.cache
71 realdistclean: distclean
72 rm -f configure config.h.in