summaryrefslogtreecommitdiff
path: root/source4/lib/talloc/Makefile.in
blob: a4b34fbf92417f326383fd851f823c614b7cd91b (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
48
49
50
51
52
53
54
55
56
#!gmake
#
prefix = @prefix@
datarootdir = @datarootdir@
exec_prefix = @exec_prefix@
includedir = @includedir@
libdir = @libdir@
mandir = @mandir@
VPATH = @srcdir@
srcdir = @srcdir@
builddir = @builddir@
XSLTPROC = @XSLTPROC@
INSTALLCMD = @INSTALL@
CC = @CC@
CFLAGS = @CFLAGS@ -DHAVE_CONFIG_H= -I$(srcdir) -I.
EXTRA_TARGETS = @DOC_TARGET@

.SUFFIXES: .c .o .3 .3.xml .xml .html

LIBOBJ = talloc.o

all: libtalloc.a testsuite $(EXTRA_TARGETS)

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

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

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

doc: talloc.3 talloc.3.html

.3.xml.3:
	-test -z "$(XSLTPROC)" || $(XSLTPROC) --nonet -o $@ http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl $<

.xml.html:
	-test -z "$(XSLTPROC)" || $(XSLTPROC) --nonet -o $@ http://docbook.sourceforge.net/release/xsl/current/html/docbook.xsl $<

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

test: testsuite
	./testsuite

gcov:
	gcov talloc.c

installcheck: 
	$(MAKE) test