fsdb(8): Fix some -Wformat warnings and raise WARNS to 2.
[dragonfly.git] / usr.bin / vi / Makefile
blob2ad35f42a04af1e6368ca7a13cee4ddc223ee372
2 # $FreeBSD: head/usr.bin/vi/Makefile 254225 2013-08-11 20:03:12Z peter $
5 .include <bsd.own.mk>
7 SRCDIR= ${.CURDIR}/../../contrib/nvi2
8 .if !defined(NO_SHARE)
9 SUBDIR+= vidump catalog
10 .endif
12 WARNS?= 1
14 VI= nvi
15 EX= nex
16 VIEW= nview
18 PROG= nvi
20 CFLAGS+= -D__REGEX_PRIVATE
22 LINKS= ${BINDIR}/${VI} ${BINDIR}/${EX} ${BINDIR}/${VI} ${BINDIR}/${VIEW}
23 LINKS+= ${BINDIR}/${VI} ${BINDIR}/vi ${BINDIR}/${EX} ${BINDIR}/ex
24 LINKS+= ${BINDIR}/${VI} ${BINDIR}/view
26 MAN= ${SRCDIR}/docs/man/vi.1
27 MLINKS+=vi.1 ex.1 vi.1 view.1
28 MLINKS+=vi.1 nex.1 vi.1 nview.1 vi.1 nvi.1
30 .PATH: ${SRCDIR}/common
31 .PATH: ${SRCDIR}/ex
32 .PATH: ${SRCDIR}/cl
33 .PATH: ${SRCDIR}/vi
34 .PATH: ${SRCDIR}/regex
36 CFLAGS+=-I${.CURDIR} -I${SRCDIR} -I${SRCDIR}/regex -I${SRCDIR}/vi
38 DPADD= ${LIBUTIL}
39 LDADD= -lutil
41 DPADD+= ${LIBNCURSESW}
42 LDADD+= -lprivate_ncursesw
44 CFLAGS+= -I${_SHLIBDIRPREFIX}/usr/include/priv/ncurses
45 LDFLAGS+= ${PRIVATELIB_LDFLAGS}
47 CLEANFILES+=${EX}
49 # Vi curses sources
50 SRCS+= cl_funcs.c cl_main.c cl_read.c cl_screen.c cl_term.c
52 # General sources.
53 SRCS+= conv.c cut.c delete.c encoding.c exf.c key.c line.c log.c main.c mark.c msg.c options.c \
54 options_f.c put.c recover.c screen.c search.c seq.c util.c
56 # Ex source.
57 SRCS+= ex.c ex_abbrev.c ex_append.c ex_args.c ex_argv.c ex_at.c ex_bang.c \
58 ex_cd.c ex_cmd.c ex_cscope.c ex_delete.c ex_display.c \
59 ex_edit.c ex_equal.c ex_file.c ex_filter.c ex_global.c \
60 ex_init.c ex_join.c ex_map.c ex_mark.c ex_mkexrc.c ex_move.c \
61 ex_open.c ex_preserve.c ex_print.c ex_put.c ex_quit.c \
62 ex_read.c ex_screen.c ex_script.c ex_set.c ex_shell.c \
63 ex_shift.c ex_source.c ex_stop.c ex_subst.c ex_tag.c \
64 ex_txt.c ex_undo.c ex_usage.c ex_util.c ex_version.c ex_visual.c \
65 ex_write.c ex_yank.c ex_z.c
67 # Vi source.
68 SRCS+= getc.c v_at.c v_ch.c v_cmd.c v_delete.c v_ex.c v_increment.c v_init.c \
69 v_itxt.c v_left.c v_mark.c v_match.c v_paragraph.c v_put.c v_redraw.c \
70 v_replace.c v_right.c v_screen.c v_scroll.c v_search.c v_section.c \
71 v_sentence.c v_status.c v_txt.c v_ulcase.c v_undo.c \
72 v_util.c v_word.c v_xchar.c v_yank.c v_z.c v_zexit.c vi.c
74 # Vi screen source.
75 SRCS+= vs_line.c vs_msg.c vs_refresh.c vs_relative.c vs_smap.c vs_split.c
77 # Wide char regex
78 SRCS+= regcomp.c regerror.c regexec.c regfree.c
80 .include <bsd.prog.mk>