Add a rule for generating assembly listings on mc1322x targets, for example: "make webserver6.lst".

This commit is contained in:
Ian Martin 2013-12-01 16:22:37 -05:00
parent 5fbefbd87b
commit 0dafba4f6d

View File

@ -34,6 +34,7 @@ AS = $(CROSS)as
AR = $(CROSS)ar
NM = $(CROSS)nm
OBJCOPY = $(CROSS)objcopy
OBJDUMP = $(CROSS)objdump
STRIP = $(CROSS)strip
PROJECT_OBJECTFILES += ${addprefix $(OBJECTDIR)/,$(CONTIKI_TARGET_MAIN:.c=.o)}
@ -123,4 +124,6 @@ CUSTOM_RULE_C_TO_CO=yes
$(TRACE_CC)
$(Q)$(CC) $(LDFLAGS) $(CFLAGS) -nostartfiles -o $@ $(filter-out %.a %.lds,$^) $(filter %.a,$^) $(filter %.a,$^)
%.lst: %.elf
$(OBJDUMP) -DS $< > $@