Add rule to disassemble .o files

This commit is contained in:
Jim Paris 2010-09-27 17:32:59 -04:00
parent 9cd46dfd4a
commit 00f4a66bb8

View file

@ -95,6 +95,10 @@ $(foreach t, $(TARGETS_WITH_ROM_VARS), $(eval $(call build_elf_rule,$(t))))
$(call pretty,OBJDUMP,$@)
$Q$(OBJDUMP) -Sd $< > $@ || rm -f $@
%.dis: %.o
$(call pretty,OBJDUMP,$@)
$Q$(OBJDUMP) -d $< > $@ || rm -f $@
%.o: %.c
$(call pretty,CC,$@)
$Q$(CC) $(CFLAGS) $(CFLAGS_THUMB) -MMD -c -o $@ $<