From: Simon Marchi <simon.marchi@polymtl.ca>
To: gdb-patches@sourceware.org
Cc: Simon Marchi <simon.marchi@polymtl.ca>
Subject: [PATCH 0/4] Makefile improvements and cleanups
Date: Sun, 13 Nov 2016 03:46:00 -0000 [thread overview]
Message-ID: <20161113034625.8237-1-simon.marchi@polymtl.ca> (raw)
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
next reply other threads:[~2016-11-13 3:46 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-11-13 3:46 Simon Marchi [this message]
2016-11-13 3:46 ` [PATCH 3/4] Makefile: Flatten and sort file lists Simon Marchi
2016-11-15 16:46 ` Pedro Alves
2016-11-13 3:46 ` [PATCH 2/4] Makefile: Replace explicit subdir rules with pattern rules Simon Marchi
2016-11-15 17:54 ` Pedro Alves
2016-11-15 18:00 ` Simon Marchi
2016-11-15 18:36 ` Pedro Alves
2016-11-15 18:41 ` Simon Marchi
2016-11-13 3:46 ` [PATCH 1/4] Makefile: Replace old suffix " Simon Marchi
2016-11-13 3:56 ` [PATCH 0/4] Makefile improvements and cleanups Simon Marchi
2016-11-13 8:49 ` Andreas Schwab
2016-11-13 15:26 ` Simon Marchi
2016-11-13 16:25 ` Eli Zaretskii
2016-11-15 16:57 ` Pedro Alves
2016-11-15 17:15 ` Simon Marchi
2016-11-15 17:51 ` Pedro Alves
2016-11-15 21:58 ` Pedro Alves
2016-11-15 22:10 ` Simon Marchi
2016-11-15 21:46 ` John Baldwin
2016-11-17 18:54 ` John Baldwin
2016-11-17 19:20 ` Simon Marchi
2016-11-17 22:36 ` John Baldwin
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20161113034625.8237-1-simon.marchi@polymtl.ca \
--to=simon.marchi@polymtl.ca \
--cc=gdb-patches@sourceware.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox