summaryrefslogtreecommitdiff
path: root/source3/Makefile-smbtorture4
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2011-03-15 11:32:03 +0100
committerGünther Deschner <gd@samba.org>2011-03-15 16:10:16 +0100
commitc91b897caa11c9400851e16d3091d89b79b87614 (patch)
treec92029df073e454506e8b50b64180fcbd0d7d624 /source3/Makefile-smbtorture4
parenta6a722b5bac1c0732acdd13e27d9be2e6aea73a1 (diff)
downloadsamba-c91b897caa11c9400851e16d3091d89b79b87614.tar.gz
samba-c91b897caa11c9400851e16d3091d89b79b87614.tar.bz2
samba-c91b897caa11c9400851e16d3091d89b79b87614.zip
s3-build: share smbtorture4 build rules with s3-waf build.
Guenther Autobuild-User: Günther Deschner <gd@samba.org> Autobuild-Date: Tue Mar 15 16:10:17 CET 2011 on sn-devel-104
Diffstat (limited to 'source3/Makefile-smbtorture4')
-rw-r--r--source3/Makefile-smbtorture423
1 files changed, 23 insertions, 0 deletions
diff --git a/source3/Makefile-smbtorture4 b/source3/Makefile-smbtorture4
new file mode 100644
index 0000000000..939d4d413c
--- /dev/null
+++ b/source3/Makefile-smbtorture4
@@ -0,0 +1,23 @@
+WAF_BINARY=buildtools/bin/waf
+WAF=$(WAF_BINARY)
+WAF_BUILD=WAF_MAKE=1 $(WAF_BINARY)
+SAMBA4_BINARIES="smbtorture,ndrdump"
+
+samba4-configure:
+ @(cd .. && \
+ CFLAGS='' $(WAF) reconfigure || \
+ CFLAGS='' $(WAF) configure --enable-developer --nonshared-binary=$(SAMBA4_BINARIES) --enable-auto-reconfigure )
+
+.PHONY: samba4-configure
+
+bin/smbtorture4: $(BINARY_PREREQS) samba4-configure
+ cd .. && $(WAF_BUILD) --targets=smbtorture
+ cp ../bin/smbtorture bin/smbtorture4
+
+.PHONY: bin/smbtorture4
+
+bin/ndrdump4: $(BINARY_PREREQS) samba4-configure
+ cd .. && $(WAF_BUILD) --targets=ndrdump
+ cp ../bin/ndrdump bin/ndrdump4
+
+.PHONY: bin/ndrdump4