Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Diff: export/makefile/Makefile.tmpl
- Revision:
- 40:7d3fa6b99b2b
- Parent:
- 36:96847d42f010
- Child:
- 42:2cf3f29fece1
diff -r c98cb013e99f -r 7d3fa6b99b2b export/makefile/Makefile.tmpl --- a/export/makefile/Makefile.tmpl Wed Jul 19 16:44:30 2017 -0500 +++ b/export/makefile/Makefile.tmpl Tue Oct 10 16:56:30 2017 -0500 @@ -97,20 +97,26 @@ all: $(PROJECT).bin $(PROJECT).hex size {% endif %} -.asm.o: - +@$(call MAKEDIR,$(dir $@)) - +@echo "Assemble: $(notdir $<)" - @$(AS) -c $(ASM_FLAGS) $(INCLUDE_PATHS) -o $@ $< - .s.o: +@$(call MAKEDIR,$(dir $@)) +@echo "Assemble: $(notdir $<)" + {% if needs_asm_preproc %} + @$(AS) -c $(ASM_FLAGS) $(INCLUDE_PATHS) -E -o $(@:.o=.E.s) $< + @$(AS) -c $(ASM_FLAGS) $(INCLUDE_PATHS) -o $@ $(@:.o=.E.s) + {% else %} @$(AS) -c $(ASM_FLAGS) $(INCLUDE_PATHS) -o $@ $< + {% endif %} + .S.o: +@$(call MAKEDIR,$(dir $@)) +@echo "Assemble: $(notdir $<)" + {% if needs_asm_preproc %} + @$(AS) -c $(ASM_FLAGS) $(INCLUDE_PATHS) -E -o $(@:.o=.E.s) $< + @$(AS) -c $(ASM_FLAGS) $(INCLUDE_PATHS) -o $@ $(@:.o=.E.s) + {% else %} @$(AS) -c $(ASM_FLAGS) $(INCLUDE_PATHS) -o $@ $< + {% endif %} .c.o: +@$(call MAKEDIR,$(dir $@)) @@ -130,7 +136,7 @@ {% block target_project_elf %} $(PROJECT).elf: $(OBJECTS) $(SYS_OBJECTS) {% if pp_cmd -%} $(PROJECT).link_script{{link_script_ext}} {% else%} $(LINKER_SCRIPT) {% endif %} +@echo "link: $(notdir $@)" - @$(LD) $(LD_FLAGS) {{link_script_option}} $(filter %{{link_script_ext}}, $^) $(LIBRARY_PATHS) --output $@ $(filter %.o, $^) $(LIBRARIES) $(LD_SYS_LIBS) + @$(LD) $(LD_FLAGS) {{link_script_option}} $(filter-out %.o, $^) $(LIBRARY_PATHS) --output $@ $(filter %.o, $^) $(LIBRARIES) $(LD_SYS_LIBS) {% endblock %} $(PROJECT).bin: $(PROJECT).elf