LIBPRIV: Add common PRIVATELIB_LDFLAGS definitions.
[dragonfly.git] / lib / libedit / libedit / Makefile
blob95dcd6bef05bb85a87cb57fae58e32a1eb170dd4
1 # NETBSD's libedit (BSD replacement for GNU readline)
2 .include "../Makefile.inc"
4 LIB= private_edit
5 SHLIB_MAJOR= 5
6 SHLIBDIR?= /lib
7 PRIVATELIB=
9 SRCDIR= ${BASEDIR}/src
10 .PATH: ${SRCDIR}
12 CFLAGS+= -I${SRCDIR} -I${.CURDIR} -I${.OBJDIR}
14 DPADD= ${LIBNCURSES}
15 LDADD= -lprivate_ncurses
16 LDFLAGS+= ${PRIVATELIB_LDFLAGS}
18 WARNS?= 2
20 VERSION_DEF= ${.CURDIR}/Versions.def
21 SYMBOL_MAPS= ${.CURDIR}/Symbol.map
23 SRCS+= 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 vis.c \
42 wcsdup.c \
43 tokenizer.c \
44 history.c \
45 filecomplete.c \
46 readline.c \
47 eln.c
49 # only when 1) !HAVE_STRLCAT 2) !HAVE_STRLCPY 3) !HAVE_VIS
50 #SRCS+= strlcat.c \
51 strlcpy.c \
52 unvis.c
54 SRCS+= common.h emacs.h fcns.h help.h vi.h
55 SRCS+= fcns.c help.c tokenizern.c historyn.c
57 INCS= histedit.h
59 MAN= editrc.5
61 CLEANFILES+= common.h emacs.h fcns.c fcns.h help.c help.h
62 CLEANFILES+= historyn.c tokenizern.c vi.h
63 AHDR= vi.h emacs.h common.h
64 ASRC= ${SRCDIR}/vi.c ${SRCDIR}/emacs.c ${SRCDIR}/common.c
66 vi.h:
67 AWK=awk sh ${SRCDIR}/makelist -h ${SRCDIR}/vi.c > ${.TARGET}
69 emacs.h:
70 AWK=awk sh ${SRCDIR}/makelist -h ${SRCDIR}/emacs.c > ${.TARGET}
72 common.h:
73 AWK=awk sh ${SRCDIR}/makelist -h ${SRCDIR}/common.c > ${.TARGET}
75 fcns.h: ${AHDR}
76 AWK=awk sh ${SRCDIR}/makelist -fh ${AHDR} > ${.TARGET}
78 help.h:
79 AWK=awk sh ${SRCDIR}/makelist -bh ${ASRC} > ${.TARGET}
81 fcns.c: ${AHDR}
82 AWK=awk sh ${SRCDIR}/makelist -fc ${AHDR} > ${.TARGET}
84 help.c: ${ASRC}
85 AWK=awk sh ${SRCDIR}/makelist -bc ${ASRC} > ${.TARGET}
87 tokenizern.c: tokenizer.c
88 AWK=awk sh ${SRCDIR}/makelist -n ${.ALLSRC} > ${.TARGET}
90 historyn.c: history.c
91 AWK=awk sh ${SRCDIR}/makelist -n ${.ALLSRC} > ${.TARGET}
93 .include <bsd.lib.mk>