1
0
mirror of synced 2026-05-23 21:51:52 +00:00
Files
YosysHQ.yosys/docs/source/code_examples/stubnets/Makefile
Catherine 5f1d2297aa Migrate build system to CMake
See #5895 for details.

This commit does not include CI or documentation changes.
2026-05-19 14:37:53 +00:00

24 lines
603 B
Makefile

PROGRAM_PREFIX :=
YOSYS ?= ../../../../$(PROGRAM_PREFIX)yosys
.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"
$(YOSYS) -ql test2.log -m ./stubnets.so test.v -p "opt; stubnets"
$(YOSYS) -ql test3.log -m ./stubnets.so test.v -p "techmap; opt; stubnets -report_bits"
tail test1.log test2.log test3.log
stubnets.so: stubnets.cc
$(YOSYS)-config --exec --cxx --cxxflags --ldflags -o $@ -shared $^ --ldlibs
.PHONY: clean
clean:
rm -f test1.log test2.log test3.log
rm -f stubnets.so stubnets.d