aboutsummaryrefslogtreecommitdiffstats
path: root/benchmarks/polybench-syn/common.mk
blob: fbada0bf30a2eb8dae4cf829be21426c0b558266 (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
27
28
29
30
31
32
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: