diff --git a/libgloss/Makefile.am b/libgloss/Makefile.am index 0d4460b58..aa1c430e3 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 = \ diff --git a/libgloss/Makefile.in b/libgloss/Makefile.in index deeb31cbc..e6441a4c5 100644 --- a/libgloss/Makefile.in +++ b/libgloss/Makefile.in @@ -5335,6 +5335,15 @@ uninstall-am: uninstall-aarch64_cpu_initcpuinitDATA \ .PRECIOUS: Makefile +%.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 $< $@ + # GNU Make needs to see an explicit $(MAKE) variable in the command it # runs to enable its job server during parallel builds. Hence the # comments below.