Refactor makefile a bit
This commit is contained in:
parent
cc0eac299e
commit
48ef6cc258
1 changed files with 6 additions and 6 deletions
12
Makefile
12
Makefile
|
@ -52,14 +52,14 @@ ch32%:
|
|||
@echo "Fetching $@"
|
||||
@curl $(CURL_FLAGS) $(BASE)/$@
|
||||
|
||||
$(TARGET).bin : $(TARGET).elf
|
||||
@$(OBJCOPY) -O binary $< $(TARGET).bin
|
||||
%.bin : %.elf
|
||||
$(OBJCOPY) -O binary $< $@
|
||||
|
||||
$(TARGET).lst : $(TARGET).elf
|
||||
@$(OBJDUMP) -S $^ > $(TARGET).lst
|
||||
%.lst : %.elf
|
||||
$(OBJDUMP) -S $^ > $@
|
||||
|
||||
$(TARGET).hex : $(TARGET).elf
|
||||
@$(OBJCOPY) -O ihex $< $(TARGET).hex
|
||||
%.hex : %.elf
|
||||
$(OBJCOPY) -O ihex $< $@
|
||||
|
||||
flash: $(TARGET).bin
|
||||
minichlink -w $(TARGET).bin flash -b
|
||||
|
|
Loading…
Add table
Reference in a new issue