Compiling with DistCC is relatively easy, as long as you compile via the Makefile.
What is DistCC?
DistCC is a small program which allows cross-network compiling. In other words, instead of your PC alone doing to work, it sends out files to be compiled on other hosts. This way you can speed up your compile-time by a lot.
How to configure OpenTTD to use DistCC?
makefirst, wait till you see the language files compile, then stop it. This is needed so we have a Makefile.config.
- Open Makefile.config.
CC_TARGET=, change this in:
CC_TARGET=distcc gcc<- where gcc is your compiler, see note below.
CC_HOST, change this in
CC_HOST=gcc<- where gcc is your compiler, see note below.
- Save file, close.
make -jN, where N is the amounts of CPUs + 1 (or any other number, just don't put it to high).