summaryrefslogtreecommitdiff
path: root/source4/lib/talloc/rules.mk
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2008-02-11 22:05:52 +0100
committerJelmer Vernooij <jelmer@samba.org>2008-02-11 22:05:52 +0100
commit94decfc49fa58d756558c09c79482aa459db00b3 (patch)
treee27fd2ed459efaa389fb8fde6936779134bd9f96 /source4/lib/talloc/rules.mk
parent25641ec13d876924e90a6aaaa2aa2de2fedbd552 (diff)
downloadsamba-94decfc49fa58d756558c09c79482aa459db00b3.tar.gz
samba-94decfc49fa58d756558c09c79482aa459db00b3.tar.bz2
samba-94decfc49fa58d756558c09c79482aa459db00b3.zip
Split rules.mk out of Makefile.
(This used to be commit 75ffc2c50d70e6f4108c3e6843c8d2bb212f6d9e)
Diffstat (limited to 'source4/lib/talloc/rules.mk')
-rw-r--r--source4/lib/talloc/rules.mk18
1 files changed, 18 insertions, 0 deletions
diff --git a/source4/lib/talloc/rules.mk b/source4/lib/talloc/rules.mk
new file mode 100644
index 0000000000..6cee126529
--- /dev/null
+++ b/source4/lib/talloc/rules.mk
@@ -0,0 +1,18 @@
+.SUFFIXES: .c .o .3 .3.xml .xml .html
+
+showflags::
+ @echo 'talloc will be compiled with flags:'
+ @echo ' CFLAGS = $(CFLAGS)'
+ @echo ' LIBS = $(LIBS)'
+
+.c.o:
+ $(CC) $(PICFLAG) -o $@ -c $< $(CFLAGS)
+
+.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 $<
+
+distclean::
+ rm -f *~ */*~