COMPILE = $(CC) -nostdlib -nostartfiles -I.. -Tlink.ld
ELFS = debug_rom
-DEPS = debug_rom.S link.ld
+DEPS = debug_rom.S link.ld ../riscv/debug_rom_defines.h ../riscv/encoding.h
all: $(patsubst %,%.h,$(ELFS))
$(COMPILE) -o $@ $^
clean:
- rm -f $(ELFS) debug_rom*.raw debug_rom*.h
+ rm -f $(ELFS) debug_rom*.raw debug_rom.h