mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-19 00:37:25 +01:00
More generic Makefile
This commit is contained in:
8
Makefile
8
Makefile
@@ -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 $@"
|
||||
|
||||
Reference in New Issue
Block a user