aboutsummaryrefslogtreecommitdiffstats
path: root/icetime/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'icetime/Makefile')
-rw-r--r--icetime/Makefile10
1 files changed, 8 insertions, 2 deletions
diff --git a/icetime/Makefile b/icetime/Makefile
index 7edfc6c..31f1ac5 100644
--- a/icetime/Makefile
+++ b/icetime/Makefile
@@ -6,6 +6,12 @@ all: icetime
icetime: icetime.o
+icetime.o: icetime.cc timings.inc
+
+timings.inc: timings.py
+ python3 timings.py > timings.inc.new
+ mv timings.inc.new timings.inc
+
install: all
mkdir -p $(DESTDIR)$(PREFIX)/bin
cp icetime $(DESTDIR)$(PREFIX)/bin/icetime
@@ -24,7 +30,7 @@ test0 test1 test2 test3 test4 test5 test6 test7 test8 test9: icetime
yosys $@.ys
run0 run1 run2 run3 run4 run5 run6 run7 run8 run9: icetime
- ./icetime -P tq144 -p $(subst run,test,$@).pcf $(subst run,test,$@).asc $(subst run,test,$@)_out.v
+ ./icetime -t -P tq144 -p $(subst run,test,$@).pcf $(subst run,test,$@).asc $(subst run,test,$@)_out.v
show0 show1 show2 show3 show4 show5 show6 show7 show8 show9: icetime
bash show.sh $(subst show,test,$@)
@@ -35,7 +41,7 @@ test: test0 test1 test2 test3 test4 test5 test6 test7 test8 test9
show: show0 show1 show2 show3 show4 show5 show6 show7 show8 show9
clean:
- rm -f icetime *.o *.d
+ rm -f icetime timings.inc *.o *.d
rm -rf test[0-9]*
-include *.d