Skip to content
Snippets Groups Projects
Commit ae5e883b authored by cladmi's avatar cladmi Committed by Gaëtan Harter
Browse files

Makefile.include: add targets to get .elf/.bin/.hex

parent 70c5079b
No related branches found
No related tags found
No related merge requests found
...@@ -308,7 +308,7 @@ BASELIBS += $(BINDIR)/$(APPLICATION_MODULE).a ...@@ -308,7 +308,7 @@ BASELIBS += $(BINDIR)/$(APPLICATION_MODULE).a
BASELIBS += $(APPDEPS) BASELIBS += $(APPDEPS)
.PHONY: all link clean flash flash-only term doc debug debug-server reset objdump help info-modules .PHONY: all link clean flash flash-only term doc debug debug-server reset objdump help info-modules
.PHONY: print-size .PHONY: print-size elffile binfile hexfile
.PHONY: ..in-docker-container .PHONY: ..in-docker-container
# Target can depend on FORCE to always rebuild but still let make use file # Target can depend on FORCE to always rebuild but still let make use file
# modification timestamp (contrary to .PHONY). # modification timestamp (contrary to .PHONY).
...@@ -319,6 +319,11 @@ ELFFILE ?= $(BINDIR)/$(APPLICATION).elf ...@@ -319,6 +319,11 @@ ELFFILE ?= $(BINDIR)/$(APPLICATION).elf
HEXFILE ?= $(ELFFILE:.elf=.hex) HEXFILE ?= $(ELFFILE:.elf=.hex)
BINFILE ?= $(ELFFILE:.elf=.bin) BINFILE ?= $(ELFFILE:.elf=.bin)
# Targets to get given file
elffile: $(ELFFILE)
hexfile: $(HEXFILE)
binfile: $(BINFILE)
# variables used to compile and link c++ # variables used to compile and link c++
CPPMIX ?= $(if $(wildcard *.cpp),1,) CPPMIX ?= $(if $(wildcard *.cpp),1,)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment