* [PATCH] libgloss: add some objcopy/objdump build rules
@ 2023-12-30 1:56 Mike Frysinger
0 siblings, 0 replies; only message in thread
From: Mike Frysinger @ 2023-12-30 1:56 UTC (permalink / raw)
To: newlib
A bunch of ports have manual rules to generate disassembly, srec, and
binary files from test programs. Add top-level pattern rules so every
test program gets this for free, and we don't have to duplicate it in
every subdir.
---
libgloss/Makefile.am | 8 ++++++++
libgloss/Makefile.in | 7 +++++++
2 files changed, 15 insertions(+)
diff --git a/libgloss/Makefile.am b/libgloss/Makefile.am
index 0d4460b5801e..f74f515adba2 100644
--- a/libgloss/Makefile.am
+++ b/libgloss/Makefile.am
@@ -31,6 +31,14 @@ AM_CPPFLAGS = -idirafter $(srcroot)/include
noinst_LIBRARIES = libobjs.a
libobjs_a_SOURCES =
+## Some convenience rules for debugging programs.
+%.dis: %
+ $(AM_V_GEN)$(OBJDUMP) -d $< > $@
+%.bin: %
+ $(AM_V_GEN)$(OBJCOPY) -O binary $< $@
+%.srec: %
+ $(AM_V_GEN)$(OBJCOPY) -O srec $< $@
+
## These are roughly topologically sorted in order to make porting more
## streamlined.
FLAGS_TO_PASS = \
--
2.43.0
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2023-12-30 1:56 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-12-30 1:56 [PATCH] libgloss: add some objcopy/objdump build rules Mike Frysinger
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).