aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorMiodrag Milanovic <mmicko@gmail.com>2019-08-22 20:43:52 +0200
committerMiodrag Milanovic <mmicko@gmail.com>2019-08-22 20:43:52 +0200
commite5dac8096d92f526476f2d0b02def2298e6f5bbf (patch)
tree23831345cff5d71aa634ea38b5ff33a7e81ec8e8 /Makefile
parent926cd10350669a4d955a4be456bcdaea3144da7c (diff)
downloadyosys-e5dac8096d92f526476f2d0b02def2298e6f5bbf.tar.gz
yosys-e5dac8096d92f526476f2d0b02def2298e6f5bbf.tar.bz2
yosys-e5dac8096d92f526476f2d0b02def2298e6f5bbf.zip
do not require boost if pyosys is not used
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile2
1 files changed, 2 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 666223076..a742f2e50 100644
--- a/Makefile
+++ b/Makefile
@@ -91,8 +91,10 @@ PLUGIN_LDFLAGS += -undefined dynamic_lookup
ifneq ($(shell which brew),)
BREW_PREFIX := $(shell brew --prefix)/opt
$(info $$BREW_PREFIX is [${BREW_PREFIX}])
+ifeq ($(ENABLE_PYOSYS),1)
CXXFLAGS += -I$(BREW_PREFIX)/boost/include/boost
LDFLAGS += -L$(BREW_PREFIX)/boost/lib
+endif
CXXFLAGS += -I$(BREW_PREFIX)/readline/include
LDFLAGS += -L$(BREW_PREFIX)/readline/lib
PKG_CONFIG_PATH := $(BREW_PREFIX)/libffi/lib/pkgconfig:$(PKG_CONFIG_PATH)