mirror of https://github.com/YosysHQ/yosys.git
Update makefile to make options uniform
This commit is contained in:
parent
0f3f731254
commit
19da7f7d59
20
Makefile
20
Makefile
|
@ -17,12 +17,12 @@ ENABLE_READLINE := 1
|
|||
ENABLE_EDITLINE := 0
|
||||
ENABLE_GHDL := 0
|
||||
ENABLE_VERIFIC := 0
|
||||
ENABLE_VERIFIC_SYSTEMVERILOG := 1
|
||||
ENABLE_VERIFIC_VHDL := 1
|
||||
ENABLE_VERIFIC_HIER_TREE := 1
|
||||
ENABLE_VERIFIC_YOSYSHQ_EXTENSIONS := 1
|
||||
ENABLE_VERIFIC_EDIF := 0
|
||||
ENABLE_VERIFIC_LIBERTY := 0
|
||||
DISABLE_VERIFIC_EXTENSIONS := 0
|
||||
DISABLE_VERIFIC_SYSTEMVERILOG := 0
|
||||
DISABLE_VERIFIC_VHDL := 0
|
||||
DISABLE_VERIFIC_HIER_TREE := 0
|
||||
ENABLE_COVER := 1
|
||||
ENABLE_LIBYOSYS := 0
|
||||
ENABLE_ZLIB := 1
|
||||
|
@ -474,7 +474,7 @@ LIBS_VERIFIC =
|
|||
ifeq ($(ENABLE_VERIFIC),1)
|
||||
VERIFIC_DIR ?= /usr/local/src/verific_lib
|
||||
VERIFIC_COMPONENTS ?= database util containers
|
||||
ifneq ($(DISABLE_VERIFIC_HIER_TREE),1)
|
||||
ifeq ($(ENABLE_VERIFIC_HIER_TREE),1)
|
||||
VERIFIC_COMPONENTS += hier_tree
|
||||
CXXFLAGS += -DVERIFIC_HIER_TREE_SUPPORT
|
||||
else
|
||||
|
@ -482,7 +482,7 @@ ifneq ($(wildcard $(VERIFIC_DIR)/hier_tree),)
|
|||
VERIFIC_COMPONENTS += hier_tree
|
||||
endif
|
||||
endif
|
||||
ifneq ($(DISABLE_VERIFIC_SYSTEMVERILOG),1)
|
||||
ifeq ($(ENABLE_VERIFIC_SYSTEMVERILOG),1)
|
||||
VERIFIC_COMPONENTS += verilog
|
||||
CXXFLAGS += -DVERIFIC_SYSTEMVERILOG_SUPPORT
|
||||
else
|
||||
|
@ -490,7 +490,7 @@ ifneq ($(wildcard $(VERIFIC_DIR)/verilog),)
|
|||
VERIFIC_COMPONENTS += verilog
|
||||
endif
|
||||
endif
|
||||
ifneq ($(DISABLE_VERIFIC_VHDL),1)
|
||||
ifeq ($(ENABLE_VERIFIC_VHDL),1)
|
||||
VERIFIC_COMPONENTS += vhdl
|
||||
CXXFLAGS += -DVERIFIC_VHDL_SUPPORT
|
||||
else
|
||||
|
@ -506,9 +506,13 @@ ifeq ($(ENABLE_VERIFIC_LIBERTY),1)
|
|||
VERIFIC_COMPONENTS += synlib
|
||||
CXXFLAGS += -DVERIFIC_LIBERTY_SUPPORT
|
||||
endif
|
||||
ifneq ($(DISABLE_VERIFIC_EXTENSIONS),1)
|
||||
ifeq ($(ENABLE_VERIFIC_YOSYSHQ_EXTENSIONS),1)
|
||||
VERIFIC_COMPONENTS += extensions
|
||||
CXXFLAGS += -DYOSYSHQ_VERIFIC_EXTENSIONS
|
||||
else
|
||||
ifneq ($(wildcard $(VERIFIC_DIR)/extensions),)
|
||||
VERIFIC_COMPONENTS += extensions
|
||||
endif
|
||||
endif
|
||||
CXXFLAGS += $(patsubst %,-I$(VERIFIC_DIR)/%,$(VERIFIC_COMPONENTS)) -DYOSYS_ENABLE_VERIFIC
|
||||
ifeq ($(OS), Darwin)
|
||||
|
|
|
@ -10,7 +10,7 @@ EXTRA_TARGETS += share/verific
|
|||
share/verific:
|
||||
$(P) rm -rf share/verific.new
|
||||
$(Q) mkdir -p share/verific.new
|
||||
ifneq ($(DISABLE_VERIFIC_VHDL),1)
|
||||
ifeq ($(ENABLE_VERIFIC_VHDL),1)
|
||||
$(Q) cp -r $(VERIFIC_DIR)/vhdl_packages/vdbs_1987/. share/verific.new/vhdl_vdbs_1987
|
||||
$(Q) cp -r $(VERIFIC_DIR)/vhdl_packages/vdbs_1993/. share/verific.new/vhdl_vdbs_1993
|
||||
$(Q) cp -r $(VERIFIC_DIR)/vhdl_packages/vdbs_2008/. share/verific.new/vhdl_vdbs_2008
|
||||
|
|
Loading…
Reference in New Issue