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 $@"
|
@echo "Fetching $@"
|
||||||
@curl $(CURL_FLAGS) $(BASE)/$@
|
@curl $(CURL_FLAGS) $(BASE)/$@
|
||||||
|
|
||||||
$(TARGET).bin : $(TARGET).elf
|
%.bin : %.elf
|
||||||
@$(OBJCOPY) -O binary $< $(TARGET).bin
|
$(OBJCOPY) -O binary $< $@
|
||||||
|
|
||||||
$(TARGET).lst : $(TARGET).elf
|
%.lst : %.elf
|
||||||
@$(OBJDUMP) -S $^ > $(TARGET).lst
|
$(OBJDUMP) -S $^ > $@
|
||||||
|
|
||||||
$(TARGET).hex : $(TARGET).elf
|
%.hex : %.elf
|
||||||
@$(OBJCOPY) -O ihex $< $(TARGET).hex
|
$(OBJCOPY) -O ihex $< $@
|
||||||
|
|
||||||
flash: $(TARGET).bin
|
flash: $(TARGET).bin
|
||||||
minichlink -w $(TARGET).bin flash -b
|
minichlink -w $(TARGET).bin flash -b
|
||||||
|
|
Loading…
Add table
Reference in a new issue