On Thu, 2011-04-21 at 10:41 +0800, [email protected] wrote:
 
> I am newbie to Makefiles. When make is executed i want to hide the gcc
> compilation flags and would like to display only the C file getting
> compiled. Can you please help me doing this?

There is no built-in/predefined way to do this.  In order to do it
you'll have to write the make rules that compile your code in such a way
that they do this.

For example,

        %.o : %.c
                @echo "Compiling $<"
                @$(CC) $(CFLAGS) $(CPPFLAGS) -o $@ -c $<

will do it.

-- 
-------------------------------------------------------------------------------
 Paul D. Smith <[email protected]>          Find some GNU make tips at:
 http://www.gnu.org                      http://make.mad-scientist.net
 "Please remain calm...I may be mad, but I am a professional." --Mad Scientist


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

Reply via email to