aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
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 /Makefile
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 'Makefile')
-rw-r--r--Makefile5
1 files changed, 5 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 2db6612a7..11803ec0a 100644
--- a/Makefile
+++ b/Makefile
@@ -15,6 +15,7 @@ ENABLE_EDITLINE := 0
ENABLE_VERIFIC := 0
ENABLE_COVER := 1
ENABLE_LIBYOSYS := 0
+ENABLE_PROTOBUF := 0
# other configuration flags
ENABLE_GPROF := 0
@@ -325,6 +326,10 @@ CXXFLAGS += $(patsubst %,-I$(VERIFIC_DIR)/%,$(VERIFIC_COMPONENTS)) -DYOSYS_ENABL
LDLIBS += $(patsubst %,$(VERIFIC_DIR)/%/*-linux.a,$(VERIFIC_COMPONENTS)) -lz
endif
+ifeq ($(ENABLE_PROTOBUF),1)
+LDLIBS += $(shell pkg-config --cflags --libs protobuf)
+endif
+
ifeq ($(ENABLE_COVER),1)
CXXFLAGS += -DYOSYS_ENABLE_COVER
endif