More generic Makefile

This commit is contained in:
Romain Goyet
2015-09-14 19:01:47 +02:00
parent 3857448cb7
commit c58a5f41e3

View File

@@ -82,13 +82,13 @@ include quiz/Makefile
run: boot.elf
$(GDB) -x gdb_script.gdb boot.elf
boot.hex: boot.elf
%.hex: %.elf
@echo "OBJCOPY $@"
@$(OBJCOPY) -O ihex boot.elf boot.hex
@$(OBJCOPY) -O ihex $< $@
boot.bin: boot.elf
%.bin: %.elf
@echo "OBJCOPY $@"
@$(OBJCOPY) -O binary boot.elf boot.bin
@$(OBJCOPY) -O binary $< $@
boot.elf: $(objs)
@echo "LD $@"