blob: f6974c1199e8dd7e13c243802674260234871caf [file] [log] [blame]
# CLI engine
#
MOD_NAME = cli
MOD_TYPE = lib
MOD_DEPS = utils
srcs = bcmcli_session.c
ifeq ("$(ENABLE_CLI)", "y")
srcs += bcmcli.c
MOD_DEFS = -DENABLE_CLI
# Enable line editing by default. Can be overwritten in make command line
CONFIG_LIBEDIT ?= n
CONFIG_LINENOISE ?= y
# Extra configuration
ifeq ("$(CONFIG_LIBEDIT)", "y")
MOD_DEFS += -DCONFIG_LIBEDIT -DCONFIG_EDITLINE
MOD_LIBS += -ledit -ltermcap
CONFIG_LINENOISE = n
endif
ifeq ("$(CONFIG_LINENOISE)", "y")
MOD_DEPS += linenoise
endif
endif