1# NETBSD's libedit (BSD replacement for GNU readline) 2.include "../Makefile.inc" 3 4LIB= edit 5SHLIB_MAJOR= 5 # NetBSD designates SHLIB_MAJOR as 3 6 7SRCDIR= ${BASEDIR}/src 8.PATH: ${SRCDIR} 9 10CFLAGS+= -I${SRCDIR} -I${.CURDIR} -I${.OBJDIR} 11 12DPADD= ${LIBNCURSES} 13LDADD= -lncurses 14 15WARNS?= 2 16 17.if defined(RELEASE36) 18SHLIB_MAJOR= 6 19VERSION_DEF= ${.CURDIR}/Versions.def 20SYMBOL_MAPS= ${.CURDIR}/Symbol.map 21.endif 22 23SRCS+= chared.c \ 24 common.c \ 25 el.c \ 26 hist.c \ 27 emacs.c \ 28 keymacro.c \ 29 map.c \ 30 chartype.c \ 31 parse.c \ 32 prompt.c \ 33 read.c \ 34 refresh.c \ 35 search.c \ 36 sig.c \ 37 terminal.c \ 38 tty.c \ 39 vi.c \ 40 fgetln.c \ 41 strlcat.c \ 42 strlcpy.c \ 43 unvis.c \ 44 vis.c \ 45 wcsdup.c \ 46 tokenizer.c \ 47 history.c \ 48 filecomplete.c \ 49 readline.c \ 50 eln.c 51 52SRCS+= common.h emacs.h fcns.h help.h vi.h 53SRCS+= fcns.c help.c tokenizern.c historyn.c 54 55MAN= editline.3 editrc.5 56 57MLINKS= editline.3 el_init.3 \ 58 editline.3 el_end.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 \ 64 editline.3 el_set.3 \ 65 editline.3 el_get.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 \ 78 editline.3 tok_str.3 79 80MLINKS+= 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 \ 96 editline.3 tok_wstr.3 97 98CLEANFILES+= common.h emacs.h fcns.c fcns.h help.c help.h vi.h editline.c 99AHDR= vi.h emacs.h common.h 100ASRC= ${SRCDIR}/vi.c ${SRCDIR}/emacs.c ${SRCDIR}/common.c 101 102vi.h: 103 AWK=awk sh ${SRCDIR}/makelist -h ${SRCDIR}/vi.c > ${.TARGET} 104 105emacs.h: 106 AWK=awk sh ${SRCDIR}/makelist -h ${SRCDIR}/emacs.c > ${.TARGET} 107 108common.h: 109 AWK=awk sh ${SRCDIR}/makelist -h ${SRCDIR}/common.c > ${.TARGET} 110 111fcns.h: ${AHDR} 112 AWK=awk sh ${SRCDIR}/makelist -fh ${AHDR} > ${.TARGET} 113 114help.h: 115 AWK=awk sh ${SRCDIR}/makelist -bh ${ASRC} > ${.TARGET} 116 117fcns.c: ${AHDR} 118 AWK=awk sh ${SRCDIR}/makelist -fc ${AHDR} > ${.TARGET} 119 120help.c: ${ASRC} 121 AWK=awk sh ${SRCDIR}/makelist -bc ${ASRC} > ${.TARGET} 122 123tokenizern.c: tokenizer.c 124 AWK=awk sh ${SRCDIR}/makelist -n ${.ALLSRC} > ${.TARGET} 125 126historyn.c: history.c 127 AWK=awk sh ${SRCDIR}/makelist -n ${.ALLSRC} > ${.TARGET} 128 129.include <bsd.lib.mk> 130