1 # $NetBSD: Makefile,v 1.11 2009/02/18 13:26:15 yamt Exp $
7 CPPFLAGS
+=-I
${DIST}/include -I
${.CURDIR
} -I.
-DGTAGS
10 #CWARNFLAGS+=-Wno-parentheses -Wno-unused -Wno-missing-prototypes
11 #.if defined(HAVE_GCC) && ${HAVE_GCC} == 4
12 #CWARNFLAGS+=-Wno-pointer-sign
13 #COPTS+=-fno-strict-aliasing
19 SRCS
= api.c cl_bsd.c cl_funcs.c cl_main.c cl_read.c cl_screen.c cl_term.c \
20 conv.c cut.c db.c db1.c delete.c ex.c ex_abbrev.c ex_append.c \
21 ex_args.c ex_argv.c ex_at.c ex_bang.c ex_cd.c ex_cmd.c ex_cscope.c \
22 ex_delete.c ex_display.c ex_edit.c ex_equal.c ex_file.c ex_filter.c \
23 ex_global.c ex_init.c ex_join.c ex_map.c ex_mark.c ex_mkexrc.c \
24 ex_move.c ex_open.c ex_perl.c ex_preserve.c ex_print.c ex_put.c \
25 ex_quit.c ex_read.c ex_screen.c ex_script.c ex_set.c ex_shell.c \
26 ex_shift.c ex_source.c ex_stop.c ex_subst.c ex_tag.c ex_tcl.c \
27 ex_txt.c ex_undo.c ex_usage.c ex_util.c ex_version.c ex_visual.c \
28 ex_write.c ex_yank.c ex_z.c exf.c getc.c gs.c key.c log.c \
29 main.c mark.c msg.c nothread.c options.c options_f.c put.c recover.c \
30 screen.c search.c seq.c util.c v_at.c v_ch.c v_cmd.c v_delete.c \
31 v_event.c v_ex.c v_increment.c v_init.c v_itxt.c v_left.c v_mark.c \
32 v_match.c v_paragraph.c v_put.c v_redraw.c v_replace.c v_right.c \
33 v_screen.c v_scroll.c v_search.c v_section.c v_sentence.c v_status.c \
34 v_txt.c v_ulcase.c v_undo.c v_util.c v_word.c v_xchar.c v_yank.c \
35 v_z.c v_zexit.c vi.c vs_line.c vs_msg.c vs_refresh.c vs_relative.c \
38 # For wide char support
39 .if
${USE_WIDECHAR} == "yes"
40 SRCS
+= regcomp.c regerror.c regexec.c regfree.c
41 CPPFLAGS
+=-I
${DIST}/regex
-D__REGEX_PRIVATE
-DUSE_WIDECHAR
44 LINKS
= ${BINDIR}/vi
${BINDIR}/ex
${BINDIR}/vi
${BINDIR}/view
45 MLINKS
= vi
.1 ex
.1 vi
.1 view
.1
48 CLEANFILES
+=options_def.h
50 options_def.h
: options.awk options.c
52 ${TOOL_AWK} -f
${.ALLSRC
} >${.TARGET
}
54 .
include "../Makefile.inc"
55 .
include "../../Makefile.inc"
57 .PATH
: ${DIST}/vi
${DIST}/ex
${DIST}/cl
60 .PATH
: ${DIST}/docs
/vi.man
62 .
include <bsd.prog.mk
>