mirror of
https://github.com/YosysHQ/yosys
synced 2025-06-10 16:13:26 +00:00
Merge pull request #274 from oldtopman/lcurses
Added optional flag for linking curses with readline.
This commit is contained in:
commit
73653de5ff
1 changed files with 5 additions and 0 deletions
5
Makefile
5
Makefile
|
@ -18,6 +18,7 @@ ENABLE_LIBYOSYS := 0
|
||||||
# other configuration flags
|
# other configuration flags
|
||||||
ENABLE_GPROF := 0
|
ENABLE_GPROF := 0
|
||||||
ENABLE_NDEBUG := 0
|
ENABLE_NDEBUG := 0
|
||||||
|
LINK_CURSES := 0
|
||||||
|
|
||||||
# clang sanitizers
|
# clang sanitizers
|
||||||
SANITIZER =
|
SANITIZER =
|
||||||
|
@ -196,6 +197,10 @@ endif
|
||||||
ifeq ($(ENABLE_READLINE),1)
|
ifeq ($(ENABLE_READLINE),1)
|
||||||
CXXFLAGS += -DYOSYS_ENABLE_READLINE
|
CXXFLAGS += -DYOSYS_ENABLE_READLINE
|
||||||
LDLIBS += -lreadline
|
LDLIBS += -lreadline
|
||||||
|
ifeq ($(LINK_CURSES),1)
|
||||||
|
LDLIBS += -lcurses
|
||||||
|
ABCMKARGS += "ABC_READLINE_LIBRARIES=-lcurses -lreadline"
|
||||||
|
endif
|
||||||
ifeq ($(CONFIG),mxe)
|
ifeq ($(CONFIG),mxe)
|
||||||
LDLIBS += -lpdcurses
|
LDLIBS += -lpdcurses
|
||||||
endif
|
endif
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue