libedit: No need of the bundled fgetln, vis and wcsdup
[dragonfly.git] / lib / libedit / libedit / Makefile
1 # NETBSD's libedit (BSD replacement for GNU readline)
2 .include        "../Makefile.inc"
3
4 LIB=            private_edit
5 SHLIB_MAJOR=    5
6 SHLIBDIR?=      /lib
7 PRIVATELIB=
8
9 SRCDIR=         ${BASEDIR}/src
10 .PATH:          ${SRCDIR}
11
12 CFLAGS+=        -I${SRCDIR} -I${.CURDIR} -I${.OBJDIR}
13 CFLAGS+=        -I${_SHLIBDIRPREFIX}/usr/include/priv/ncurses
14
15 DPADD=          ${LIBNCURSES}
16 LDADD=          -lprivate_ncurses
17 LDFLAGS+=       ${PRIVATELIB_LDFLAGS}
18
19 WARNS?=         2
20
21 VERSION_DEF=    ${.CURDIR}/Versions.def
22 SYMBOL_MAPS=    ${.CURDIR}/Symbol.map
23
24 SRCS+=          chared.c \
25                 common.c \
26                 el.c \
27                 hist.c \
28                 emacs.c \
29                 keymacro.c \
30                 map.c \
31                 chartype.c \
32                 parse.c \
33                 prompt.c \
34                 read.c \
35                 refresh.c \
36                 search.c \
37                 sig.c \
38                 terminal.c \
39                 tty.c \
40                 vi.c \
41                 tokenizer.c \
42                 history.c \
43                 filecomplete.c \
44                 readline.c \
45                 eln.c
46
47 SRCS+=          common.h emacs.h fcns.h help.h vi.h
48 SRCS+=          fcns.c help.c tokenizern.c historyn.c
49
50 INCS=           histedit.h
51
52 MAN=            editrc.5
53
54 CLEANFILES+=    common.h emacs.h fcns.c fcns.h help.c help.h
55 CLEANFILES+=    historyn.c tokenizern.c vi.h
56 AHDR=           vi.h emacs.h common.h
57 ASRC=           ${SRCDIR}/vi.c ${SRCDIR}/emacs.c ${SRCDIR}/common.c
58
59 vi.h:
60         AWK=awk sh ${SRCDIR}/makelist -h ${SRCDIR}/vi.c > ${.TARGET}
61
62 emacs.h:
63         AWK=awk sh ${SRCDIR}/makelist -h ${SRCDIR}/emacs.c > ${.TARGET}
64
65 common.h:
66         AWK=awk sh ${SRCDIR}/makelist -h ${SRCDIR}/common.c > ${.TARGET}
67
68 fcns.h: ${AHDR}
69         AWK=awk sh ${SRCDIR}/makelist -fh ${AHDR} > ${.TARGET}
70
71 help.h:
72         AWK=awk sh ${SRCDIR}/makelist -bh ${ASRC} > ${.TARGET}
73
74 fcns.c: ${AHDR}
75         AWK=awk sh ${SRCDIR}/makelist -fc ${AHDR} > ${.TARGET}
76
77 help.c: ${ASRC}
78         AWK=awk sh ${SRCDIR}/makelist -bc ${ASRC} > ${.TARGET}
79
80 tokenizern.c: tokenizer.c
81         AWK=awk sh ${SRCDIR}/makelist -n ${.ALLSRC} > ${.TARGET}
82
83 historyn.c: history.c
84         AWK=awk sh ${SRCDIR}/makelist -n ${.ALLSRC} > ${.TARGET}
85
86 .include <bsd.lib.mk>