Generate linker map-file, to better judge space consumption
This commit is contained in:
parent
54d4c31250
commit
d60565e021
|
@ -1,5 +1,6 @@
|
||||||
*.bin
|
*.bin
|
||||||
*.elf
|
*.elf
|
||||||
|
*.map
|
||||||
lpc1xxx/memory.ld
|
lpc1xxx/memory.ld
|
||||||
applications/wrapper.c
|
applications/wrapper.c
|
||||||
lcd/allfonts.h
|
lcd/allfonts.h
|
||||||
|
|
|
@ -74,7 +74,7 @@ l0dables: table.c
|
||||||
@cd l0dable && $(MAKE)
|
@cd l0dable && $(MAKE)
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm -f $(OBJS) $(LD_TEMP) $(OUTFILE).elf $(OUTFILE).bin $(OUTFILE).hex table.c table.h
|
rm -f $(OBJS) $(LD_TEMP) $(OUTFILE).elf $(OUTFILE).bin $(OUTFILE).hex $(OUTFILE).map table.c table.h
|
||||||
for dir in $(SUBDIRS); do \
|
for dir in $(SUBDIRS); do \
|
||||||
$(MAKE) $(CONFIG_MAKE_PRINTDIRECTORY) -C $$dir clean; \
|
$(MAKE) $(CONFIG_MAKE_PRINTDIRECTORY) -C $$dir clean; \
|
||||||
done
|
done
|
||||||
|
@ -111,7 +111,7 @@ $(LD_TEMP):
|
||||||
-@echo "INCLUDE $(LD_SCRIPT)" >> $(LD_TEMP)
|
-@echo "INCLUDE $(LD_SCRIPT)" >> $(LD_TEMP)
|
||||||
|
|
||||||
$(OUTFILE).elf: $(OBJS) $(SYS_OBJS) $(SUBDIRS) $(LPCFIX) $(LD_TEMP)
|
$(OUTFILE).elf: $(OBJS) $(SYS_OBJS) $(SUBDIRS) $(LPCFIX) $(LD_TEMP)
|
||||||
$(LD) $(LDFLAGS) -T $(LD_TEMP) -o $(OUTFILE).elf $(OBJS) $(LDLIBS)
|
$(LD) $(LDFLAGS) -Map=$(OUTFILE).map -T $(LD_TEMP) -o $(OUTFILE).elf $(OBJS) $(LDLIBS)
|
||||||
-@echo ""
|
-@echo ""
|
||||||
$(SIZE) $(OUTFILE).elf
|
$(SIZE) $(OUTFILE).elf
|
||||||
-@echo ""
|
-@echo ""
|
||||||
|
|
Loading…
Reference in New Issue