2 datarootdir = @datarootdir@
3 exec_prefix = @exec_prefix@
4 includedir = @includedir@
11 INSTALLCMD = @INSTALL@
13 CFLAGS = @CFLAGS@ -DHAVE_CONFIG_H= -I$(srcdir) -I.
14 EXTRA_TARGETS = @DOC_TARGET@
16 .SUFFIXES: .c .o .3 .3.xml .xml .html
20 all: libtalloc.a testsuite $(EXTRA_TARGETS)
22 testsuite: $(LIBOBJ) testsuite.o
23 $(CC) $(CFLAGS) -o testsuite testsuite.o $(LIBOBJ) $(LIBS)
25 libtalloc.a: libtalloc.a($(LIBOBJ))
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
39 test -z "$(XSLTPROC)" || $(XSLTPROC) -o $@ http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl $<
42 test -z "$(XSLTPROC)" || $(XSLTPROC) -o $@ http://docbook.sourceforge.net/release/xsl/current/html/docbook.xsl $<
45 rm -f *~ *.o testsuite *.gc??