diff --git a/Makefile.include b/Makefile.include index b6cd9e3db129914eb3565a914d6c9e1b559e2fa6..c1647a573618d9fb0289ea08d0906d1191ef4712 100644 --- a/Makefile.include +++ b/Makefile.include @@ -308,7 +308,7 @@ BASELIBS += $(BINDIR)/$(APPLICATION_MODULE).a BASELIBS += $(APPDEPS) .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 # Target can depend on FORCE to always rebuild but still let make use file # modification timestamp (contrary to .PHONY). @@ -319,6 +319,11 @@ ELFFILE ?= $(BINDIR)/$(APPLICATION).elf HEXFILE ?= $(ELFFILE:.elf=.hex) BINFILE ?= $(ELFFILE:.elf=.bin) +# Targets to get given file +elffile: $(ELFFILE) +hexfile: $(HEXFILE) +binfile: $(BINFILE) + # variables used to compile and link c++ CPPMIX ?= $(if $(wildcard *.cpp),1,)