diff options
author | Yann Herklotz <git@yannherklotz.com> | 2021-09-22 19:26:01 +0100 |
---|---|---|
committer | Yann Herklotz <git@yannherklotz.com> | 2021-09-22 19:26:01 +0100 |
commit | 2ff1316847b9d338a792f67b7b9f6364d4b65551 (patch) | |
tree | 6aaf069a05f889d6f3fe012332a5e74dd8707429 /benchmarks/polybench-syn/common.mk | |
parent | c114bd7a269824623f2dbb41322d95d5056fca02 (diff) | |
parent | 8386bed39f413bb461c19debbad92e85f927c4b5 (diff) | |
download | vericert-kvx-2ff1316847b9d338a792f67b7b9f6364d4b65551.tar.gz vericert-kvx-2ff1316847b9d338a792f67b7b9f6364d4b65551.zip |
Merge remote-tracking branch 'origin/develop' into develop
Diffstat (limited to 'benchmarks/polybench-syn/common.mk')
-rw-r--r-- | benchmarks/polybench-syn/common.mk | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/benchmarks/polybench-syn/common.mk b/benchmarks/polybench-syn/common.mk new file mode 100644 index 0000000..fbada0b --- /dev/null +++ b/benchmarks/polybench-syn/common.mk @@ -0,0 +1,33 @@ +VERICERT ?= vericert +VERICERT_OPTS ?= -DSYNTHESIS + +IVERILOG ?= iverilog +IVERILOG_OPTS ?= + +TARGETS ?= + +%.v: %.c + $(VERICERT) $(VERICERT_OPTS) $< -o $@ + +%.iver: %.v + $(IVERILOG) -o $@ $(IVERILOG_OPTS) $< + +%.gcc: %.c + $(CC) $(CFLAGS) $< -o $@ + +%: %.iver %.gcc + cp $< $@ + +all: $(TARGETS) + +clean: + rm -f *.iver + rm -f *.v + rm -f *.gcc + rm -f *.clog + rm -f *.tmp + rm -f $(TARGETS) + +.PRECIOUS: %.v %.gcc %.iver +.PHONY: all clean +.SUFFIXES: |