[distcc] Adding preprocess-only option to distcc?

Martin Pool mbp at sourcefrog.net
Wed Apr 16 22:57:25 GMT 2003


On 16 Apr 2003, Jennifer Bevan <jen at alouysius.net> wrote:
> Hi all,
> I would like to use part of distcc -- namely, the Makefile
> handling and preprocessing part.

I guess you could do that.  You could equally well just write a tiny
compiler wrapper that changed -c to -E and reset output file.  It's a
matter of taste whether you want to use the utilities in distcc or
start from scratch.

Or write one additional make rule that does this, and pull it in with
Make's -f flag in addition to the regular Makefile.

%.i: %.c
     $(CC) -E -o $@ $(CPPFLAGS) $<

(You may need to tweak this depending on your Makefiles.)

> I would then like to take the nice preprocessed files and use them
> for my own purposes, without actually calling the compiler.

Can you say what you want to do with them?

-- 
Martin


More information about the distcc mailing list