aboutsummaryrefslogtreecommitdiffstats
path: root/backends/protobuf/Makefile.inc
diff options
context:
space:
mode:
authorClifford Wolf <clifford@clifford.at>2018-06-19 15:02:04 +0200
committerGitHub <noreply@github.com>2018-06-19 15:02:04 +0200
commit626b555244f2156e5bc277195938ef5e24a525cf (patch)
tree7207e5a1ad9ce95a4565f639dd5e22093be6b14c /backends/protobuf/Makefile.inc
parent675a44b41a2df2c02ceccda2434bc3efac3e5e2f (diff)
parent53e9a1549c503492820b3672331950fd0a580ef0 (diff)
downloadyosys-626b555244f2156e5bc277195938ef5e24a525cf.tar.gz
yosys-626b555244f2156e5bc277195938ef5e24a525cf.tar.bz2
yosys-626b555244f2156e5bc277195938ef5e24a525cf.zip
Merge pull request #571 from q3k/q3k/protobuf-backend
Add Protobuf backend
Diffstat (limited to 'backends/protobuf/Makefile.inc')
-rw-r--r--backends/protobuf/Makefile.inc8
1 files changed, 8 insertions, 0 deletions
diff --git a/backends/protobuf/Makefile.inc b/backends/protobuf/Makefile.inc
new file mode 100644
index 000000000..a6e3c5ab7
--- /dev/null
+++ b/backends/protobuf/Makefile.inc
@@ -0,0 +1,8 @@
+ifeq ($(ENABLE_PROTOBUF),1)
+
+backends/protobuf/yosys.pb.cc backends/protobuf/yosys.pb.h: share/yosys.proto
+ $(Q) cd misc && protoc --cpp_out "../backends/protobuf" yosys.proto
+
+OBJS += backends/protobuf/protobuf.o backends/protobuf/yosys.pb.o
+
+endif