From db81c0e56dca48a0d8dee8a4359fb2096e4c1faf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joachim=20Stro=CC=88mbergson?= Date: Fri, 25 Jan 2019 09:16:24 +0100 Subject: Updated CC and Lint flags. Updated make help. --- toolruns/Makefile | 23 +++++++++++++++++++---- 1 file changed, 19 insertions(+), 4 deletions(-) (limited to 'toolruns/Makefile') diff --git a/toolruns/Makefile b/toolruns/Makefile index 7b613ee..6d579d8 100644 --- a/toolruns/Makefile +++ b/toolruns/Makefile @@ -40,20 +40,31 @@ CORE_SRC=../src/rtl/rosc_entropy_core.v ../src/rtl/rosc.v TOP_SRC=../src/rtl/rosc_entropy.v + CC=iverilog -LINT=verilator --lint-only +CC_FLAGS = -Wall + +LINT=verilator +LINT_FLAGS = +1364-2001ext+ --lint-only -Wall -Wno-fatal -Wno-DECLFILENAME + all: rosc.sim rosc.sim: $(TOP_SRC) $(CORE_SRC) - $(CC) -o rosc.sim $(TOP_SRC) $(CORE_SRC) + $(CC) $(CC_FLAGS) -o rosc.sim $(TOP_SRC) $(CORE_SRC) + + +sim-rosc: rosc.sim + ./rosc.sim + lint: $(TOP_SRC) $(CORE_SRC) - $(LINT) --top-module rosc_entropy $(TOP_SRC) $(CORE_SRC) + $(LINT) $(LINT_FLAGS) --top-module rosc_entropy $(TOP_SRC) $(CORE_SRC) + clean: - rm -f rosc.sim + rm -f *.sim help: @@ -61,6 +72,10 @@ help: @echo "" @echo "Supported targets:" @echo "------------------" + @echo "all: Build all simulation targets." + @echo "rosc.sim: Build the ROSC sim target." + @echo "sim-rosc: Run ROSC simulation." + @echo "lint: Run linter on the ROSC source." @echo "clean: Delete all built files." #=================================================================== -- cgit v1.2.3