head	1.18;
access;
symbols
	perseant-exfatfs-base-20250801:1.18
	perseant-exfatfs-base-20240630:1.18
	perseant-exfatfs:1.18.0.18
	perseant-exfatfs-base:1.18
	cjep_sun2x:1.18.0.16
	cjep_sun2x-base:1.18
	cjep_staticlib_x-base1:1.18
	cjep_staticlib_x:1.18.0.14
	cjep_staticlib_x-base:1.18
	phil-wifi-20200421:1.18
	phil-wifi-20200411:1.18
	phil-wifi-20200406:1.18
	pgoyette-compat-merge-20190127:1.18
	pgoyette-compat-20190127:1.18
	pgoyette-compat-20190118:1.18
	pgoyette-compat-1226:1.18
	pgoyette-compat-1126:1.18
	pgoyette-compat-1020:1.18
	pgoyette-compat-0930:1.18
	pgoyette-compat-0906:1.18
	pgoyette-compat-0728:1.18
	pgoyette-compat-0625:1.18
	pgoyette-compat-0521:1.18
	pgoyette-compat-0502:1.18
	pgoyette-compat-0422:1.18
	pgoyette-compat-0415:1.18
	pgoyette-compat-0407:1.18
	pgoyette-compat-0330:1.18
	pgoyette-compat-0322:1.18
	pgoyette-compat-0315:1.18
	pgoyette-compat:1.18.0.12
	pgoyette-compat-base:1.18
	perseant-stdc-iso10646:1.18.0.10
	perseant-stdc-iso10646-base:1.18
	prg-localcount2-base3:1.18
	prg-localcount2-base2:1.18
	prg-localcount2-base1:1.18
	prg-localcount2:1.18.0.8
	prg-localcount2-base:1.18
	pgoyette-localcount-20170426:1.18
	bouyer-socketcan-base1:1.18
	pgoyette-localcount-20170320:1.18
	bouyer-socketcan:1.18.0.6
	bouyer-socketcan-base:1.18
	pgoyette-localcount-20170107:1.18
	pgoyette-localcount-20161104:1.18
	localcount-20160914:1.18
	pgoyette-localcount-20160806:1.18
	pgoyette-localcount-20160726:1.18
	pgoyette-localcount:1.18.0.4
	pgoyette-localcount-base:1.18
	netbsd-5-2-3-RELEASE:1.7.2.1
	netbsd-5-1-5-RELEASE:1.7.2.1
	netbsd-6-0-6-RELEASE:1.16
	netbsd-6-1-5-RELEASE:1.16
	yamt-pagecache-base9:1.18
	yamt-pagecache-tag8:1.16.2.1
	netbsd-6-1-4-RELEASE:1.16
	netbsd-6-0-5-RELEASE:1.16
	tls-earlyentropy:1.18.0.2
	tls-earlyentropy-base:1.18
	riastradh-xf86-video-intel-2-7-1-pre-2-21-15:1.18
	riastradh-drm2-base3:1.18
	netbsd-6-1-3-RELEASE:1.16
	netbsd-6-0-4-RELEASE:1.16
	netbsd-5-2-2-RELEASE:1.7.2.1
	netbsd-5-1-4-RELEASE:1.7.2.1
	netbsd-6-1-2-RELEASE:1.16
	netbsd-6-0-3-RELEASE:1.16
	netbsd-5-2-1-RELEASE:1.7.2.1
	netbsd-5-1-3-RELEASE:1.7.2.1
	netbsd-6-1-1-RELEASE:1.16
	riastradh-drm2-base2:1.17
	riastradh-drm2-base1:1.17
	riastradh-drm2:1.17.0.4
	riastradh-drm2-base:1.17
	netbsd-6-1:1.16.0.10
	netbsd-6-0-2-RELEASE:1.16
	netbsd-6-1-RELEASE:1.16
	netbsd-6-1-RC4:1.16
	netbsd-6-1-RC3:1.16
	agc-symver:1.17.0.6
	agc-symver-base:1.17
	netbsd-6-1-RC2:1.16
	netbsd-6-1-RC1:1.16
	yamt-pagecache-base8:1.17
	netbsd-5-2:1.7.2.1.0.10
	netbsd-6-0-1-RELEASE:1.16
	yamt-pagecache-base7:1.17
	netbsd-5-2-RELEASE:1.7.2.1
	netbsd-5-2-RC1:1.7.2.1
	matt-nb6-plus-nbase:1.16
	yamt-pagecache-base6:1.17
	netbsd-6-0:1.16.0.8
	netbsd-6-0-RELEASE:1.16
	netbsd-6-0-RC2:1.16
	tls-maxphys:1.17.0.2
	tls-maxphys-base:1.18
	matt-nb6-plus:1.16.0.6
	matt-nb6-plus-base:1.16
	netbsd-6-0-RC1:1.16
	yamt-pagecache-base5:1.17
	yamt-pagecache-base4:1.17
	netbsd-6:1.16.0.4
	netbsd-6-base:1.16
	netbsd-5-1-2-RELEASE:1.7.2.1
	netbsd-5-1-1-RELEASE:1.7.2.1
	yamt-pagecache-base3:1.16
	yamt-pagecache-base2:1.16
	yamt-pagecache:1.16.0.2
	yamt-pagecache-base:1.16
	cherry-xenmp:1.14.0.2
	cherry-xenmp-base:1.14
	bouyer-quota2-nbase:1.13
	bouyer-quota2:1.13.0.2
	bouyer-quota2-base:1.13
	matt-mips64-premerge-20101231:1.13
	matt-nb5-mips64-premerge-20101231:1.7.2.1
	matt-nb5-pq3:1.7.2.1.0.8
	matt-nb5-pq3-base:1.7.2.1
	netbsd-5-1:1.7.2.1.0.6
	netbsd-5-1-RELEASE:1.7.2.1
	netbsd-5-1-RC4:1.7.2.1
	matt-nb5-mips64-k15:1.7.2.1
	netbsd-5-1-RC3:1.7.2.1
	netbsd-5-1-RC2:1.7.2.1
	netbsd-5-1-RC1:1.7.2.1
	netbsd-5-0-2-RELEASE:1.7.2.1
	matt-nb5-mips64-premerge-20091211:1.7.2.1
	matt-premerge-20091211:1.12
	matt-nb5-mips64-u2-k2-k4-k7-k8-k9:1.7.2.1
	matt-nb4-mips64-k7-u2a-k9b:1.7.2.1
	matt-nb5-mips64-u1-k1-k5:1.7.2.1
	matt-nb5-mips64:1.7.2.1.0.4
	netbsd-5-0-1-RELEASE:1.7.2.1
	jym-xensuspend-nbase:1.12
	netbsd-5-0:1.7.2.1.0.2
	netbsd-5-0-RELEASE:1.7.2.1
	netbsd-5-0-RC4:1.7.2.1
	netbsd-5-0-RC3:1.7.2.1
	netbsd-5-0-RC2:1.7.2.1
	jym-xensuspend:1.10.0.2
	jym-xensuspend-base:1.12
	netbsd-5-0-RC1:1.7.2.1
	netbsd-5:1.7.0.2
	netbsd-5-base:1.7
	matt-mips64-base2:1.7
	wrstuden-revivesa-base-3:1.6
	wrstuden-revivesa:1.6.0.2
	wrstuden-revivesa-base:1.1
	wrstuden-revivesa-base-2:1.6
	wrstuden-revivesa-base-1:1.1
	yamt-pf42-base4:1.1
	yamt-pf42:1.1.0.2
	yamt-pf42-base3:1.1;
locks; strict;
comment	@# @;


1.18
date	2013.11.28.22.39.29;	author christos;	state dead;
branches;
next	1.17;
commitid	XJ3zkLLBCgoe26fx;

1.17
date	2012.03.21.05.44.39;	author matt;	state Exp;
branches
	1.17.2.1;
next	1.16;

1.16
date	2011.08.17.12.57.19;	author christos;	state Exp;
branches
	1.16.2.1;
next	1.15;

1.15
date	2011.06.20.07.44.01;	author mrg;	state Exp;
branches;
next	1.14;

1.14
date	2011.05.26.12.56.33;	author joerg;	state Exp;
branches
	1.14.2.1;
next	1.13;

1.13
date	2010.02.06.23.45.26;	author he;	state Exp;
branches;
next	1.12;

1.12
date	2009.04.14.22.15.24;	author lukem;	state Exp;
branches;
next	1.11;

1.11
date	2009.02.18.13.26.15;	author yamt;	state Exp;
branches;
next	1.10;

1.10
date	2008.12.05.22.52.03;	author christos;	state Exp;
branches
	1.10.2.1;
next	1.9;

1.9
date	2008.10.31.16.34.58;	author christos;	state Exp;
branches;
next	1.8;

1.8
date	2008.10.31.16.12.19;	author christos;	state Exp;
branches;
next	1.7;

