diff options
Diffstat (limited to 'test/ppu-stm-integration-demo/makefile')
-rw-r--r-- | test/ppu-stm-integration-demo/makefile | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test/ppu-stm-integration-demo/makefile b/test/ppu-stm-integration-demo/makefile new file mode 100644 index 0000000..715a22b --- /dev/null +++ b/test/ppu-stm-integration-demo/makefile @@ -0,0 +1,6 @@ +data.h: data.txt + echo "#pragma once" > $@ + echo "#include <stdint.h>" >> $@ + (printf "#define HH_PPUINTDEMO_LENGTH "; wc -l < $<) >> $@ + tr -d ':' < $< | awk 'BEGIN { printf "const uint16_t HH_PPUINTDEMO_ADDR[] = { " } 1 { printf "0x"$$1", " } END { print "};" }' >> $@ + tr -d ':' < $< | awk 'BEGIN { printf "const uint16_t HH_PPUINTDEMO_DATA[] = { " } 1 { printf "0x"$$2", " } END { print "};" }' >> $@ |