aboutsummaryrefslogtreecommitdiffstats
path: root/benchmarks/polybench-syn/common.mk
blob: 65088550066bcb342f078c684bf9cbe170341d07 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
VERICERT ?= vericert
VERICERT_OPTS ?= -DSYNTHESIS

IVERILOG ?= iverilog
IVERILOG_OPTS ?=

%.v: %.c
	$(VERICERT) $(VERICERT_OPTS) $< -o $@

%.iver: %.v
	$(IVERILOG) $(IVERILOG_OPTS) $< -o $@

%.gcc: %.c
	$(CC) $(CFLAGS) $< -o $@

%: %.iver %.gcc
	cp $< $@

clean:
	rm -f *.iver
	rm -f *.v
	rm -f *.gcc

.PRECIOUS: %.v
.PHONY: all clean
.SUFFIXES: