aboutsummaryrefslogtreecommitdiff
path: root/debug_rom/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'debug_rom/Makefile')
-rw-r--r--debug_rom/Makefile7
1 files changed, 2 insertions, 5 deletions
diff --git a/debug_rom/Makefile b/debug_rom/Makefile
index 825aed8..4e9093c 100644
--- a/debug_rom/Makefile
+++ b/debug_rom/Makefile
@@ -7,12 +7,9 @@ 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 debug_rom_defines.h
-all: $(patsubst %,%.h,$(ELFS)) $(patsubst %,%_defines.h,$(ELFS))
-
-%_defines.h: %.S
- grep define $^ > $@
+all: $(patsubst %,%.h,$(ELFS))
%.h: %.raw
xxd -i $^ | sed "s/^unsigned/static const unsigned/" > $@