Makefile 553 Bytes
Newer Older
1
all: work
Clifford Wolf committed
2 3
	touch .stamp

4 5 6
clean::
	rm -f .stamp

Clifford Wolf committed
7
define template
8
work:: $(addprefix $(1)/.stamp_,sim falsify $(2))
Clifford Wolf committed
9 10 11 12 13

$(1)/.stamp_sim:
	bash run.sh $(1) sim
	touch $$@

14 15 16 17
$(1)/.stamp_falsify: $(1)/.stamp_sim
	bash run.sh $(1) falsify
	touch $$@

Clifford Wolf committed
18 19 20 21 22 23 24 25 26 27
$(1)/.stamp_cmos: $(1)/.stamp_sim
	bash run.sh $(1) cmos
	touch $$@

$(1)/.stamp_ice40: $(1)/.stamp_sim
	bash run.sh $(1) ice40
	touch $$@

clean::
	rm -rf $(1)/.stamp_* $(1)/work_*
28
	rm -f $(1)_cmos.status $(1)_ice40.status $(1)_falsify.status
Clifford Wolf committed
29 30 31 32 33
endef

$(eval $(call template,navre,cmos ice40))

.PHONY: all clean