Add device programming to target in Makefile
This commit is contained in:
parent
cbd3e56503
commit
c745f865bd
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user