Setting up CC in an enviroment variable
- Variables in make can come from the environment in which make is run. Every environment variable that make sees when it starts up is transformed into a make variable with the same name and value. === GNU Make manual. ===
This means that you can set the CC enviroment variable on the command line, as so:
$ export CC="/arch/beta/bin/distcc gcc" CXX="/arch/beta/bin/distcc g++"
(Thanks to The Northeastern University College of Computer Science Volunteer Systems Group for the example )
Making with distcc
make -jN
Replace N with a number that is about the number of availiable machines. It sounds like some experimenting is needed to get this numer just right.