2014-06-22 05:50:29 -05:00
|
|
|
|
|
|
|
all: test0.log test1.log test2.log
|
|
|
|
|
2020-05-30 04:21:40 -05:00
|
|
|
CXXFLAGS=$(shell ../../yosys-config --cxxflags)
|
|
|
|
DATDIR=$(shell ../../yosys-config --datdir)
|
|
|
|
|
2014-06-22 05:50:29 -05:00
|
|
|
my_cmd.so: my_cmd.cc
|
2020-05-30 04:21:40 -05:00
|
|
|
../../yosys-config --exec --cxx $(subst $(DATDIR),../../share,$(CXXFLAGS)) --ldflags -o my_cmd.so -shared my_cmd.cc --ldlibs
|
2014-06-22 05:50:29 -05:00
|
|
|
|
|
|
|
test0.log: my_cmd.so
|
2014-07-31 07:11:39 -05:00
|
|
|
../../yosys -Ql test0.log_new -m ./my_cmd.so -p 'my_cmd foo bar' absval_ref.v
|
2014-06-22 05:50:29 -05:00
|
|
|
mv test0.log_new test0.log
|
|
|
|
|
|
|
|
test1.log: my_cmd.so
|
2014-07-31 07:11:39 -05:00
|
|
|
../../yosys -Ql test1.log_new -m ./my_cmd.so -p 'clean; test1; dump' absval_ref.v
|
2014-06-22 05:50:29 -05:00
|
|
|
mv test1.log_new test1.log
|
|
|
|
|
|
|
|
test2.log: my_cmd.so
|
2014-07-31 07:11:39 -05:00
|
|
|
../../yosys -Ql test2.log_new -m ./my_cmd.so -p 'test2' sigmap_test.v
|
2014-06-22 05:50:29 -05:00
|
|
|
mv test2.log_new test2.log
|
|
|
|
|