1 # NETBSD's libedit (BSD replacement for GNU readline)
2 .include "../Makefile.inc"
5 SHLIB_MAJOR= 5 # NetBSD designates SHLIB_MAJOR as 3
10 CFLAGS+= -I${SRCDIR} -I${.CURDIR} -I${.OBJDIR}
45 SRCS+= common.h emacs.h fcns.h help.h vi.h
48 MAN= editline.3 editrc.5
50 MLINKS= editline.3 el_init.3 \
52 editline.3 el_reset.3 \
53 editline.3 el_gets.3 \
54 editline.3 el_getc.3 \
55 editline.3 el_push.3 \
56 editline.3 el_parse.3 \
59 editline.3 el_source.3 \
60 editline.3 el_resize.3 \
61 editline.3 el_line.3 \
62 editline.3 el_insertstr.3 \
63 editline.3 el_deletestr.3 \
64 editline.3 history_init.3 \
65 editline.3 history_end.3 \
66 editline.3 history.3 \
67 editline.3 tok_init.3 \
68 editline.3 tok_end.3 \
69 editline.3 tok_reset.3 \
70 editline.3 tok_line.3 \
71 editline.3 tok_str.3 \
73 CLEANFILES+= common.h emacs.h fcns.c fcns.h help.c help.h vi.h editline.c
74 AHDR= vi.h emacs.h common.h
75 ASRC= ${SRCDIR}/vi.c ${SRCDIR}/emacs.c ${SRCDIR}/common.c
78 AWK=awk sh ${SRCDIR}/makelist -h ${SRCDIR}/vi.c > ${.TARGET}
81 AWK=awk sh ${SRCDIR}/makelist -h ${SRCDIR}/emacs.c > ${.TARGET}
84 AWK=awk sh ${SRCDIR}/makelist -h ${SRCDIR}/common.c > ${.TARGET}
87 AWK=awk sh ${SRCDIR}/makelist -fh ${AHDR} > ${.TARGET}
90 AWK=awk sh ${SRCDIR}/makelist -bh ${ASRC} > ${.TARGET}
93 AWK=awk sh ${SRCDIR}/makelist -fc ${AHDR} > ${.TARGET}
96 AWK=awk sh ${SRCDIR}/makelist -bc ${ASRC} > ${.TARGET}