b6bc271986c525748b9c13a028754e945b3fab1b
[amitay/samba.git] / source4 / lib / talloc / Makefile.in
1 #OPT = -g -ftest-coverage -fprofile-arcs 
2 #LIBS = -lgcov
3 OPT = -O
4 prefix = @prefix@
5 exec_prefix = @exec_prefix@
6 includedir = @includedir@
7 libdir = @libdir@
8 mandir = @mandir@
9 XSLTPROC = @XSLTPROC@
10 INSTALLCMD=@INSTALL@
11
12 CFLAGS = $(OPT) -Wall
13
14 LIBOBJ = talloc.o
15
16 all: libtalloc.a testsuite 
17
18 testsuite: $(LIBOBJ) testsuite.o
19         $(CC) $(CFLAGS) -o testsuite testsuite.o $(LIBOBJ) $(LIBS)
20
21 libtalloc.a: libtalloc.a($(LIBOBJ))
22
23 install: all doc
24         ${INSTALLCMD} -d ${libdir}
25         ${INSTALLCMD} -m 755 libtalloc.a $(libdir)
26         ${INSTALLCMD} -d ${includedir}
27         ${INSTALLCMD} -m 644 talloc.h $(includedir)
28         ${INSTALLCMD} -m 644 talloc.pc $(libdir)/pkgconfig
29         ${INSTALLCMD} -d ${mandir}/man3
30         ${INSTALLCMD} -m 644 talloc.3 $(mandir)/man3
31
32 doc: talloc.3
33
34 %.3: %.3.xml
35         $(XSLTPROC) -o $@ http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl $<
36
37 %.html: %.xml
38         $(XSLTPROC) -o $@ http://docbook.sourceforge.net/release/xsl/current/html/docbook.xsl $<
39
40 clean:
41         rm -f *~ *.o testsuite *.gc??
42
43 test: testsuite
44         ./testsuite
45
46 gcov:
47         gcov talloc.c