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

View File

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