diff options
author | whitequark <whitequark@whitequark.org> | 2020-12-29 02:58:41 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-12-29 02:58:41 +0000 |
commit | e609bc48985c07cdf8d6e4c51a08ea21c6058c34 (patch) | |
tree | 2f23ebb4e8adf7abecafb031f929a4a470786d88 /Makefile | |
parent | 0347b441a1ea574977f347b59895b7374da9d028 (diff) | |
parent | a652430c711b831423bfd2a2c0c20caa2fc333c8 (diff) | |
download | yosys-e609bc48985c07cdf8d6e4c51a08ea21c6058c34.tar.gz yosys-e609bc48985c07cdf8d6e4c51a08ea21c6058c34.tar.bz2 yosys-e609bc48985c07cdf8d6e4c51a08ea21c6058c34.zip |
Merge pull request #2514 from umarcor/feat/ghdl
makefile: add support for built-in ghdl-yosys-plugin
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -16,6 +16,7 @@ ENABLE_GLOB := 1 ENABLE_PLUGINS := 1 ENABLE_READLINE := 1 ENABLE_EDITLINE := 0 +ENABLE_GHDL := 0 ENABLE_VERIFIC := 0 ENABLE_COVER := 1 ENABLE_LIBYOSYS := 0 @@ -511,6 +512,14 @@ endif endif endif +ifeq ($(ENABLE_GHDL),1) +GHDL_PREFIX ?= $(PREFIX) +GHDL_INCLUDE_DIR ?= $(GHDL_DIR)/include +GHDL_LIB_DIR ?= $(GHDL_DIR)/lib +CXXFLAGS += -I$(GHDL_INCLUDE_DIR) -DYOSYS_ENABLE_GHDL +LDLIBS += $(GHDL_LIB_DIR)/libghdl.a $(file <$(GHDL_LIB_DIR)/libghdl.link) +endif + ifeq ($(ENABLE_VERIFIC),1) VERIFIC_DIR ?= /usr/local/src/verific_lib VERIFIC_COMPONENTS ?= verilog vhdl database util containers hier_tree |