summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorJulian Blake Kongslie2021-03-24 08:35:07 -0700
committerJulian Blake Kongslie2021-03-24 08:50:57 -0700
commit5c1df6d27f5dac143efc9ce84689b863dbee45bd (patch)
tree9bb9c9bcab00e7d5a5d1b40467d8e5a810f0b706 /Makefile
parentClean before building. (diff)
downloadtoycpu-5c1df6d27f5dac143efc9ce84689b863dbee45bd.tar.xz
Reorganize repo layout to make it a little easier to work within.
Diffstat (limited to '')
-rw-r--r--Makefile6
1 files changed, 3 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index f532ce2..41fa7d9 100644
--- a/Makefile
+++ b/Makefile
@@ -1,5 +1,5 @@
1SOURCES := $(wildcard **.sv **.cpp) 1SOURCES := $(shell find -name \*.sv -o -name \*.cpp)
2COLLATERAL := $(wildcard **.hex **.svh) 2COLLATERAL := $(shell find -name \*.hex -o -name \*.svh)
3 3
4OPTS ?= 4OPTS ?=
5 5
@@ -9,7 +9,7 @@ sim: build/Vtop
9 9
10build/Vtop: $(SOURCES) $(COLLATERAL) 10build/Vtop: $(SOURCES) $(COLLATERAL)
11 @mkdir -p build 11 @mkdir -p build
12 verilator +1800-2017ext+sv -Wall -Wno-BLKSEQ -O3 $(OPTS) --Mdir build --trace --cc --build --exe --top-module top $(SOURCES) 12 verilator +1800-2017ext+sv -Wall -Wno-BLKSEQ -O3 -Ihdl $(OPTS) --Mdir build --trace --cc --build --exe --top-module top $(SOURCES)
13 13
14clean: 14clean:
15 rm -rf build 15 rm -rf build