library versioning: Activate versioning on 7 libraries
[dragonfly.git] / lib / libedit / libedit / Makefile
1 # NETBSD's libedit (BSD replacement for GNU readline)
2 .include        "../Makefile.inc"
3
4 LIB=            edit
5 SHLIB_MAJOR=    5               # NetBSD designates SHLIB_MAJOR as 3
6 SHLIBDIR?=      /lib
7
8 SRCDIR=         ${BASEDIR}/src
9 .PATH:          ${SRCDIR}
10
11 CFLAGS+=        -I${SRCDIR} -I${.CURDIR} -I${.OBJDIR}
12
13 DPADD=          ${LIBNCURSES}
14 LDADD=          -lncurses
15
16 WARNS?=         2
17
18 VERSION_DEF=    ${.CURDIR}/Versions.def
19 SYMBOL_MAPS=    ${.CURDIR}/Symbol.map
20
21 SRCS+=          chared.c \
22                 common.c \
23                 el.c \
24                 hist.c \
25                 emacs.c \
26                 keymacro.c \
27                 map.c \
28                 chartype.c \
29                 parse.c \
30                 prompt.c \
31                 read.c \
32                 refresh.c \
33                 search.c \
34                 sig.c \
35                 terminal.c \
36                 tty.c \
37                 vi.c \
38                 fgetln.c \
39                 strlcat.c \
40                 strlcpy.c \
41                 unvis.c \
42                 vis.c \
43                 wcsdup.c \
44                 tokenizer.c \
45                 history.c \
46                 filecomplete.c \
47                 readline.c \
48                 eln.c
49
50 SRCS+=          common.h emacs.h fcns.h help.h vi.h
51 SRCS+=          fcns.c help.c tokenizern.c historyn.c
52
53 MAN=            editline.3 editrc.5
54
55 MLINKS=         editline.3 el_init.3 \
56                 editline.3 el_end.3 \
57                 editline.3 el_reset.3 \
58                 editline.3 el_gets.3 \
59                 editline.3 el_getc.3 \
60                 editline.3 el_push.3 \
61                 editline.3 el_parse.3 \
62                 editline.3 el_set.3 \
63                 editline.3 el_get.3 \
64                 editline.3 el_source.3 \
65                 editline.3 el_resize.3 \
66                 editline.3 el_line.3 \
67                 editline.3 el_insertstr.3 \
68                 editline.3 el_deletestr.3 \
69                 editline.3 history_init.3 \
70                 editline.3 history_end.3 \
71                 editline.3 history.3 \
72                 editline.3 tok_init.3 \
73                 editline.3 tok_end.3 \
74                 editline.3 tok_reset.3 \
75                 editline.3 tok_line.3 \
76                 editline.3 tok_str.3
77
78 MLINKS+=        editline.3 el_wgets.3 \
79                 editline.3 el_wgetc.3 \
80                 editline.3 el_wpush.3 \
81                 editline.3 el_wparse.3 \
82                 editline.3 el_wset.3 \
83                 editline.3 el_wget.3 \
84                 editline.3 el_wline.3 \
85                 editline.3 el_winsertstr.3 \
86                 editline.3 el_wdeletestr.3 \
87                 editline.3 history_winit.3 \
88                 editline.3 history_wend.3 \
89                 editline.3 history_w.3 \
90                 editline.3 tok_winit.3 \
91                 editline.3 tok_wend.3 \
92                 editline.3 tok_wreset.3 \
93                 editline.3 tok_wline.3 \
94                 editline.3 tok_wstr.3
95
96 CLEANFILES+=    common.h emacs.h fcns.c fcns.h help.c help.h vi.h editline.c
97 AHDR=           vi.h emacs.h common.h
98 ASRC=           ${SRCDIR}/vi.c ${SRCDIR}/emacs.c ${SRCDIR}/common.c
99
100 vi.h:
101         AWK=awk sh ${SRCDIR}/makelist -h ${SRCDIR}/vi.c > ${.TARGET}
102
103 emacs.h:
104         AWK=awk sh ${SRCDIR}/makelist -h ${SRCDIR}/emacs.c > ${.TARGET}
105
106 common.h:
107         AWK=awk sh ${SRCDIR}/makelist -h ${SRCDIR}/common.c > ${.TARGET}
108
109 fcns.h: ${AHDR}
110         AWK=awk sh ${SRCDIR}/makelist -fh ${AHDR} > ${.TARGET}
111
112 help.h:
113         AWK=awk sh ${SRCDIR}/makelist -bh ${ASRC} > ${.TARGET}
114
115 fcns.c: ${AHDR}
116         AWK=awk sh ${SRCDIR}/makelist -fc ${AHDR} > ${.TARGET}
117
118 help.c: ${ASRC}
119         AWK=awk sh ${SRCDIR}/makelist -bc ${ASRC} > ${.TARGET}
120
121 tokenizern.c: tokenizer.c
122         AWK=awk sh ${SRCDIR}/makelist -n ${.ALLSRC} > ${.TARGET}
123
124 historyn.c: history.c
125         AWK=awk sh ${SRCDIR}/makelist -n ${.ALLSRC} > ${.TARGET}
126
127 .include <bsd.lib.mk>