1.7
date	2008.10.19.22.05.24;	author apb;	state Exp;
branches
	1.7.2.1;
next	1.6;

1.6
date	2008.08.31.05.17.31;	author christos;	state Exp;
branches
	1.6.2.1;
next	1.5;

1.5
date	2008.08.29.00.02.24;	author gmcgarry;	state Exp;
branches;
next	1.4;

1.4
date	2008.08.27.10.17.49;	author christos;	state Exp;
branches;
next	1.3;

1.3
date	2008.08.27.05.42.54;	author christos;	state Exp;
branches;
next	1.2;

1.2
date	2008.07.20.20.06.46;	author veego;	state Exp;
branches;
next	1.1;

1.1
date	2008.05.20.18.04.16;	author aymeric;	state Exp;
branches
	1.1.2.1;
next	;

1.17.2.1
date	2014.08.20.00.05.01;	author tls;	state dead;
branches;
next	;
commitid	jTnpym9Qu0o4R1Nx;

1.16.2.1
date	2012.04.17.00.09.38;	author yamt;	state Exp;
branches;
next	1.16.2.2;

1.16.2.2
date	2014.05.22.11.42.47;	author yamt;	state dead;
branches;
next	;
commitid	cG7DCbrDdiE9MwBx;

1.14.2.1
date	2011.06.23.14.20.45;	author cherry;	state Exp;
branches;
next	;

1.10.2.1
date	2009.05.13.19.20.00;	author jym;	state Exp;
branches;
next	;

1.7.2.1
date	2009.01.20.02.45.36;	author snj;	state Exp;
branches;
next	;

1.6.2.1
date	2008.08.31.05.17.31;	author wrstuden;	state dead;
branches;
next	1.6.2.2;

1.6.2.2
date	2008.09.17.05.42.10;	author wrstuden;	state Exp;
branches;
next	;

1.1.2.1
date	2008.05.20.18.04.16;	author yamt;	state dead;
branches;
next	1.1.2.2;

1.1.2.2
date	2008.06.04.02.05.58;	author yamt;	state Exp;
branches;
next	;


desc
@@


1.18
log
@we have moved.
@
text
@#	$NetBSD: Makefile,v 1.17 2012/03/21 05:44:39 matt Exp $

.include <bsd.own.mk>

USE_WIDECHAR?=yes

CWARNFLAGS.clang+=	-Wno-uninitialized -Wno-format-security

CPPFLAGS+=-I${DIST}/include -I${.CURDIR} -I. -DGTAGS
#DBG=-g

#CWARNFLAGS+=-Wno-parentheses -Wno-unused -Wno-missing-prototypes
#.if defined(HAVE_GCC)
#CWARNFLAGS+=-Wno-pointer-sign
#COPTS+=-fno-strict-aliasing
#.endif

