From 5ab446b59d8884d17ea61c9da6b4a613c0435c2b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joachim=20Stro=CC=88mbergson?= Date: Thu, 18 Oct 2018 09:58:31 +0200 Subject: Added lint target. Added compiler flags. --- toolruns/Makefile | 15 +++++++++++++-- 1 file 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." #=================================================================== -- cgit v1.2.3