aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorBenedikt Tutzer <e1225461@student.tuwien.ac.at>2018-06-22 11:15:03 +0200
committerBenedikt Tutzer <e1225461@student.tuwien.ac.at>2018-06-22 11:15:03 +0200
commit4d4117c998db8f58a436ec9ea9c930bce85febef (patch)
treec2e514a93cc530c60e652675728fda27f034be04 /Makefile
parentd412b17259ad7c2003dc14ec452a2a0a6fc3ba91 (diff)
downloadyosys-4d4117c998db8f58a436ec9ea9c930bce85febef.tar.gz
yosys-4d4117c998db8f58a436ec9ea9c930bce85febef.tar.bz2
yosys-4d4117c998db8f58a436ec9ea9c930bce85febef.zip
added ENABLE_PYTHON option in build environment
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile11
1 files changed, 10 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 11803ec0a..e8fcf933b 100644
--- a/Makefile
+++ b/Makefile
@@ -14,9 +14,13 @@ ENABLE_READLINE := 1
ENABLE_EDITLINE := 0
ENABLE_VERIFIC := 0
ENABLE_COVER := 1
-ENABLE_LIBYOSYS := 0
+ENABLE_LIBYOSYS := 1
ENABLE_PROTOBUF := 0
+# python wrappers
+ENABLE_PYTHON := 1
+PYTHON_VERSION := 3.5
+
# other configuration flags
ENABLE_GPROF := 0
ENABLE_DEBUG := 0
@@ -228,6 +232,11 @@ ifeq ($(ENABLE_LIBYOSYS),1)
TARGETS += libyosys.so
endif
+ifeq ($(ENABLE_PYTHON),1)
+LDLIBS += -lpython$(PYTHON_VERSION)m -lboost_python-py$(subst .,,$(PYTHON_VERSION)) -lboost_system
+CXXFLAGS += -I/usr/include/python$(PYTHON_VERSION) -fPIC -D WITH_PYTHON
+endif
+
ifeq ($(ENABLE_READLINE),1)
CXXFLAGS += -DYOSYS_ENABLE_READLINE
ifeq ($(OS), FreeBSD)