summaryrefslogtreecommitdiff
path: root/talloc/rules.mk
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2008-09-16 14:36:41 +0200
committerJelmer Vernooij <jelmer@samba.org>2008-09-16 14:36:41 +0200
commit80a5da73e9a9ed148314be3fa071181c82fc7c64 (patch)
treec561200c7b7ff8e9bf6e44be0ad9f093789a3b72 /talloc/rules.mk
parentec1c854f2175823bd1ad39c2e272d1b3fab80bf1 (diff)
downloadsamba-80a5da73e9a9ed148314be3fa071181c82fc7c64.tar.gz
samba-80a5da73e9a9ed148314be3fa071181c82fc7c64.tar.bz2
samba-80a5da73e9a9ed148314be3fa071181c82fc7c64.zip
Share talloc source code between Samba 3 and Samba 4.
Diffstat (limited to 'talloc/rules.mk')
-rw-r--r--talloc/rules.mk18
1 files changed, 18 insertions, 0 deletions
diff --git a/talloc/rules.mk b/talloc/rules.mk
new file mode 100644
index 0000000000..6cee126529
--- /dev/null
+++ b/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 *~ */*~