summaryrefslogtreecommitdiff
path: root/source3/Makefile-smbtorture
diff options
context:
space:
mode:
Diffstat (limited to 'source3/Makefile-smbtorture')
-rw-r--r--source3/Makefile-smbtorture24
1 files changed, 24 insertions, 0 deletions
diff --git a/source3/Makefile-smbtorture b/source3/Makefile-smbtorture
new file mode 100644
index 0000000000..4b5b143cfe
--- /dev/null
+++ b/source3/Makefile-smbtorture
@@ -0,0 +1,24 @@
+WAF_BINARY=buildtools/bin/waf
+WAF=$(WAF_BINARY)
+WAF_BUILD=WAF_MAKE=1 $(WAF_BINARY)
+SAMBA4_BINARIES="smbtorture"
+
+samba4-configure:
+ @(cd .. && \
+ CFLAGS='' $(WAF) reconfigure || \
+ CFLAGS='' $(WAF) configure --enable-selftest --nonshared-binary=$(SAMBA4_BINARIES) --enable-auto-reconfigure --enable-debug)
+
+.PHONY: samba4-configure
+
+bin/smbtorture: $(BINARY_PREREQS) samba4-configure samba4-config-compare
+ cd .. && $(WAF_BUILD) --targets=smbtorture
+ cp ../bin/smbtorture bin/smbtorture
+
+.PHONY: bin/smbtorture
+
+samba4-config-compare: samba4-configure
+ @echo "Comparing config.h from autoconf and waf"
+ @echo "Configure results missing from WAF are:"
+ ../buildtools/compare_config_h3.sh include/autoconf/config.h ../bin/default/include/config.h
+ @echo "Configure results additionaly found by WAF are:"
+ DIFF="comm -13" ../buildtools/compare_config_h3.sh include/autoconf/config.h ../bin/default/include/config.h