]> Joshua Wise's Git repositories - vterm.git/blobdiff - Makefile
Add a scancode lookup table.
[vterm.git] / Makefile
index ef9e12a83a064f904e91ba951f4f06cd9d5ad21a..58574c28e01aa7e1087fd19aa8b88d48e14f29e3 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,6 +1,14 @@
 TARGET = VTerm
 VLOGS = VTerm.v
-VLOGS_ALL = $(VLOGS)
+VLOGS_ALL = $(VLOGS) scancodes.shifted.hex scancodes.unshifted.hex
+
+all: fpga_target
+
+scancodes.unshifted.hex: scancodes.txt
+       cut -f3 -d, scancodes.txt > scancodes.unshifted.hex
+
+scancodes.shifted.hex: scancodes.txt
+       cut -f4 -d, scancodes.txt > scancodes.shifted.hex
 
 BITGEN_OPTS = \
        -w \
@@ -26,7 +34,7 @@ BITGEN_OPTS = \
        -g DonePipe:No \
        -g DriveDone:No
 
-all: $(TARGET).svf
+fpga_target: $(TARGET).svf
 
 $(TARGET).ngc: $(TARGET).xst $(VLOGS_ALL)
        @mkdir -p xst/projnav.tmp
This page took 0.020799 seconds and 4 git commands to generate.