LDADD+=	-lcurses -lterminfo
DPADD+=	${LIBCURSES} ${LIBTERMINFO}
PROG=	vi
SRCS=	api.c cl_bsd.c cl_funcs.c cl_main.c cl_read.c cl_screen.c cl_term.c \
	conv.c cut.c db.c db1.c delete.c ex.c ex_abbrev.c ex_append.c \
	ex_args.c ex_argv.c ex_at.c ex_bang.c ex_cd.c ex_cmd.c ex_cscope.c \
	ex_delete.c ex_display.c ex_edit.c ex_equal.c ex_file.c ex_filter.c \
	ex_global.c ex_init.c ex_join.c ex_map.c ex_mark.c ex_mkexrc.c \
	ex_move.c ex_open.c ex_perl.c ex_preserve.c ex_print.c ex_put.c \
	ex_quit.c ex_read.c ex_screen.c ex_script.c ex_set.c ex_shell.c \
	ex_shift.c ex_source.c ex_stop.c ex_subst.c ex_tag.c ex_tcl.c \
	ex_txt.c ex_undo.c ex_usage.c ex_util.c ex_version.c ex_visual.c \
	ex_write.c ex_yank.c ex_z.c exf.c getc.c gs.c key.c log.c \
	main.c mark.c msg.c nothread.c options.c options_f.c put.c recover.c \
	screen.c search.c seq.c util.c v_at.c v_ch.c v_cmd.c v_delete.c \
	v_event.c v_ex.c v_increment.c v_init.c v_itxt.c v_left.c v_mark.c \
	v_match.c v_paragraph.c v_put.c v_redraw.c v_replace.c v_right.c \
	v_screen.c v_scroll.c v_search.c v_section.c v_sentence.c v_status.c \
	v_txt.c v_ulcase.c v_undo.c v_util.c v_word.c v_xchar.c v_yank.c \
	v_z.c v_zexit.c vi.c vs_line.c vs_msg.c vs_refresh.c vs_relative.c \
	vs_smap.c vs_split.c

# For wide char support
.if ${USE_WIDECHAR} == "yes"
SRCS+=	regcomp.c regerror.c regexec.c regfree.c
CPPFLAGS+=-I${DIST}/regex -D__REGEX_PRIVATE -DUSE_WIDECHAR
.endif

LINKS=	${BINDIR}/vi ${BINDIR}/ex ${BINDIR}/vi ${BINDIR}/view
MLINKS=	vi.1 ex.1 vi.1 view.1

DPSRCS+=options_def.h
CLEANFILES+=options_def.h

options_def.h: options.awk options.c
	${_MKTARGET_CREATE}
	${TOOL_AWK} -f ${.ALLSRC} >${.TARGET}

.include "../Makefile.inc"
.include "../../Makefile.inc"

WARNS=	4

.PATH: ${DIST}/vi ${DIST}/ex ${DIST}/cl
.PATH: ${DIST}/common
.PATH: ${DIST}/regex
.PATH: ${DIST}/docs/vi.man

COPTS.exf.c += -Wno-format-nonliteral
COPTS.msg.c += -Wno-format-nonliteral

.include <bsd.prog.mk>
@


1.17
log
@Use WARNS=4
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.16 2011/08/17 12:57:19 christos Exp $
@


1.17.2.1
log
@Rebase to HEAD as of a few days ago.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.17 2012/03/21 05:44:39 matt Exp $
@


1.16
log
@document non-literal format strings.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.15 2011/06/20 07:44:01 mrg Exp $
d59 2
@


1.16.2.1
log
@sync with head
@
text
@d1 1
a1 1
#	$NetBSD$
a58 2
WARNS=	4

@


1.16.2.2
log
@sync with head.

for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.

this commit was splitted into small chunks to avoid
a limitation of cvs.  ("Protocol error: too many arguments")
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.16.2.1 2012/04/17 00:09:38 yamt Exp $
@


1.15
log
@remove most of the remaining HAVE_GCC tests that are always true in
the modern world.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.14 2011/05/26 12:56:33 joerg Exp $
d64 3
@


1.14
log
@Default to -Wno-sign-compare -Wno-pointer-sign for clang.
Push -Wno-array-bounds down to the cases that depend on it.
Selectively disable warnings for 3rd party software or non-trivial
issues to be reviewed later to get clang -Werror to build most of the
tree.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.13 2010/02/06 23:45:26 he Exp $
d13 1
a13 1
#.if defined(HAVE_GCC) && ${HAVE_GCC} == 4
@


1.14.2.1
log
@Catchup with rmind-uvmplock merge.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.15 2011/06/20 07:44:01 mrg Exp $
d13 1
a13 1
#.if defined(HAVE_GCC)
@


