]> Witch of Git - nan-gate/blob - Makefile
Change install directory
[nan-gate] / Makefile
1 PLUGIN_DIR=$(shell yosys-config --datdir)/plugins
2
3 all: test
4
5 test: example/example.sv example/example.ys nangate.so
6 yosys example/example.ys
7
8 %_pm.h: %.pmg
9 pmgen $< $@
10
11 nangate.so: nangate.cc erase_b2f_pm.h dff_nan_pm.h share_nan_pm.h
12 yosys-config --build $@ $<
13
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/
18
19 clean:
20 rm -rf -- *.d *.so *.so.dSYM *_pm.h