aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorMiodrag Milanovic <mmicko@gmail.com>2019-08-22 20:43:52 +0200
committerEddie Hung <eddie@fpgeh.com>2019-08-22 11:57:46 -0700
commit7fafaa896dc16e83347ab33cc649da1f8e8033b7 (patch)
treec13ee92981d2d3e9ca54228063d6ac0fbf5ce1f9 /Makefile
parent68e673d687e18ec8e18555cda0a0d83ca2afc84d (diff)
downloadyosys-7fafaa896dc16e83347ab33cc649da1f8e8033b7.tar.gz
yosys-7fafaa896dc16e83347ab33cc649da1f8e8033b7.tar.bz2
yosys-7fafaa896dc16e83347ab33cc649da1f8e8033b7.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 89155fae8..21f1c5f46 100644
--- a/Makefile
+++ b/Makefile
@@ -90,8 +90,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)