1.13
log
@When using -lcurses, you also need -lterminfo.
This fixes the build for sun2, and also builds with LDSTATIC=-static,
since archive libraries don't record inter-library dependencies.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.12 2009/04/14 22:15:24 lukem Exp $
d7 2
@


1.12
log
@Enable WARNS=4 by default for usr.bin, except for:
	awk  bdes  checknr  compile_et  error  gss  hxtool  kgetcred  kinit
	klist  ldd  less  lex  locale  login  m4  man  menuc  mk_cmds
	mklocale  msgc  openssl  rpcgen  rpcinfo  sdiff  spell  ssh
	string2key  telnet  tn3270  verify_krb5_conf  xlint
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.11 2009/02/18 13:26:15 yamt Exp $
d16 2
a17 2
LDADD+=	-lcurses
DPADD+=	${LIBCURSES}
@


1.11
log
@fix "make cleandir"
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.10 2008/12/05 22:52:03 christos Exp $
a7 1
WARNS=4
@


1.10
log
@WARNS=4
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.9 2008/10/31 16:34:58 christos Exp $
d61 1
a61 2

BUILDSYMLINKS=	${DIST}/docs/vi.man/vi.1 vi.1
@


1.10.2.1
log
@Sync with HEAD.

Third (and last) commit. See http://mail-index.netbsd.org/source-changes/2009/05/13/msg221222.html
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.12 2009/04/14 22:15:24 lukem Exp $
d8 1
d61 2
a62 1
.PATH: ${DIST}/docs/vi.man
@


1.9
log
@undo accidental commit.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.8 2008/10/31 16:12:19 christos Exp $
d8 1
a8 1
WARNS=0
@


1.8
log
@Import syslogd SoC project by Martin Schuette:
	- new syslog protocol api syslogp(3) that supports structured data
	  and draft-rfc timestamps
	- reliable tcp connections with queueing
	- encrypted connections
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.7 2008/10/19 22:05:24 apb Exp $
d9 1
a9 1
DBG=-g
@


1.7
log
@Use ${TOOL_AWK} instead of ${AWK} or plain "awk" in make commands.
Pass AWK=${TOOL_AWK:Q} to shell scripts that use awk.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.6 2008/08/31 05:17:31 christos Exp $
d9 1
a9 1
#DBG=-g
@


