diff --git a/Makefile b/Makefile index 4c62df3..6968114 100644 --- a/Makefile +++ b/Makefile @@ -17,10 +17,11 @@ FORCE: $(SYNTH) -q -E $@.d -p "synth_ice40 -top $(*F)" -b json -o $@ -f verilog $< %.post.v: %.json %.v - ( grep timescale $*.v && echo '`include "common.vh"' && \ + ( echo '`include "common.vh"'; grep timescale $*.v; \ $(SYNTH) -q -b verilog -f json $< ) | sed 's/endmodule/`DUMP(1)\n\0/g' > $@ -IFLAGS := -g2012 -Wall +# Don't warn about including the timescale from common.vh +IFLAGS := -g2012 -Wall -Wno-timescale define run-icarus = $(ICARUS) $(IFLAGS) -I$( */ -`default_nettype none - `include "common.vh" /* 4b5b code groups */