1 PLUGIN_DIR
=$(shell yosys-config
--datdir
)/plugins
5 test: example
/example.sv example
/example.ys nangate.so
6 yosys example
/example.ys
11 nangate.so
: nangate.
cc erase_b2f_pm.h dff_nan_pm.h share_nan_pm.h
12 yosys-config
--build
$@
$<
14 install: nangate.so techlib.sv
15 mkdir
-p
$(PLUGIN_DIR
)/nangate
/
16 cp nangate.so
$(PLUGIN_DIR
)
17 cp techlib.sv
$(PLUGIN_DIR
)/nangate
/
20 rm -rf
-- *.d
*.so
*.so.dSYM
*_pm.h