Hi Paul,

Is CPP short for C Pre Processor?


regards,
George

--- "Paul D. Smith" <[EMAIL PROTECTED]> wrote:

> %% Lin George <[EMAIL PROTECTED]> writes:
> 
>   lg> Thank you Greg!
>   lg> A great answer!
> 
>   >> If you only want to preprocess a file, you
> could use
>   >> CPP = gcc
>   >> $(CPP) $(CPPFLAGS) -E source.o -o source.i
> 
> I don't recommend this, actually: to be more correct
> you should use:
> 
>     CPP = gcc -E
> 
> Then something like:
> 
>     COMPILE.i = $(CPP) $(CPPFLAGS) -o $@
> 
>     %.i : %.c
>             $(COMPILE.i) $<
>     %.i : %.cc
>             $(COMPILE.i) $<
> 
> The -E flag is what tells "gcc" to stop after the
> preprocessing stage,
> and so it more correctly belongs directly in the CPP
> macro.  If you were
> using a different preprocessor, like "cpp" directly,
> you would want to
> replace the entire thing and not have the extra "-E"
> lying around.
> 
> -- 
>
-------------------------------------------------------------------------------
>  Paul D. Smith <[EMAIL PROTECTED]>          Find some
> GNU make tips at:
>  http://www.gnu.org                     
> http://make.paulandlesley.org
>  "Please remain calm...I may be mad, but I am a
> professional." --Mad Scientist
> 


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 


_______________________________________________
Help-make mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/help-make

Reply via email to