[comp.sys.ncr] Any easy way to use your own cpp with 3000 C compiler?

s900387@minyos.xx.rmit.oz.au (Craig Macbride) (05/13/91)

Most C compilers I've used have an option switch (usually -t ... sometimes
other things) to allow you to use a different program for a particular
phase of compilation. If you need a special cpp (for example, the one which
renames all the identifiers and macros for NCS to get the dollar signs out of
them) you just include the appropriate arg in CFLAGS for your make and away
you go. As the 3000 has pre-processor and compiler as one program, there
appears to be no way to do this cleanly. For compatibility with other systems,
it would be really useful for NCR to provide this functionality.

The cleanest way I can see to get around it is to make a shell script which
calls your own cpp, and then the first C compiler phase. Then this script can
be used as a replacement for the compiler with the appropriate option (-Y?).
Of course, the script has to create an intermediate file from each cpp and
therefore has to remove it, too.

At the moment, a single include file for my make files is the only thing which
must be changed to copy a set of source directories from one machine to
another, so it would be nice to just find some quick and easy way to get the
3000's C compiler to pretend it was the standard cpp/ccom/... type so that
cpp could be changed on the command line. Is there something I haven't seen
or thought of?

-- 
 _--_|\		Craig Macbride	<uni: s900387@minyos.xx.rmit.oz.au>
/      \			<work: craig@bacchus.esa.oz.au>
\_.--.*/
      v