1.7.2.1
log
@Pull up following revision(s) (requested by lukem in ticket #292):
	usr.bin/nvi/build/Makefile: revision 1.10
WARNS=4
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.7 2008/10/19 22:05:24 apb Exp $
d8 1
a8 1
WARNS=4
@


1.6
log
@nvi is now default
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.5 2008/08/29 00:02:24 gmcgarry Exp $
d53 1
a53 1
	${AWK} -f ${.ALLSRC} >${.TARGET}
@


1.6.2.1
log
@file Makefile was added on branch wrstuden-revivesa on 2008-09-17 05:42:10 +0000
@
text
@d1 64
@


1.6.2.2
log
@Sync with wrstuden-revivesa-base-2.
@
text
@a0 64
#	$NetBSD: Makefile,v 1.6 2008/08/31 05:17:31 christos Exp $

.include <bsd.own.mk>

USE_WIDECHAR?=yes

CPPFLAGS+=-I${DIST}/include -I${.CURDIR} -I. -DGTAGS
WARNS=0
#DBG=-g

#CWARNFLAGS+=-Wno-parentheses -Wno-unused -Wno-missing-prototypes
#.if defined(HAVE_GCC) && ${HAVE_GCC} == 4
#CWARNFLAGS+=-Wno-pointer-sign
#COPTS+=-fno-strict-aliasing
#.endif

LDADD+=	-lcurses
DPADD+=	${LIBCURSES}
PROG=	vi
SRCS=	api.c cl_bsd.c cl_funcs.c cl_main.c cl_read.c cl_screen.c cl_term.c \
	conv.c cut.c db.c db1.c delete.c ex.c ex_abbrev.c ex_append.c \
	ex_args.c ex_argv.c ex_at.c ex_bang.c ex_cd.c ex_cmd.c ex_cscope.c \
	ex_delete.c ex_display.c ex_edit.c ex_equal.c ex_file.c ex_filter.c \
	ex_global.c ex_init.c ex_join.c ex_map.c ex_mark.c ex_mkexrc.c \
	ex_move.c ex_open.c ex_perl.c ex_preserve.c ex_print.c ex_put.c \
	ex_quit.c ex_read.c ex_screen.c ex_script.c ex_set.c ex_shell.c \
	ex_shift.c ex_source.c ex_stop.c ex_subst.c ex_tag.c ex_tcl.c \
	ex_txt.c ex_undo.c ex_usage.c ex_util.c ex_version.c ex_visual.c \
	ex_write.c ex_yank.c ex_z.c exf.c getc.c gs.c key.c log.c \
	main.c mark.c msg.c nothread.c options.c options_f.c put.c recover.c \
	screen.c search.c seq.c util.c v_at.c v_ch.c v_cmd.c v_delete.c \
	v_event.c v_ex.c v_increment.c v_init.c v_itxt.c v_left.c v_mark.c \
	v_match.c v_paragraph.c v_put.c v_redraw.c v_replace.c v_right.c \
	v_screen.c v_scroll.c v_search.c v_section.c v_sentence.c v_status.c \
	v_txt.c v_ulcase.c v_undo.c v_util.c v_word.c v_xchar.c v_yank.c \
	v_z.c v_zexit.c vi.c vs_line.c vs_msg.c vs_refresh.c vs_relative.c \
	vs_smap.c vs_split.c

# For wide char support
.if ${USE_WIDECHAR} == "yes"
SRCS+=	regcomp.c regerror.c regexec.c regfree.c
CPPFLAGS+=-I${DIST}/regex -D__REGEX_PRIVATE -DUSE_WIDECHAR
.endif

LINKS=	${BINDIR}/vi ${BINDIR}/ex ${BINDIR}/vi ${BINDIR}/view
MLINKS=	vi.1 ex.1 vi.1 view.1

DPSRCS+=options_def.h
CLEANFILES+=options_def.h

options_def.h: options.awk options.c
	${_MKTARGET_CREATE}
	${AWK} -f ${.ALLSRC} >${.TARGET}

.include "../Makefile.inc"
.include "../../Makefile.inc"

.PATH: ${DIST}/vi ${DIST}/ex ${DIST}/cl
.PATH: ${DIST}/common
.PATH: ${DIST}/regex

BUILDSYMLINKS=	${DIST}/docs/vi.man/vi.1 vi.1

.include <bsd.prog.mk>
@


1.5
log
@Wrap compiler-specific flags with HAVE_GCC and HAVE_PCC as necessary. Add a few flags for PCC.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.4 2008/08/27 10:17:49 christos Exp $
d19 1
a19 1
PROG=	nvi
d45 2
a46 2
LINKS=	${BINDIR}/nvi ${BINDIR}/nex ${BINDIR}/nvi ${BINDIR}/nview
MLINKS=	nvi.1 nex.1 nvi.1 nview.1
d62 1
a62 1
BUILDSYMLINKS=	${DIST}/docs/vi.man/vi.1 nvi.1
@


1.4
log
@add the ability to have non widechar build, with USE_WIDECHAR=no
On i386:
vi		308685
nvi.nonwide	296856
nvi.wide	340860
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.3 2008/08/27 05:42:54 christos Exp $
d12 1
a12 1
#.if ${HAVE_GCC} == 4
@


1.3
log
@- don't compile with debugging on
- split the wide regex options in preparation for a non-wide build.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.2 2008/07/20 20:06:46 veego Exp $
d5 2
d40 1
d42 2
a43 1
CPPFLAGS+=-I${DIST}/regex -D__REGEX_PRIVATE
@


1.2
log
@Use BUILDSYMLINKS for the nvi.1 manpage instead of copying the vi.1 file
to nvi.1
Resolves the problem that this file was not removed during a make cleandir.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.1 2008/05/20 18:04:16 aymeric Exp $
d5 1
a5 2
CPPFLAGS+=-I${DIST}/regex -I${DIST}/include -I${.CURDIR} -I. -DGTAGS
CPPFLAGS+=-D__REGEX_PRIVATE
d7 1
a7 1
DBG=-g
d37 1
d39 1
@


1.1
log
@add the reachover infrastructure to build nvi 1.81.6 from src/dist/nvi
XXX docs are left out for the moment
the recover script is also left out, but provided by the older vi

The src/usr.bin/nvi directory is not descended into yet, but is otherwise
functional
@
text
@d1 1
a1 1
#	$NetBSD$
d57 1
a57 2
nvi.1: ${DIST}/docs/vi.man/vi.1
	cp ${DIST}/docs/vi.man/vi.1 nvi.1
@


1.1.2.1
log
@file Makefile was added on branch yamt-pf42 on 2008-06-04 02:05:58 +0000
@
text
@d1 60
@


1.1.2.2
log
@sync with head
@
text
@a0 60
#	$NetBSD$

.include <bsd.own.mk>

CPPFLAGS+=-I${DIST}/regex -I${DIST}/include -I${.CURDIR} -I. -DGTAGS
CPPFLAGS+=-D__REGEX_PRIVATE
WARNS=0
DBG=-g

#CWARNFLAGS+=-Wno-parentheses -Wno-unused -Wno-missing-prototypes
#.if ${HAVE_GCC} == 4
#CWARNFLAGS+=-Wno-pointer-sign
#COPTS+=-fno-strict-aliasing
#.endif

LDADD+=	-lcurses
DPADD+=	${LIBCURSES}
PROG=	nvi
SRCS=	api.c cl_bsd.c cl_funcs.c cl_main.c cl_read.c cl_screen.c cl_term.c \
	conv.c cut.c db.c db1.c delete.c ex.c ex_abbrev.c ex_append.c \
	ex_args.c ex_argv.c ex_at.c ex_bang.c ex_cd.c ex_cmd.c ex_cscope.c \
	ex_delete.c ex_display.c ex_edit.c ex_equal.c ex_file.c ex_filter.c \
	ex_global.c ex_init.c ex_join.c ex_map.c ex_mark.c ex_mkexrc.c \
	ex_move.c ex_open.c ex_perl.c ex_preserve.c ex_print.c ex_put.c \
	ex_quit.c ex_read.c ex_screen.c ex_script.c ex_set.c ex_shell.c \
	ex_shift.c ex_source.c ex_stop.c ex_subst.c ex_tag.c ex_tcl.c \
	ex_txt.c ex_undo.c ex_usage.c ex_util.c ex_version.c ex_visual.c \
	ex_write.c ex_yank.c ex_z.c exf.c getc.c gs.c key.c log.c \
	main.c mark.c msg.c nothread.c options.c options_f.c put.c recover.c \
	screen.c search.c seq.c util.c v_at.c v_ch.c v_cmd.c v_delete.c \
	v_event.c v_ex.c v_increment.c v_init.c v_itxt.c v_left.c v_mark.c \
	v_match.c v_paragraph.c v_put.c v_redraw.c v_replace.c v_right.c \
	v_screen.c v_scroll.c v_search.c v_section.c v_sentence.c v_status.c \
	v_txt.c v_ulcase.c v_undo.c v_util.c v_word.c v_xchar.c v_yank.c \
	v_z.c v_zexit.c vi.c vs_line.c vs_msg.c vs_refresh.c vs_relative.c \
	vs_smap.c vs_split.c

SRCS+=	regcomp.c regerror.c regexec.c regfree.c

LINKS=	${BINDIR}/nvi ${BINDIR}/nex ${BINDIR}/nvi ${BINDIR}/nview
MLINKS=	nvi.1 nex.1 nvi.1 nview.1

DPSRCS+=options_def.h
CLEANFILES+=options_def.h

options_def.h: options.awk options.c
	${_MKTARGET_CREATE}
	${AWK} -f ${.ALLSRC} >${.TARGET}

.include "../Makefile.inc"
.include "../../Makefile.inc"

.PATH: ${DIST}/vi ${DIST}/ex ${DIST}/cl
.PATH: ${DIST}/common
.PATH: ${DIST}/regex

nvi.1: ${DIST}/docs/vi.man/vi.1
	cp ${DIST}/docs/vi.man/vi.1 nvi.1

.include <bsd.prog.mk>
@
