aboutsummaryrefslogtreecommitdiff
path: root/lib/libedit/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libedit/Makefile')
-rw-r--r--lib/libedit/Makefile18
1 files changed, 13 insertions, 5 deletions
diff --git a/lib/libedit/Makefile b/lib/libedit/Makefile
index df86778c5778..8a97ce0f341b 100644
--- a/lib/libedit/Makefile
+++ b/lib/libedit/Makefile
@@ -7,11 +7,10 @@ SHLIB_MAJOR= 7
SHLIBDIR?= /lib
OSRCS= chared.c common.c el.c emacs.c fcns.c filecomplete.c help.c \
- hist.c key.c map.c \
- parse.c prompt.c read.c refresh.c search.c sig.c term.c tty.c vi.c
+ hist.c keymacro.c map.c chartype.c \
+ parse.c prompt.c read.c refresh.c search.c sig.c terminal.c tty.c vi.c
-DPADD= ${LIBNCURSESW}
-LDADD= -lncursesw
+LIBADD= ncursesw
MAN= editline.3 editrc.5
@@ -35,7 +34,10 @@ CLEANFILES+= common.h editline.c emacs.h fcns.c fcns.h help.c help.h vi.h
INCS= histedit.h
-CFLAGS+= -I. -I${.CURDIR} -I${.CURDIR}/edit
+OSRCS+= eln.c
+SRCS+= tokenizern.c historyn.c
+CLEANFILES+= tokenizern.c historyn.c
+CFLAGS+= -I. -I${.CURDIR} -I${.CURDIR}/edit -DWIDECHAR
CFLAGS+= #-DDEBUG_TTY -DDEBUG_KEY -DDEBUG_READ -DDEBUG -DDEBUG_REFRESH
CFLAGS+= #-DDEBUG_PASTE -DDEBUG_EDIT
@@ -66,6 +68,12 @@ help.h: ${ASRC} makelist
editline.c: ${OSRCS}
sh ${.CURDIR}/makelist -e ${.ALLSRC:T} > ${.TARGET}
+tokenizern.c: makelist Makefile
+ sh ${.CURDIR}/makelist -n tokenizer.c > ${.TARGET}
+
+historyn.c: makelist Makefile
+ sh ${.CURDIR}/makelist -n history.c > ${.TARGET}
+
# minimal dependency to make "make depend" optional
editline.o editline.po editline.So editline.ln: \
common.h emacs.h fcns.c fcns.h help.c help.h vi.h