summaryrefslogtreecommitdiff
path: root/contrib/dmake
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/dmake')
-rw-r--r--contrib/dmake16
1 files changed, 16 insertions, 0 deletions
diff --git a/contrib/dmake b/contrib/dmake
new file mode 100644
index 0000000..8e0ac85
--- /dev/null
+++ b/contrib/dmake
@@ -0,0 +1,16 @@
+#! /bin/sh
+
+# Example script contributed by Luke Gorrie
+
+# "Drop-in" front end to 'make' that uses the distributed compile farm
+# via `distcc'
+
+# Compile farm hosts are stored in ~bluetail/distcc-hosts. We exclude
+# the local machine to free up resources for preprocessing and
+# linking, since it seems to be the bottleneck (at least on
+# kookaburra).
+
+DISTCC_HOSTS=$(sed s/$(hostname -s)// < /home/share/bluetail/distcc-hosts)
+
+make CC='/home/share/luke/bin/distcc gcc' -j 7 "$@"
+