This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: A patch for Makefile.in
- To: egcs-patches at cygnus dot com, hjl at lucon dot org
- Subject: Re: A patch for Makefile.in
- From: "Kaveh R. Ghazi" <ghazi at caip dot rutgers dot edu>
- Date: Sun, 21 Jun 1998 21:46:44 -0400 (EDT)
> From: hjl@lucon.org (H.J. Lu)
>
> sdbout.c includes expr.h which includes insn-codes.h.
> ---
> Sun Jun 21 09:53:28 1998 H.J. Lu (hjl@gnu.org)
>
> * Makefile.in (sdbout.o): Add insn-codes.h to dependency.
>
> Index: Makefile.in
> ===================================================================
> RCS file: /home/work/cvs/gnu/egcs/gcc/Makefile.in,v
> retrieving revision 1.1.1.57
> diff -u -r1.1.1.57 Makefile.in
> --- Makefile.in 1998/06/21 16:38:11 1.1.1.57
> +++ Makefile.in 1998/06/21 16:44:17
> @@ -1398,7 +1400,7 @@
> toplev.h
> sdbout.o : sdbout.c $(CONFIG_H) system.h $(TREE_H) $(RTL_H) flags.h except.h \
> function.h expr.h output.h hard-reg-set.h regs.h defaults.h real.h \
> - insn-config.h obstack.h xcoffout.h c-pragma.h sdbout.h
> + insn-config.h obstack.h xcoffout.h c-pragma.h sdbout.h insn-codes.h
> dwarfout.o : dwarfout.c $(CONFIG_H) system.h $(TREE_H) $(RTL_H) dwarf.h \
> flags.h insn-config.h reload.h output.h defaults.h toplev.h dwarfout.h
> dwarf2out.o : dwarf2out.c $(CONFIG_H) system.h $(TREE_H) $(RTL_H) dwarf2.h \
>
Rather than do this, wouldn't it be easier to maintain if you
created $(EXPR_H) which expanded to "expr.h insn-codes.h"? (Similar to
how TREE_H/RTL_H are handled.) Then you replace all dependencies on
expr.h with $(EXPR_H).
--Kaveh
--
Kaveh R. Ghazi Project Manager / Custom Development
ghazi@caip.rutgers.edu Icon CMT Corp.