mirror of
https://github.com/YosysHQ/yosys
synced 2026-05-25 11:26:22 +00:00
21 lines
638 B
Makefile
21 lines
638 B
Makefile
include ../../../common.mk
|
|
|
|
.PHONY: all dots examples
|
|
all: dots examples
|
|
dots:
|
|
examples:
|
|
|
|
.PHONY: test
|
|
test: stubnets.so
|
|
@$(YOSYS) -ql test1.log -m ./stubnets.so test.v -p "stubnets" >/dev/null 2>&1
|
|
@$(YOSYS) -ql test2.log -m ./stubnets.so test.v -p "opt; stubnets" >/dev/null 2>&1
|
|
@$(YOSYS) -ql test3.log -m ./stubnets.so test.v -p "techmap; opt; stubnets -report_bits" >/dev/null 2>&1
|
|
@tail test1.log test2.log test3.log
|
|
|
|
stubnets.so: stubnets.cc
|
|
@$(YOSYS)-config --exec --cxx --cxxflags --ldflags -o $@ -shared $^ --ldlibs >/dev/null 2>&1
|
|
|
|
.PHONY: clean
|
|
clean:
|
|
@rm -f test1.log test2.log test3.log
|
|
@rm -f stubnets.so stubnets.d
|