source: trunk-3.0/source/lib/talloc/Makefile.in@ 102

Last change on this file since 102 was 1, checked in by Paul Smedley, 18 years ago

Initial code import

File size: 1.7 KB
Line 
1#!gmake
2#
3prefix = @prefix@
4datarootdir = @datarootdir@
5exec_prefix = @exec_prefix@
6includedir = @includedir@
7libdir = @libdir@
8mandir = @mandir@
9VPATH = @srcdir@:@libreplacedir@
10srcdir = @srcdir@
11builddir = @builddir@
12XSLTPROC = @XSLTPROC@
13INSTALLCMD = @INSTALL@
14CC = @CC@
15CFLAGS = @CFLAGS@ -DHAVE_CONFIG_H= -I. -I@srcdir@ -I@libreplacedir@
16EXTRA_TARGETS = @DOC_TARGET@
17
18.SUFFIXES: .c .o .3 .3.xml .xml .html
19
20LIBOBJ = @TALLOCOBJ@ @LIBREPLACEOBJ@
21
22all: showflags libtalloc.a testsuite $(EXTRA_TARGETS)
23
24showflags:
25 @echo 'talloc will be compiled with flags:'
26 @echo ' CFLAGS = $(CFLAGS)'
27 @echo ' LIBS = $(LIBS)'
28
29testsuite: $(LIBOBJ) testsuite.o
30 $(CC) $(CFLAGS) -o testsuite testsuite.o $(LIBOBJ) $(LIBS)
31
32libtalloc.a: $(LIBOBJ)
33 ar -rv $@ $(LIBOBJ)
34 @-ranlib $@
35
36install: all
37 ${INSTALLCMD} -d ${libdir}
38 ${INSTALLCMD} -m 755 libtalloc.a $(libdir)
39 ${INSTALLCMD} -d ${includedir}
40 ${INSTALLCMD} -m 644 $(srcdir)/talloc.h $(includedir)
41 ${INSTALLCMD} -m 644 talloc.pc $(libdir)/pkgconfig
42 if [ -f talloc.3 ];then ${INSTALLCMD} -d ${mandir}/man3; fi
43 if [ -f talloc.3 ];then ${INSTALLCMD} -m 644 talloc.3 $(mandir)/man3; fi
44
45doc: talloc.3 talloc.3.html
46
47.3.xml.3:
48 -test -z "$(XSLTPROC)" || $(XSLTPROC) --nonet -o $@ http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl $<
49
50.xml.html:
51 -test -z "$(XSLTPROC)" || $(XSLTPROC) --nonet -o $@ http://docbook.sourceforge.net/release/xsl/current/html/docbook.xsl $<
52
53clean:
54 rm -f *~ $(LIBOBJ) libtalloc.a testsuite testsuite.o *.gc?? talloc.3 talloc.3.html
55
56test: testsuite
57 ./testsuite
58
59gcov:
60 gcov talloc.c
61
62installcheck:
63 $(MAKE) test
64
65distclean: clean
66 rm -f *~ */*~
67 rm -f Makefile
68 rm -f config.log config.status config.h config.cache
69
70realdistclean: distclean
71 rm -f configure config.h.in
Note: See TracBrowser for help on using the repository browser.