1 # NETBSD's libedit (BSD replacement for GNU readline)
2 .include "../Makefile.inc"
5 SHLIB_MAJOR= 5 # NetBSD designates SHLIB_MAJOR as 3
11 CFLAGS+= -I${SRCDIR} -I${.CURDIR} -I${.OBJDIR}
18 VERSION_DEF= ${.CURDIR}/Versions.def
19 SYMBOL_MAPS= ${.CURDIR}/Symbol.map
50 SRCS+= common.h emacs.h fcns.h help.h vi.h
51 SRCS+= fcns.c help.c tokenizern.c historyn.c
55 MAN= editline.3 editrc.5
57 MLINKS= editline.3 el_init.3 \
59 editline.3 el_reset.3 \
60 editline.3 el_gets.3 \
61 editline.3 el_getc.3 \
62 editline.3 el_push.3 \
63 editline.3 el_parse.3 \
66 editline.3 el_source.3 \
67 editline.3 el_resize.3 \
68 editline.3 el_line.3 \
69 editline.3 el_insertstr.3 \
70 editline.3 el_deletestr.3 \
71 editline.3 history_init.3 \
72 editline.3 history_end.3 \
73 editline.3 history.3 \
74 editline.3 tok_init.3 \
75 editline.3 tok_end.3 \
76 editline.3 tok_reset.3 \
77 editline.3 tok_line.3 \
80 MLINKS+= editline.3 el_wgets.3 \
81 editline.3 el_wgetc.3 \
82 editline.3 el_wpush.3 \
83 editline.3 el_wparse.3 \
84 editline.3 el_wset.3 \
85 editline.3 el_wget.3 \
86 editline.3 el_wline.3 \
87 editline.3 el_winsertstr.3 \
88 editline.3 el_wdeletestr.3 \
89 editline.3 history_winit.3 \
90 editline.3 history_wend.3 \
91 editline.3 history_w.3 \
92 editline.3 tok_winit.3 \
93 editline.3 tok_wend.3 \
94 editline.3 tok_wreset.3 \
95 editline.3 tok_wline.3 \
98 CLEANFILES+= common.h emacs.h fcns.c fcns.h help.c help.h vi.h editline.c
99 AHDR= vi.h emacs.h common.h
100 ASRC= ${SRCDIR}/vi.c ${SRCDIR}/emacs.c ${SRCDIR}/common.c
103 AWK=awk sh ${SRCDIR}/makelist -h ${SRCDIR}/vi.c > ${.TARGET}
106 AWK=awk sh ${SRCDIR}/makelist -h ${SRCDIR}/emacs.c > ${.TARGET}
109 AWK=awk sh ${SRCDIR}/makelist -h ${SRCDIR}/common.c > ${.TARGET}
112 AWK=awk sh ${SRCDIR}/makelist -fh ${AHDR} > ${.TARGET}
115 AWK=awk sh ${SRCDIR}/makelist -bh ${ASRC} > ${.TARGET}
118 AWK=awk sh ${SRCDIR}/makelist -fc ${AHDR} > ${.TARGET}
121 AWK=awk sh ${SRCDIR}/makelist -bc ${ASRC} > ${.TARGET}
123 tokenizern.c: tokenizer.c
124 AWK=awk sh ${SRCDIR}/makelist -n ${.ALLSRC} > ${.TARGET}
126 historyn.c: history.c
127 AWK=awk sh ${SRCDIR}/makelist -n ${.ALLSRC} > ${.TARGET}
129 .include <bsd.lib.mk>