diff options
author | obrien <obrien@FreeBSD.org> | 2011-04-05 18:41:01 +0000 |
---|---|---|
committer | obrien <obrien@FreeBSD.org> | 2011-04-05 18:41:01 +0000 |
commit | cddd21009866efd0aeb10c6a4a58b98a5c89448a (patch) | |
tree | 03c22bc05677cdacb03efd8c11ec7bed49f3df18 /lib/libedit/Makefile | |
parent | 48e4efea84a5a2658b09e918afca1f07c10e41f1 (diff) | |
parent | e667f087fdee4745b37bfe2d5a6ede045406d13b (diff) | |
download | FreeBSD-src-cddd21009866efd0aeb10c6a4a58b98a5c89448a.zip FreeBSD-src-cddd21009866efd0aeb10c6a4a58b98a5c89448a.tar.gz |
* Add the readline(3) API to libedit. The libedit versions of
{readline,history}.h are in /usr/include/edit so as to not conflict with
the GNU libreadline versions. To use the libedit readline(3) one should
add "-I/usr/include/edit" to their Makefile
(spelled "-I${DESTDIR}/${INCLUDEDIR}/edit" within the FreeBSD source tree).
* Enable its use in the BSD licensed utilities that support readline(3).
* To make it easier to sync libedit development with NetBSD, histedit.h
is moved into libedit's directory as history shows shown we keep merging
it into that location.
Obtained from: NetBSD
Sponsored by: Juniper Networks
Diffstat (limited to 'lib/libedit/Makefile')
-rw-r--r-- | lib/libedit/Makefile | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/lib/libedit/Makefile b/lib/libedit/Makefile index afcf1af..d8ae646 100644 --- a/lib/libedit/Makefile +++ b/lib/libedit/Makefile @@ -26,18 +26,23 @@ MLINKS= editline.3 el_deletestr.3 editline.3 el_end.3 editline.3 el_init.3 \ editline.3 tok_line.3 editline.3 tok_str.3 # For speed and debugging -#SRCS= ${OSRCS} tokenizer.c history.c +#SRCS= ${OSRCS} # For protection -SRCS= editline.c tokenizer.c history.c +SRCS= editline.c +SRCS+= tokenizer.c history.c readline.c SRCS+= common.h emacs.h fcns.h help.h vi.h CLEANFILES+= common.h editline.c emacs.h fcns.c fcns.h help.c help.h vi.h -CFLAGS+= -I. -I${.CURDIR} +INCS= histedit.h + +CFLAGS+= -I. -I${.CURDIR} -I${.CURDIR}/edit CFLAGS+= #-DDEBUG_TTY -DDEBUG_KEY -DDEBUG_READ -DDEBUG -DDEBUG_REFRESH CFLAGS+= #-DDEBUG_PASTE -DDEBUG_EDIT WARNS?= 1 +SUBDIR= edit/readline + AHDR= vi.h emacs.h common.h ASRC= ${.CURDIR}/vi.c ${.CURDIR}/emacs.c ${.CURDIR}/common.c |