aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorClifford Wolf <clifford@clifford.at>2018-11-09 13:02:49 +0100
committerGitHub <noreply@github.com>2018-11-09 13:02:49 +0100
commit43ee1f3f62a96d9b5a1a909d18c418af39ca520a (patch)
tree7cb5609672f71a1d6195abfcf6345d5c893c14b6 /Makefile
parent05d2e5d773cff71b668d7bb96a509ece835ebf6a (diff)
parent4e846694f76d48f77b44a109d8ed478c8071ebd6 (diff)
downloadyosys-43ee1f3f62a96d9b5a1a909d18c418af39ca520a.tar.gz
yosys-43ee1f3f62a96d9b5a1a909d18c418af39ca520a.tar.bz2
yosys-43ee1f3f62a96d9b5a1a909d18c418af39ca520a.zip
Merge pull request #696 from arjenroodselaar/verific_darwin
Use appropriate static libraries when building with Verific on MacOS
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile4
1 files changed, 4 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 290a3a50b..4b39e9c8b 100644
--- a/Makefile
+++ b/Makefile
@@ -359,8 +359,12 @@ ifeq ($(ENABLE_VERIFIC),1)
VERIFIC_DIR ?= /usr/local/src/verific_lib_eval
VERIFIC_COMPONENTS ?= verilog vhdl database util containers sdf hier_tree
CXXFLAGS += $(patsubst %,-I$(VERIFIC_DIR)/%,$(VERIFIC_COMPONENTS)) -DYOSYS_ENABLE_VERIFIC
+ifeq ($(OS), Darwin)
+LDLIBS += $(patsubst %,$(VERIFIC_DIR)/%/*-mac.a,$(VERIFIC_COMPONENTS)) -lz
+else
LDLIBS += $(patsubst %,$(VERIFIC_DIR)/%/*-linux.a,$(VERIFIC_COMPONENTS)) -lz
endif
+endif
ifeq ($(ENABLE_PROTOBUF),1)
LDLIBS += $(shell pkg-config --cflags --libs protobuf)