diff options
Diffstat (limited to 'debug_rom/Makefile')
-rw-r--r-- | debug_rom/Makefile | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/debug_rom/Makefile b/debug_rom/Makefile index fa01545..825aed8 100644 --- a/debug_rom/Makefile +++ b/debug_rom/Makefile @@ -9,7 +9,10 @@ COMPILE = $(CC) -nostdlib -nostartfiles -I.. -Tlink.ld ELFS = debug_rom DEPS = debug_rom.S link.ld -all: $(patsubst %,%.h,$(ELFS)) +all: $(patsubst %,%.h,$(ELFS)) $(patsubst %,%_defines.h,$(ELFS)) + +%_defines.h: %.S + grep define $^ > $@ %.h: %.raw xxd -i $^ | sed "s/^unsigned/static const unsigned/" > $@ |