diff mbox

[v3,15/18] make out_object_file rule use automatic dependencies

Message ID 1377007156-540-16-git-send-email-tromey@redhat.com
State New
Headers show

Commit Message

Tom Tromey Aug. 20, 2013, 1:59 p.m. UTC
This is a small change to make out_object_file use automatic
dependencies.

	* Makefile.in ($(out_object_file)): Use COMPILE and POSTCOMPILE.
---
 gcc/Makefile.in | 12 +++---------
 1 file changed, 3 insertions(+), 9 deletions(-)

Comments

Paolo Bonzini Sept. 16, 2013, 3:19 p.m. UTC | #1
Il 20/08/2013 15:59, Tom Tromey ha scritto:
> This is a small change to make out_object_file use automatic
> dependencies.
> 
> 	* Makefile.in ($(out_object_file)): Use COMPILE and POSTCOMPILE.
> ---
>  gcc/Makefile.in | 12 +++---------
>  1 file changed, 3 insertions(+), 9 deletions(-)
> 
> diff --git a/gcc/Makefile.in b/gcc/Makefile.in
> index b22e8a8..c8b7b65 100644
> --- a/gcc/Makefile.in
> +++ b/gcc/Makefile.in
> @@ -2028,15 +2028,9 @@ pass-instances.def: $(srcdir)/passes.def $(srcdir)/gen-pass-instances.awk
>  	$(AWK) -f $(srcdir)/gen-pass-instances.awk \
>  	  $(srcdir)/passes.def > pass-instances.def
>  
> -$(out_object_file): $(out_file) $(CONFIG_H) coretypes.h $(TM_H) $(TREE_H) \
> -   $(RTL_H) $(REGS_H) hard-reg-set.h insn-config.h conditions.h \
> -   output.h $(INSN_ATTR_H) $(SYSTEM_H) toplev.h $(DIAGNOSTIC_CORE_H) \
> -   $(TARGET_H) $(LIBFUNCS_H) $(TARGET_DEF_H) $(FUNCTION_H) $(SCHED_INT_H) \
> -   $(TM_P_H) $(EXPR_H) langhooks.h $(GGC_H) $(OPTABS_H) $(REAL_H) \
> -   tm-constrs.h $(GIMPLE_H) $(DF_H) cselib.h $(COMMON_TARGET_H) hw-doloop.h \
> -   regrename.h
> -	$(COMPILER) -c $(ALL_COMPILERFLAGS) $(ALL_CPPFLAGS) \
> -		$(out_file) $(OUTPUT_OPTION)
> +$(out_object_file): $(out_file)
> +	$(COMPILE) $<
> +	$(POSTCOMPILE)
>  
>  $(common_out_object_file): $(common_out_file)
>  	$(COMPILE) $<
> 

Ok.

Paolo
diff mbox

Patch

diff --git a/gcc/Makefile.in b/gcc/Makefile.in
index b22e8a8..c8b7b65 100644
--- a/gcc/Makefile.in
+++ b/gcc/Makefile.in
@@ -2028,15 +2028,9 @@  pass-instances.def: $(srcdir)/passes.def $(srcdir)/gen-pass-instances.awk
 	$(AWK) -f $(srcdir)/gen-pass-instances.awk \
 	  $(srcdir)/passes.def > pass-instances.def
 
-$(out_object_file): $(out_file) $(CONFIG_H) coretypes.h $(TM_H) $(TREE_H) \
-   $(RTL_H) $(REGS_H) hard-reg-set.h insn-config.h conditions.h \
-   output.h $(INSN_ATTR_H) $(SYSTEM_H) toplev.h $(DIAGNOSTIC_CORE_H) \
-   $(TARGET_H) $(LIBFUNCS_H) $(TARGET_DEF_H) $(FUNCTION_H) $(SCHED_INT_H) \
-   $(TM_P_H) $(EXPR_H) langhooks.h $(GGC_H) $(OPTABS_H) $(REAL_H) \
-   tm-constrs.h $(GIMPLE_H) $(DF_H) cselib.h $(COMMON_TARGET_H) hw-doloop.h \
-   regrename.h
-	$(COMPILER) -c $(ALL_COMPILERFLAGS) $(ALL_CPPFLAGS) \
-		$(out_file) $(OUTPUT_OPTION)
+$(out_object_file): $(out_file)
+	$(COMPILE) $<
+	$(POSTCOMPILE)
 
 $(common_out_object_file): $(common_out_file)
 	$(COMPILE) $<