diff options
author | Joachim StroĢmbergson <joachim@secworks.se> | 2018-10-18 09:58:31 +0200 |
---|---|---|
committer | Joachim StroĢmbergson <joachim@secworks.se> | 2018-10-18 09:58:31 +0200 |
commit | 5ab446b59d8884d17ea61c9da6b4a613c0435c2b (patch) | |
tree | 6e26314ac6663aa7f8c6d3379237c19fcb956087 /toolruns/Makefile | |
parent | 035e85dc38114de1e7971e2865553df386c0c290 (diff) |
Diffstat (limited to 'toolruns/Makefile')
-rw-r--r-- | toolruns/Makefile | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/toolruns/Makefile b/toolruns/Makefile index 4e699ee..b2b8e68 100644 --- a/toolruns/Makefile +++ b/toolruns/Makefile @@ -40,14 +40,22 @@ CORE_SRC=../src/rtl/avalanche_entropy_core.v TOP_SRC=../src/rtl/avalanche_entropy.v -CC=iverilog +CC = iverilog +CC_FLAGS = -Wall + +LINT= verilator +LINT_FLAGS = +1364-2001ext+ --lint-only -Wall -Wno-fatal -Wno-DECLFILENAME all: top top: $(TOP_SRC) $(CORE_SRC) - $(CC) -o top $(TOP_SRC) $(CORE_SRC) + $(CC) $(CC_FLAGS) -o top $(TOP_SRC) $(CORE_SRC) + + +lint: $(TOP_SRC) + $(LINT) $(LINT_FLAGS) $(TOP_SRC) $(CORE_SRC) clean: @@ -59,6 +67,9 @@ help: @echo "" @echo "Supported targets:" @echo "------------------" + @echo "all: Build all simulation targets." + @echo "top: Build the top imulation target." + @echo "lint: Run the linter on the source." @echo "clean: Delete all built files." #=================================================================== |