Add device programming to target in Makefile

This commit is contained in:
Mario Hüttel 2020-04-18 01:39:50 +02:00
parent cbd3e56503
commit c745f865bd
1 changed files with 4 additions and 2 deletions

View File

@ -80,7 +80,6 @@ default: $(target).elf
%.hex: %.elf
$(QUIET)$(OBJCOPY) -O ihex $^ $@
#Linking
$(target).elf: $(OBJ) $(ASOBJ)
@echo [LD] $@
@ -101,7 +100,10 @@ $(ASOBJ):
$(QUIET)$(CC) $(CFLAGS) -MMD -MT $@ $(INCLUDEPATH) $(DEFINES) -o $@ $(@:$(OBJDIR)/%.S.o=%.S)
.PHONY: qtproject clean mrproper objcopy disassemble
.PHONY: qtproject clean mrproper objcopy disassemble program
program: $(target).elf
./program-device.sh $<
disassemble: $(target).elf
$(QUIET)$(OBJDUMP) -D -s $< > $(target).lss