summaryrefslogtreecommitdiff
path: root/buildtools/scripts
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2010-04-04 18:27:30 +1000
committerAndrew Tridgell <tridge@samba.org>2010-04-06 20:27:25 +1000
commit1e35da61455ac1e94b1f64f661e7052113de4dfc (patch)
tree7a689575a0de01aaeb8c669c9df5325d919c807a /buildtools/scripts
parentc8835f440a7e07f385f5759bae6b4e53c1927e82 (diff)
downloadsamba-1e35da61455ac1e94b1f64f661e7052113de4dfc.tar.gz
s4-waf: new autogen-waf.sh
this one will work with the tdb, talloc, etc directories
Diffstat (limited to 'buildtools/scripts')
-rw-r--r--buildtools/scripts/Makefile.waf48
-rwxr-xr-xbuildtools/scripts/configure.waf11
2 files changed, 59 insertions, 0 deletions
diff --git a/buildtools/scripts/Makefile.waf b/buildtools/scripts/Makefile.waf
new file mode 100644
index 00000000000..e17ae217df5
--- /dev/null
+++ b/buildtools/scripts/Makefile.waf
@@ -0,0 +1,48 @@
+# simple makefile wrapper to run waf
+
+# default to using only 1 cpu, to be friendly to build
+# farm machines. I wonder how we get at the -jN option
+# from make to pass it to waf?
+JOBS=1
+
+WAF=JOBS=$(JOBS) BUILDTOOLS/bin/waf
+
+all:
+ $(WAF) build
+
+install:
+ $(WAF) install
+
+uninstall:
+ $(WAF) uninstall
+
+test:
+ $(WAF) test
+
+quicktest:
+ $(WAF) test --quick
+
+clean:
+ $(WAF) clean
+
+distclean: clean
+ rm -rf bin
+
+# some compatibility make targets
+everything: all
+
+testsuite: all
+
+check: test
+
+torture: all
+
+# this should do an install as well, once install is finished
+installcheck: test
+
+etags:
+ $(WAF) etags
+
+ctags:
+ $(WAF) ctags
+
diff --git a/buildtools/scripts/configure.waf b/buildtools/scripts/configure.waf
new file mode 100755
index 00000000000..a6367e73141
--- /dev/null
+++ b/buildtools/scripts/configure.waf
@@ -0,0 +1,11 @@
+#!/bin/sh
+
+
+WAF=BUILDTOOLS/bin/waf
+
+# using JOBS=1 gives maximum compatibility with
+# systems like AIX which have broken threading in python
+JOBS=1
+export JOBS
+
+$WAF configure $*