summaryrefslogtreecommitdiff
path: root/source4/lib/talloc/Makefile.in
blob: b6bc271986c525748b9c13a028754e945b3fab1b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
#OPT = -g -ftest-coverage -fprofile-arcs 
#LIBS = -lgcov
OPT = -O
prefix = @prefix@
exec_prefix = @exec_prefix@
includedir = @includedir@
libdir = @libdir@
mandir = @mandir@
XSLTPROC = @XSLTPROC@
INSTALLCMD=@INSTALL@

CFLAGS = $(OPT) -Wall

LIBOBJ = talloc.o

all: libtalloc.a testsuite 

testsuite: $(LIBOBJ) testsuite.o
	$(CC) $(CFLAGS) -o testsuite testsuite.o $(LIBOBJ) $(LIBS)

libtalloc.a: libtalloc.a($(LIBOBJ))

install: all doc
	${INSTALLCMD} -d ${libdir}
	${INSTALLCMD} -m 755 libtalloc.a $(libdir)
	${INSTALLCMD} -d ${includedir}
	${INSTALLCMD} -m 644 talloc.h $(includedir)
	${INSTALLCMD} -m 644 talloc.pc $(libdir)/pkgconfig
	${INSTALLCMD} -d ${mandir}/man3
	${INSTALLCMD} -m 644 talloc.3 $(mandir)/man3

doc: talloc.3

%.3: %.3.xml
	$(XSLTPROC) -o $@ http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl $<

%.html: %.xml
	$(XSLTPROC) -o $@ http://docbook.sourceforge.net/release/xsl/current/html/docbook.xsl $<

clean:
	rm -f *~ *.o testsuite *.gc??

test: testsuite
	./testsuite

gcov:
	gcov talloc.c