nrelease - fix/improve livecd
[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=    6
6 SHLIBDIR?=      /lib
7 PRIVATELIB=     shpub
8
9 SRCDIR=         ${BASEDIR}/src
10 .PATH:          ${SRCDIR}
11
12 CFLAGS+=        -I${SRCDIR} -I${.CURDIR} -I${.OBJDIR}
13
14 CFLAGS+=        -I${_SHLIBDIRPREFIX}/usr/include/priv/ncurses
15 DPADD=          ${LIBNCURSES}
16 LDADD=          -lprivate_ncurses
17 LDFLAGS+=       ${PRIVATELIB_LDFLAGS}
18
19 WARNS?=         2
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                 tokenizer.c \
39                 history.c \
40                 filecomplete.c \
41                 readline.c \
42                 literal.c \
43                 eln.c
44
45 SRCS+=          tokenizern.c historyn.c
46
47 SRCS+=          common.h emacs.h fcns.h func.h help.h vi.h
48
49 INCS=           histedit.h
50 INCSDIR=        ${INCLUDEDIR}/priv
51
52 MAN=            editrc.5
53
54 CLEANFILES+=    common.h emacs.h fcns.h func.h help.h vi.h
55 AHDR=           vi.h emacs.h common.h
56 ASRC=           ${SRCDIR}/vi.c ${SRCDIR}/emacs.c ${SRCDIR}/common.c
57
58 vi.h:
59         AWK=awk sh ${SRCDIR}/makelist -h ${SRCDIR}/vi.c > ${.TARGET}
60
61 emacs.h:
62         AWK=awk sh ${SRCDIR}/makelist -h ${SRCDIR}/emacs.c > ${.TARGET}
63
64 common.h:
65         AWK=awk sh ${SRCDIR}/makelist -h ${SRCDIR}/common.c > ${.TARGET}
66
67 fcns.h: ${AHDR}
68         AWK=awk sh ${SRCDIR}/makelist -fh ${AHDR} > ${.TARGET}
69
70 func.h: ${AHDR}
71         AWK=awk sh ${SRCDIR}/makelist -fc ${AHDR} > ${.TARGET}
72
73 help.h:
74         AWK=awk sh ${SRCDIR}/makelist -bh ${ASRC} > ${.TARGET}
75
76 .include <bsd.lib.mk>