From 1f22cf570dbd76ef45276a22142dbe9f1c591cb7 Mon Sep 17 00:00:00 2001 From: John-Mark Gurney Date: Fri, 30 Apr 2021 18:26:15 -0700 Subject: [PATCH] output the .map file as well, this helps figure out where things are.. --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 7d80630..b2e7a36 100644 --- a/Makefile +++ b/Makefile @@ -143,8 +143,8 @@ depend: $(DEPENDS) .test_deps: $(LIBLORA_TEST_SRCS) $(CC) $(CFLAGS) $(.ALLSRC) -MM | sed -e 's/\.o:/\.no:/' > $@ || (rm -f $@ && false) -$(PROG)$(PROGEXT): $(OBJS) - $(ARMCC) $(ARMTARGET) -o $@ $(.ALLSRC) -T$(LINKER_SCRIPT) --specs=nosys.specs -Wl,--gc-sections -static --specs=nano.specs -Wl,--start-group -lc -lm -Wl,--end-group +$(PROG)$(PROGEXT) $(PROG).map: $(OBJS) + $(ARMCC) $(ARMTARGET) -o $(PROG)$(PROGEXT) $(.ALLSRC) -T$(LINKER_SCRIPT) --specs=nosys.specs -Wl,-Map="$(PROG).map" -Wl,--gc-sections -static --specs=nano.specs -Wl,--start-group -lc -lm -Wl,--end-group $(PROG).list: $(PROG)$(PROGEXT) $(ARMOBJDUMP) -h -S $(.ALLSRC) > $@ || (rm -f $@ && false)