diff options
author | Mike Frysinger <vapier@gentoo.org> | 2023-12-29 09:51:27 +0300 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2024-01-20 04:09:28 +0300 |
commit | 0714c6305adfb91b6560da03dc871a564450495c (patch) | |
tree | c2644b9fcd22dbeabc101e0034f80f62102af450 /libgloss/Makefile.am | |
parent | 1adfc9ac37228732bbed2c0923cfc3ae7007724e (diff) |
libgloss: add some objcopy/objdump build rules
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.
Diffstat (limited to 'libgloss/Makefile.am')
-rw-r--r-- | libgloss/Makefile.am | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/libgloss/Makefile.am b/libgloss/Makefile.am index a8a445b1d..a035f8d8a 100644 --- a/libgloss/Makefile.am +++ b/libgloss/Makefile.am @@ -31,6 +31,16 @@ 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 $< $@ +%.hex: % + $(AM_V_GEN)$(OBJCOPY) -O ihex $< $@ +%.srec: % + $(AM_V_GEN)$(OBJCOPY) -O srec $< $@ + ## These are roughly topologically sorted in order to make porting more ## streamlined. FLAGS_TO_PASS = \ |