[PATCH] Add silent Makefile rules

Eli Zaretskii eliz@gnu.org
Sat Mar 3 07:54:00 GMT 2018


> From: Simon Marchi <simon.marchi@ericsson.com>
> CC: Simon Marchi <simon.marchi@polymtl.ca>
> Date: Fri, 2 Mar 2018 15:20:36 -0500
> --- /dev/null
> +++ b/gdb/silent-rules.mk
> @@ -0,0 +1,14 @@
> +# If V is undefined or V=0 is specified, use the silent/verbose/compact mode.
> +V ?= 0
> +ifeq ($(V),0)
> +ECHO_CC =     @echo "  CC      $@";
> +ECHO_LD =     @echo "  LD      $@";
> +ECHO_REGDAT = @echo "  REGDAT  $@";
> +ECHO_GEN =    @echo "  GEN     $@";
> +ECHO_GEN_XML_BUILTIN = \
> +              @echo "  GEN     xml-builtin.c";
> +ECHO_GEN_XML_BUILTIN_GENERATED = \
> +              @echo "  GEN     xml-builtin-generated.c";
> +ECHO_INIT_C =  echo "  GEN     init.c" ||
> +SILENCE = @
> +endif

I think most projects I've seen use "CCLD" instead of "LD" when
announcing linking of a C program.

Maybe we should use CXX and CXXLD to indicate a C++ compilation/link.

Thanks.



More information about the Gdb-patches mailing list