aboutsummaryrefslogtreecommitdiff
path: root/lib/libedit/Makefile
diff options
context:
space:
mode:
authorMike Smith <msmith@FreeBSD.org>1997-06-25 08:14:24 +0000
committerMike Smith <msmith@FreeBSD.org>1997-06-25 08:14:24 +0000
commitbd5176cb385550bc8bb4232c161461a65e01cd2a (patch)
tree08bd8954bc4eff60db9bbe355be2552a864a8dc8 /lib/libedit/Makefile
parent4ce2d5b5b5d9e52ad9764b19377886701920739f (diff)
downloadsrc-bd5176cb385550bc8bb4232c161461a65e01cd2a.tar.gz
src-bd5176cb385550bc8bb4232c161461a65e01cd2a.zip
Update libedit with changes from NetBSD. Includes history load/save,
some buffer overflow guards and some stylistic cleanups. Also adds manpages. Obtained from: NetBSD
Notes
Notes: svn path=/head/; revision=26926
Diffstat (limited to 'lib/libedit/Makefile')
-rw-r--r--lib/libedit/Makefile25
1 files changed, 20 insertions, 5 deletions
diff --git a/lib/libedit/Makefile b/lib/libedit/Makefile
index 5284c2135ce6..cbe5e1fc53fd 100644
--- a/lib/libedit/Makefile
+++ b/lib/libedit/Makefile
@@ -2,19 +2,31 @@
LIB= edit
-OSRCS= chared.c common.c el.c emacs.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 \
- help.c fcns.c help.h
+OSRCS= chared.c common.c el.c emacs.c fcns.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
LDADD+= -ltermcap
DPADD+= ${LIBTERMCAP}
+MAN3= editline.3 editrc.5
+
+MLINKS= editline.3 el_init.3 editline.3 el_end.3 editline.3 el_reset.3 \
+ editline.3 el_gets.3 editline.3 el_getc.3 editline.3 el_push.3 \
+ editline.3 el_parse.3 editline.3 el_set.3 editline.3 el_source.3 \
+ editline.3 el_resize.3 editline.3 el_line.3 \
+ editline.3 el_insertstr.3 editline.3 el_deletestr.3 \
+ editline.3 history_init.3 editline.3 history_end.3 editline.3 history.3
+
+
# For speed and debugging
#SRCS= ${OSRCS} tokenizer.c history.c
# For protection
SRCS= editline.c tokenizer.c history.c
-CLEANFILES+=common.h emacs.h fcns.h help.h vi.h help.c fcns.c editline.c
+SRCS+= common.h emacs.h fcns.h help.h vi.h
+HEADERS=histedit.h
+
+CLEANFILES+=common.h editline.c emacs.h fcns.c fcns.h help.c help.h vi.h
CFLAGS+=-I. -I${.CURDIR}
CFLAGS+=#-DDEBUG_TTY -DDEBUG_KEY -DDEBUG_READ -DDEBUG -DDEBUG_REFRESH
CFLAGS+=#-DDEBUG_PASTE
@@ -48,8 +60,11 @@ editline.c: ${OSRCS}
.depend: vi.h emacs.h common.h fcns.h help.h help.c
-
test: test.o libedit.a ${DPADD} ${LIBTERMCAP}
${CC} ${CFLAGS} ${.ALLSRC} -o ${.TARGET} libedit.a ${LDADD}
+beforeinstall:
+ ${INSTALL} -C -o ${BINOWN} -g ${BINGRP} -m 444 \
+ ${.CURDIR}/histedit.h ${DESTDIR}/usr/include
+
.include <bsd.lib.mk>