Merge pull request #212 from riscv/hartsel
[riscv-isa-sim.git] / debug_rom / Makefile
index fa0154533b152c717e296ffdab835e8d1fe4657a..c5f2205de3bbf38baba4d600342f2277d409d098 100644 (file)
@@ -7,7 +7,7 @@ OBJCOPY = $(RISCV)/bin/riscv64-unknown-elf-objcopy
 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))
 
@@ -21,4 +21,4 @@ debug_rom:    $(DEPS)
        $(COMPILE) -o $@ $^
 
 clean:
-       rm -f $(ELFS) debug_rom*.raw debug_rom*.h
+       rm -f $(ELFS) debug_rom*.raw debug_rom.h