From 50032620a7743795ceee1b0ecda1a01f8296a6d4 Mon Sep 17 00:00:00 2001 From: Julian Blake Kongslie Date: Mon, 5 Apr 2021 13:36:31 -0700 Subject: Don't rebuild verilator just for memory file changes. (These files are read when the simulator starts, not when it's built) --- Makefile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 601e946..51d0a70 100644 --- a/Makefile +++ b/Makefile @@ -1,5 +1,6 @@ SOURCES := $(shell find -name \*.sv -o -name \*.cpp) -COLLATERAL := $(shell find -name \*.hex -o -name \*.svh) +HEADERS := $(shell find -name \*.svh) +MEMORIES := $(shell find -name \*.hex) OPTS ?= @@ -7,7 +8,7 @@ sim: build/Vtop $< .PHONY: sim -build/Vtop: $(SOURCES) $(COLLATERAL) +build/Vtop: $(SOURCES) $(HEADERS) @rm -rf verilator @mkdir -p build verilator verilator +1800-2017ext+sv -Wall -Wno-BLKSEQ -Wno-UNUSED -O3 -Ihdl $(OPTS) --Mdir verilator --trace --cc --build -j --exe --top-module top $(SOURCES) -- cgit v1.2.3