[PATCH 0/4] Makefile improvements and cleanups

Simon Marchi
2016-11-13T03:46:45Z

The following patches contain a few improvements and cleanups to the gdb
Makefile. The starting point is when I wondered why we had to write individual
rules for each source file that is located in a subdirectory. I think it's
unnecessary verbose, and those rules could be replaced with pattern rules.
That's patch 2. Patch 1 is just a small change to use pattern rules instead
of suffix rules.

Patches 3 and 4 are cleanups of things that have slightly annoyed me for some
time, and I thought now would be a good time to make those changes.

Simon Marchi (4):
Makefile: Replace old suffix rules with pattern rules
Makefile: Replace explicit subdir rules with pattern rules
Makefile: Flatten and sort file lists
Normalize names of some source files

gdb/Makefile.in | 2224 ++++++++++++-----------
gdb/{alphabsd-nat.c => alpha-bsd-nat.c} | 2 +-
gdb/{alphabsd-tdep.c => alpha-bsd-tdep.c} | 2 +-
gdb/{alphabsd-tdep.h => alpha-bsd-tdep.h} | 6 +-
gdb/{alphafbsd-tdep.c => alpha-fbsd-tdep.c} | 0
gdb/{alphanbsd-tdep.c => alpha-nbsd-tdep.c} | 2 +-
gdb/{alphaobsd-tdep.c => alpha-obsd-tdep.c} | 2 +-
gdb/{amd64bsd-nat.c => amd64-bsd-nat.c} | 2 +-
gdb/{amd64fbsd-nat.c => amd64-fbsd-nat.c} | 2 +-
gdb/{amd64fbsd-tdep.c => amd64-fbsd-tdep.c} | 2 +-
gdb/{amd64nbsd-nat.c => amd64-nbsd-nat.c} | 0
gdb/{amd64nbsd-tdep.c => amd64-nbsd-tdep.c} | 0
gdb/{amd64obsd-nat.c => amd64-obsd-nat.c} | 0
gdb/{amd64obsd-tdep.c => amd64-obsd-tdep.c} | 0
gdb/{armbsd-tdep.c => arm-bsd-tdep.c} | 0
gdb/{armnbsd-nat.c => arm-nbsd-nat.c} | 0
gdb/{armnbsd-tdep.c => arm-nbsd-tdep.c} | 0
gdb/{armobsd-tdep.c => arm-obsd-tdep.c} | 0
gdb/config/alpha/fbsd.mh | 2 +-
gdb/config/alpha/nbsd.mh | 2 +-
gdb/config/arm/nbsdelf.mh | 2 +-
gdb/config/djgpp/fnchange.lst | 96 +-
gdb/config/i386/fbsd.mh | 4 +-
gdb/config/i386/fbsd64.mh | 4 +-
gdb/config/i386/i386gnu.mh | 2 +-
gdb/config/i386/i386sol2.mh | 2 +-
gdb/config/i386/nbsd64.mh | 2 +-
gdb/config/i386/nbsdelf.mh | 2 +-
gdb/config/i386/obsd.mh | 2 +-
gdb/config/i386/obsd64.mh | 2 +-
gdb/config/i386/sol2-64.mh | 2 +-
gdb/config/m68k/linux.mh | 2 +-
gdb/config/m68k/nbsdelf.mh | 2 +-
gdb/config/m68k/obsd.mh | 2 +-
gdb/config/m88k/obsd.mh | 2 +-
gdb/config/mips/nbsd.mh | 2 +-
gdb/config/mips/obsd64.mh | 2 +-
gdb/config/pa/nbsd.mh | 2 +-
gdb/config/pa/obsd.mh | 2 +-
gdb/config/powerpc/fbsd.mh | 2 +-
gdb/config/powerpc/nbsd.mh | 2 +-
gdb/config/powerpc/obsd.mh | 2 +-
gdb/config/sh/nbsd.mh | 2 +-
gdb/config/sparc/fbsd.mh | 2 +-
gdb/config/sparc/nbsd64.mh | 2 +-
gdb/config/sparc/nbsdelf.mh | 2 +-
gdb/config/sparc/obsd64.mh | 2 +-
gdb/config/vax/nbsdelf.mh | 2 +-
gdb/config/vax/obsd.mh | 2 +-
gdb/{hppabsd-tdep.c => hppa-bsd-tdep.c} | 2 +-
gdb/{hppabsd-tdep.h => hppa-bsd-tdep.h} | 6 +-
gdb/{hppanbsd-nat.c => hppa-nbsd-nat.c} | 0
gdb/{hppanbsd-tdep.c => hppa-nbsd-tdep.c} | 2 +-
gdb/{hppaobsd-nat.c => hppa-obsd-nat.c} | 0
gdb/{hppaobsd-tdep.c => hppa-obsd-tdep.c} | 2 +-
gdb/{i386bsd-nat.c => i386-bsd-nat.c} | 4 +-
gdb/{i386bsd-nat.h => i386-bsd-nat.h} | 6 +-
gdb/{i386bsd-tdep.c => i386-bsd-tdep.c} | 0
gdb/{i386fbsd-nat.c => i386-fbsd-nat.c} | 4 +-
gdb/{i386fbsd-tdep.c => i386-fbsd-tdep.c} | 2 +-
gdb/{i386fbsd-tdep.h => i386-fbsd-tdep.h} | 6 +-
gdb/{i386gnu-nat.c => i386-gnu-nat.c} | 0
gdb/{i386gnu-tdep.c => i386-gnu-tdep.c} | 0
gdb/{i386nbsd-nat.c => i386-nbsd-nat.c} | 2 +-
gdb/{i386nbsd-tdep.c => i386-nbsd-tdep.c} | 0
gdb/{i386obsd-nat.c => i386-obsd-nat.c} | 2 +-
gdb/{i386obsd-tdep.c => i386-obsd-tdep.c} | 0
gdb/{i386v4-nat.c => i386-v4-nat.c} | 0
gdb/{m68kbsd-nat.c => m68k-bsd-nat.c} | 0
gdb/{m68kbsd-tdep.c => m68k-bsd-tdep.c} | 0
gdb/{m68klinux-nat.c => m68k-linux-nat.c} | 0
gdb/{m68klinux-tdep.c => m68k-linux-tdep.c} | 0
gdb/{m88kbsd-nat.c => m88k-bsd-nat.c} | 0
gdb/{mipsnbsd-nat.c => mips-nbsd-nat.c} | 2 +-
gdb/{mipsnbsd-tdep.c => mips-nbsd-tdep.c} | 2 +-
gdb/{mipsnbsd-tdep.h => mips-nbsd-tdep.h} | 6 +-
gdb/{mips64obsd-nat.c => mips64-obsd-nat.c} | 0
gdb/{mips64obsd-tdep.c => mips64-obsd-tdep.c} | 0
gdb/{ppcfbsd-nat.c => ppc-fbsd-nat.c} | 2 +-
gdb/{ppcfbsd-tdep.c => ppc-fbsd-tdep.c} | 2 +-
gdb/{ppcfbsd-tdep.h => ppc-fbsd-tdep.h} | 6 +-
gdb/{ppcnbsd-nat.c => ppc-nbsd-nat.c} | 2 +-
gdb/{ppcnbsd-tdep.c => ppc-nbsd-tdep.c} | 2 +-
gdb/{ppcnbsd-tdep.h => ppc-nbsd-tdep.h} | 6 +-
gdb/{ppcobsd-nat.c => ppc-obsd-nat.c} | 2 +-
gdb/{ppcobsd-tdep.c => ppc-obsd-tdep.c} | 2 +-
gdb/{ppcobsd-tdep.h => ppc-obsd-tdep.h} | 6 +-
gdb/{shnbsd-nat.c => sh-nbsd-nat.c} | 0
gdb/{shnbsd-tdep.c => sh-nbsd-tdep.c} | 0
gdb/{sparcnbsd-nat.c => sparc-nbsd-nat.c} | 0
gdb/{sparcnbsd-tdep.c => sparc-nbsd-tdep.c} | 0
gdb/{sparcobsd-tdep.c => sparc-obsd-tdep.c} | 0
gdb/{sparc64fbsd-nat.c => sparc64-fbsd-nat.c} | 0
gdb/{sparc64fbsd-tdep.c => sparc64-fbsd-tdep.c} | 0
gdb/{sparc64nbsd-nat.c => sparc64-nbsd-nat.c} | 0
gdb/{sparc64nbsd-tdep.c => sparc64-nbsd-tdep.c} | 0
gdb/{sparc64obsd-nat.c => sparc64-obsd-nat.c} | 0
gdb/{sparc64obsd-tdep.c => sparc64-obsd-tdep.c} | 0
gdb/{vaxbsd-nat.c => vax-bsd-nat.c} | 0
gdb/{vaxnbsd-tdep.c => vax-nbsd-tdep.c} | 0
gdb/{vaxobsd-tdep.c => vax-obsd-tdep.c} | 0
gdb/{x86bsd-nat.c => x86-bsd-nat.c} | 2 +-
gdb/{x86bsd-nat.h => x86-bsd-nat.h} | 6 +-
103 files changed, 1330 insertions(+), 1160 deletions(-)
rename gdb/{alphabsd-nat.c => alpha-bsd-nat.c} (99%)
rename gdb/{alphabsd-tdep.c => alpha-bsd-tdep.c} (98%)
rename gdb/{alphabsd-tdep.h => alpha-bsd-tdep.h} (94%)
rename gdb/{alphafbsd-tdep.c => alpha-fbsd-tdep.c} (100%)
rename gdb/{alphanbsd-tdep.c => alpha-nbsd-tdep.c} (99%)
rename gdb/{alphaobsd-tdep.c => alpha-obsd-tdep.c} (99%)
rename gdb/{amd64bsd-nat.c => amd64-bsd-nat.c} (99%)
rename gdb/{amd64fbsd-nat.c => amd64-fbsd-nat.c} (99%)
rename gdb/{amd64fbsd-tdep.c => amd64-fbsd-tdep.c} (99%)
rename gdb/{amd64nbsd-nat.c => amd64-nbsd-nat.c} (100%)
rename gdb/{amd64nbsd-tdep.c => amd64-nbsd-tdep.c} (100%)
rename gdb/{amd64obsd-nat.c => amd64-obsd-nat.c} (100%)
rename gdb/{amd64obsd-tdep.c => amd64-obsd-tdep.c} (100%)
rename gdb/{armbsd-tdep.c => arm-bsd-tdep.c} (100%)
rename gdb/{armnbsd-nat.c => arm-nbsd-nat.c} (100%)
rename gdb/{armnbsd-tdep.c => arm-nbsd-tdep.c} (100%)
rename gdb/{armobsd-tdep.c => arm-obsd-tdep.c} (100%)
rename gdb/{hppabsd-tdep.c => hppa-bsd-tdep.c} (99%)
rename gdb/{hppabsd-tdep.h => hppa-bsd-tdep.h} (91%)
rename gdb/{hppanbsd-nat.c => hppa-nbsd-nat.c} (100%)
rename gdb/{hppanbsd-tdep.c => hppa-nbsd-tdep.c} (99%)
rename gdb/{hppaobsd-nat.c => hppa-obsd-nat.c} (100%)
rename gdb/{hppaobsd-tdep.c => hppa-obsd-tdep.c} (99%)
rename gdb/{i386bsd-nat.c => i386-bsd-nat.c} (99%)
rename gdb/{i386bsd-nat.h => i386-bsd-nat.h} (92%)
rename gdb/{i386bsd-tdep.c => i386-bsd-tdep.c} (100%)
rename gdb/{i386fbsd-nat.c => i386-fbsd-nat.c} (99%)
rename gdb/{i386fbsd-tdep.c => i386-fbsd-tdep.c} (99%)
rename gdb/{i386fbsd-tdep.h => i386-fbsd-tdep.h} (93%)
rename gdb/{i386gnu-nat.c => i386-gnu-nat.c} (100%)
rename gdb/{i386gnu-tdep.c => i386-gnu-tdep.c} (100%)
rename gdb/{i386nbsd-nat.c => i386-nbsd-nat.c} (99%)
rename gdb/{i386nbsd-tdep.c => i386-nbsd-tdep.c} (100%)
rename gdb/{i386obsd-nat.c => i386-obsd-nat.c} (99%)
rename gdb/{i386obsd-tdep.c => i386-obsd-tdep.c} (100%)
rename gdb/{i386v4-nat.c => i386-v4-nat.c} (100%)
rename gdb/{m68kbsd-nat.c => m68k-bsd-nat.c} (100%)
rename gdb/{m68kbsd-tdep.c => m68k-bsd-tdep.c} (100%)
rename gdb/{m68klinux-nat.c => m68k-linux-nat.c} (100%)
rename gdb/{m68klinux-tdep.c => m68k-linux-tdep.c} (100%)
rename gdb/{m88kbsd-nat.c => m88k-bsd-nat.c} (100%)
rename gdb/{mipsnbsd-nat.c => mips-nbsd-nat.c} (99%)
rename gdb/{mipsnbsd-tdep.c => mips-nbsd-tdep.c} (99%)
rename gdb/{mipsnbsd-tdep.h => mips-nbsd-tdep.h} (93%)
rename gdb/{mips64obsd-nat.c => mips64-obsd-nat.c} (100%)
rename gdb/{mips64obsd-tdep.c => mips64-obsd-tdep.c} (100%)
rename gdb/{ppcfbsd-nat.c => ppc-fbsd-nat.c} (99%)
rename gdb/{ppcfbsd-tdep.c => ppc-fbsd-tdep.c} (99%)
rename gdb/{ppcfbsd-tdep.h => ppc-fbsd-tdep.h} (92%)
rename gdb/{ppcnbsd-nat.c => ppc-nbsd-nat.c} (99%)
rename gdb/{ppcnbsd-tdep.c => ppc-nbsd-tdep.c} (99%)
rename gdb/{ppcnbsd-tdep.h => ppc-nbsd-tdep.h} (93%)
rename gdb/{ppcobsd-nat.c => ppc-obsd-nat.c} (99%)
rename gdb/{ppcobsd-tdep.c => ppc-obsd-tdep.c} (99%)
rename gdb/{ppcobsd-tdep.h => ppc-obsd-tdep.h} (95%)
rename gdb/{shnbsd-nat.c => sh-nbsd-nat.c} (100%)
rename gdb/{shnbsd-tdep.c => sh-nbsd-tdep.c} (100%)
rename gdb/{sparcnbsd-nat.c => sparc-nbsd-nat.c} (100%)
rename gdb/{sparcnbsd-tdep.c => sparc-nbsd-tdep.c} (100%)
rename gdb/{sparcobsd-tdep.c => sparc-obsd-tdep.c} (100%)
rename gdb/{sparc64fbsd-nat.c => sparc64-fbsd-nat.c} (100%)
rename gdb/{sparc64fbsd-tdep.c => sparc64-fbsd-tdep.c} (100%)
rename gdb/{sparc64nbsd-nat.c => sparc64-nbsd-nat.c} (100%)
rename gdb/{sparc64nbsd-tdep.c => sparc64-nbsd-tdep.c} (100%)
rename gdb/{sparc64obsd-nat.c => sparc64-obsd-nat.c} (100%)
rename gdb/{sparc64obsd-tdep.c => sparc64-obsd-tdep.c} (100%)
rename gdb/{vaxbsd-nat.c => vax-bsd-nat.c} (100%)
rename gdb/{vaxnbsd-tdep.c => vax-nbsd-tdep.c} (100%)
rename gdb/{vaxobsd-tdep.c => vax-obsd-tdep.c} (100%)
rename gdb/{x86bsd-nat.c => x86-bsd-nat.c} (99%)
rename gdb/{x86bsd-nat.h => x86-bsd-nat.h} (93%)

--
2.10.0