aboutsummaryrefslogtreecommitdiffstats
path: root/manual/PRESENTATION_Prog/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'manual/PRESENTATION_Prog/Makefile')
-rw-r--r--manual/PRESENTATION_Prog/Makefile18
1 files changed, 18 insertions, 0 deletions
diff --git a/manual/PRESENTATION_Prog/Makefile b/manual/PRESENTATION_Prog/Makefile
new file mode 100644
index 000000000..8da6bcd63
--- /dev/null
+++ b/manual/PRESENTATION_Prog/Makefile
@@ -0,0 +1,18 @@
+
+all: test0.log test1.log test2.log
+
+my_cmd.so: my_cmd.cc
+ ../../yosys-config --exec --cxx --cxxflags --ldflags -o my_cmd.so -shared my_cmd.cc --ldlibs
+
+test0.log: my_cmd.so
+ ../../yosys -l test0.log_new -m ./my_cmd.so -p 'my_cmd foo bar' absval_ref.v
+ mv test0.log_new test0.log
+
+test1.log: my_cmd.so
+ ../../yosys -l test1.log_new -m ./my_cmd.so -p 'clean; test1; dump' absval_ref.v
+ mv test1.log_new test1.log
+
+test2.log: my_cmd.so
+ ../../yosys -l test2.log_new -m ./my_cmd.so -p 'test2' sigmap_test.v
+ mv test2.log_new test2.log
+