blob: 4c11f0378210f9349d6ab7af35503e9ceb900991 [file] [log] [blame]
# linenoise - simple line editing library
# should work on any VT-100-compatible terminal
MOD_NAME = linenoise
MOD_TYPE = lib
MOD_DEFS = -DCONFIG_LINENOISE -DCONFIG_EDITLINE
srcs = linenoise.c
# The following defines should be set for OS that doesn't have support for tty and/or file IO
LINENOISE_DISABLE_IOCTL ?= n
LINENOISE_DISABLE_TERMIOS ?= n
LINENOISE_DISABLE_HIST_SAVE ?= n
ifeq ("$(LINENOISE_DISABLE_IOCTL)", "y")
EXTRA_DEFINES += -DLINENOISE_DISABLE_IOCTL
endif
ifeq ("$(LINENOISE_DISABLE_TERMIOS)", "y")
EXTRA_DEFINES += -DLINENOISE_DISABLE_TERMIOS
endif
ifeq ("$(LINENOISE_DISABLE_HIST_SAVE)", "y")
EXTRA_DEFINES += -DLINENOISE_DISABLE_HIST_SAVE
endif