head	1.7;
access;
symbols
	perseant-exfatfs-base-20250801:1.7
	perseant-exfatfs-base-20240630:1.7
	perseant-exfatfs:1.7.0.46
	perseant-exfatfs-base:1.7
	cjep_sun2x:1.7.0.44
	cjep_sun2x-base:1.7
	cjep_staticlib_x-base1:1.7
	cjep_staticlib_x:1.7.0.42
	cjep_staticlib_x-base:1.7
	phil-wifi-20200421:1.7
	phil-wifi-20200411:1.7
	phil-wifi-20200406:1.7
	pgoyette-compat-merge-20190127:1.7
	pgoyette-compat-20190127:1.7
	pgoyette-compat-20190118:1.7
	pgoyette-compat-1226:1.7
	pgoyette-compat-1126:1.7
	pgoyette-compat-1020:1.7
	pgoyette-compat-0930:1.7
	pgoyette-compat-0906:1.7
	pgoyette-compat-0728:1.7
	pgoyette-compat-0625:1.7
	pgoyette-compat-0521:1.7
	pgoyette-compat-0502:1.7
	pgoyette-compat-0422:1.7
	pgoyette-compat-0415:1.7
	pgoyette-compat-0407:1.7
	pgoyette-compat-0330:1.7
	pgoyette-compat-0322:1.7
	pgoyette-compat-0315:1.7
	pgoyette-compat:1.7.0.40
	pgoyette-compat-base:1.7
	perseant-stdc-iso10646:1.7.0.38
	perseant-stdc-iso10646-base:1.7
	prg-localcount2-base3:1.7
	prg-localcount2-base2:1.7
	prg-localcount2-base1:1.7
	prg-localcount2:1.7.0.36
	prg-localcount2-base:1.7
	pgoyette-localcount-20170426:1.7
	bouyer-socketcan-base1:1.7
	pgoyette-localcount-20170320:1.7
	bouyer-socketcan:1.7.0.34
	bouyer-socketcan-base:1.7
	pgoyette-localcount-20170107:1.7
	pgoyette-localcount-20161104:1.7
	localcount-20160914:1.7
	pgoyette-localcount-20160806:1.7
	pgoyette-localcount-20160726:1.7
	pgoyette-localcount:1.7.0.32
	pgoyette-localcount-base:1.7
	netbsd-5-2-3-RELEASE:1.7
	netbsd-5-1-5-RELEASE:1.7
	yamt-pagecache-base9:1.7
	yamt-pagecache-tag8:1.7
	tls-earlyentropy:1.7.0.28
	tls-earlyentropy-base:1.7
	riastradh-xf86-video-intel-2-7-1-pre-2-21-15:1.7
	riastradh-drm2-base3:1.7
	netbsd-5-2-2-RELEASE:1.7
	netbsd-5-1-4-RELEASE:1.7
	netbsd-5-2-1-RELEASE:1.7
	netbsd-5-1-3-RELEASE:1.7
	agc-symver:1.7.0.30
	agc-symver-base:1.7
	tls-maxphys-base:1.7
	yamt-pagecache-base8:1.7
	netbsd-5-2:1.7.0.26
	yamt-pagecache-base7:1.7
	netbsd-5-2-RELEASE:1.7
	netbsd-5-2-RC1:1.7
	yamt-pagecache-base6:1.7
	yamt-pagecache-base5:1.7
	yamt-pagecache-base4:1.7
	netbsd-5-1-2-RELEASE:1.7
	netbsd-5-1-1-RELEASE:1.7
	yamt-pagecache-base3:1.7
	yamt-pagecache-base2:1.7
	yamt-pagecache:1.7.0.24
	yamt-pagecache-base:1.7
	bouyer-quota2-nbase:1.7
	bouyer-quota2:1.7.0.22
	bouyer-quota2-base:1.7
	matt-nb5-pq3:1.7.0.20
	matt-nb5-pq3-base:1.7
	netbsd-5-1:1.7.0.18
	netbsd-5-1-RELEASE:1.7
	netbsd-5-1-RC4:1.7
	netbsd-5-1-RC3:1.7
	netbsd-5-1-RC2:1.7
	netbsd-5-1-RC1:1.7
	netbsd-5-0-2-RELEASE:1.7
	netbsd-5-0-1-RELEASE:1.7
	jym-xensuspend-nbase:1.7
	netbsd-5-0:1.7.0.16
	netbsd-5-0-RELEASE:1.7
	netbsd-5-0-RC4:1.7
	netbsd-5-0-RC3:1.7
	netbsd-5-0-RC2:1.7
	jym-xensuspend:1.7.0.14
	jym-xensuspend-base:1.7
	netbsd-5-0-RC1:1.7
	netbsd-5:1.7.0.12
	netbsd-5-base:1.7
	mjf-devfs2:1.7.0.10
	mjf-devfs2-base:1.7
	yamt-pf42-base4:1.7
	yamt-pf42-base3:1.7
	hpcarm-cleanup-nbase:1.7
	yamt-pf42-base2:1.7
	yamt-pf42:1.7.0.8
	yamt-pf42-base:1.7
	keiichi-mipv6-nbase:1.7
	keiichi-mipv6:1.7.0.6
	keiichi-mipv6-base:1.7
	cube-autoconf:1.7.0.4
	cube-autoconf-base:1.7
	hpcarm-cleanup:1.7.0.2
	hpcarm-cleanup-base:1.7
	netbsd-1-1-PATCH001:1.6
	netbsd-1-1-RELEASE:1.6
	netbsd-1-1:1.6.0.2
	netbsd-1-1-base:1.6
	netbsd-1-0-PATCH06:1.5.2.2
	netbsd-1-0-PATCH05:1.5.2.2
	netbsd-1-0-PATCH04:1.5.2.2
	netbsd-1-0-PATCH03:1.5.2.2
	netbsd-1-0-PATCH02:1.5.2.2
	netbsd-1-0-PATCH1:1.5.2.2
	netbsd-1-0-PATCH0:1.5.2.2
	netbsd-1-0-RELEASE:1.5.2.2
	netbsd-1-0:1.5.0.2
	nvi-1-34b:1.1.1.2
	nvi-1-33b:1.1.1.1
	bostic-nvi:1.1.1;
locks; strict;
comment	@# @;


1.7
date	96.05.20.03.47.06;	author mrg;	state dead;
branches;
next	1.6;

1.6
date	94.08.30.17.12.59;	author cgd;	state Exp;
branches;
next	1.5;

1.5
date	94.08.17.20.12.00;	author cgd;	state Exp;
branches
	1.5.2.1;
next	1.4;

1.4
date	94.08.17.17.17.02;	author cgd;	state Exp;
branches;
next	1.3;

1.3
date	94.08.17.17.15.14;	author cgd;	state Exp;
branches;
next	1.2;

1.2
date	94.08.17.17.05.16;	author cgd;	state Exp;
branches;
next	1.1;

1.1
date	94.08.17.16.19.07;	author cgd;	state Exp;
branches
	1.1.1.1;
next	;

1.5.2.1
date	94.08.17.20.12.00;	author cgd;	state dead;
branches;
next	1.5.2.2;

1.5.2.2
date	94.08.30.17.27.59;	author cgd;	state Exp;
branches;
next	;

1.1.1.1
date	94.08.17.16.19.08;	author cgd;	state Exp;
branches;
next	1.1.1.2;

1.1.1.2
date	94.08.17.19.26.24;	author cgd;	state Exp;
branches;
next	;


desc
@@


1.7
log
@merge in nvi 1.66
@
text
@#	@@(#)Makefile	8.51 (Berkeley) 8/17/94
#
# This Makefile is ONLY correct for 4.4BSD style source trees.  If you're
# not using a system with that setup, it's not going to work.  Read the
# files ../README and ../PORT/README for information on building nvi for
# other systems.

VI=	vi
EX=	ex
VIEW=	view
PROG=	${VI}
LINKS=	${BINDIR}/${VI} ${BINDIR}/${EX} ${BINDIR}/${VI} ${BINDIR}/${VIEW}
MLINKS=	${VI}.1 ${EX}.1 ${VI}.1 ${VIEW}.1

#CFLAGS=-g -DDEBUG
#CFLAGS+=-pg
CFLAGS+=-I. -I${.CURDIR}
#LDADD+=-pg
DPADD+= ${LIBCURSES} ${LIBTERM} ${LIBUTIL}
LDADD+=	-lcurses -ltermlib -lutil

.PATH:	${.CURDIR}/../common ${.CURDIR}/../ex ${.CURDIR}/../sex \
	${.CURDIR}/../vi ${.CURDIR}/../svi ${.CURDIR}/../xaw \
	${.CURDIR}/../USD.doc/vi.man

SPECHDR=compat.h excmd.h options.h

CLEANFILES+=${SPECHDR} ${EX} vi.0

# General sources.
SRCS=	cut.c delete.c exf.c line.c log.c main.c mark.c msg.c options.c \
	options_f.c put.c screen.c search.c seq.c signal.c recover.c \
	term.c trace.c util.c

# Ex source.
SRCS+=	ex.c ex_abbrev.c ex_append.c ex_args.c ex_argv.c ex_at.c ex_bang.c \
	ex_cd.c ex_delete.c ex_digraph.c ex_display.c ex_edit.c ex_equal.c \
	ex_exit.c ex_file.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_preserve.c ex_print.c \
	ex_put.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_undo.c \
	ex_usage.c ex_util.c ex_version.c ex_visual.c ex_write.c ex_yank.c \
	ex_z.c excmd.c filter.c

# Ex screen source.
SRCS+=	sex_confirm.c sex_get.c sex_refresh.c sex_screen.c sex_term.c \
	sex_util.c sex_window.c

# Vi source.
SRCS+=	getc.c v_ch.c v_delete.c v_ex.c v_increment.c v_init.c v_left.c \
	v_mark.c v_match.c v_ntext.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_stop.c v_text.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 vcmd.c vi.c

# Vi curses screen source.
SRCS+=	svi_confirm.c svi_curses.c svi_ex.c svi_get.c svi_line.c \
	svi_refresh.c svi_relative.c svi_screen.c svi_smap.c svi_split.c \
	svi_term.c svi_util.c

# Athena widget set screen source.
SRCS+=	xaw_screen.c

${VI}: ${SPECHDR}

compat.h:
	:> compat.h

excmd.h: excmd.h.stub excmd.c excmd.awk
	rm -f excmd.h
	cat ${.CURDIR}/../ex/excmd.h.stub > excmd.h
	awk -f ${.CURDIR}/../ex/excmd.awk ${.CURDIR}/../ex/excmd.c >> excmd.h

options.h: options.h.stub options.c options.awk
	rm -f options.h
	cat ${.CURDIR}/options.h.stub > options.h
	awk -f ${.CURDIR}/options.awk ${.CURDIR}/options.c >> options.h

tags::
	-(cd ${.CURDIR} && rm -f tags && \
	    ctags ../common/*.[ch] ../common/*.stub ../ex/*.[ch] ../ex/*.stub \
	    ../vi/*.[ch] ../sex/*.[ch] ../svi/*.[ch] ../xaw/*.[ch])

warn:: ${SRCS}
	-(cd ${.CURDIR} && gcc -Wall -O4 -DDEBUG \
	    -Iobj -I. ${.ALLSRC} -lcurses -ltermlib 2>&1 | \
	    sed -e "/warning: .*sccsid.*defined but not used/d" \
	    	-e "/warning: suggest parentheses around/d" \
	    	-e "/In function /d" \
	    	-e "/At top level:/d" \
	    	-e "/warning: .*inline call to/d" \
	    	-e "/warning: comparison is always 1 due /d") > \
		${.CURDIR}/WARN.OUT

.include "../../Makefile.inc"
.include <bsd.prog.mk>

.depend: ${SPECHDR}
@


1.6
log
@don't forget manual page links.
@
text
@@


1.5
log
@clean up import.
@
text
@d13 1
@


1.5.2.1
log
@file Makefile was added on branch netbsd-1-0 on 1994-08-30 17:27:59 +0000
@
text
@d1 97
@


1.5.2.2
log
@don't forget man page links.
@
text
@a0 98
#	@@(#)Makefile	8.51 (Berkeley) 8/17/94
#
# This Makefile is ONLY correct for 4.4BSD style source trees.  If you're
# not using a system with that setup, it's not going to work.  Read the
# files ../README and ../PORT/README for information on building nvi for
# other systems.

VI=	vi
EX=	ex
VIEW=	view
PROG=	${VI}
LINKS=	${BINDIR}/${VI} ${BINDIR}/${EX} ${BINDIR}/${VI} ${BINDIR}/${VIEW}
MLINKS=	${VI}.1 ${EX}.1 ${VI}.1 ${VIEW}.1

#CFLAGS=-g -DDEBUG
#CFLAGS+=-pg
CFLAGS+=-I. -I${.CURDIR}
#LDADD+=-pg
DPADD+= ${LIBCURSES} ${LIBTERM} ${LIBUTIL}
LDADD+=	-lcurses -ltermlib -lutil

.PATH:	${.CURDIR}/../common ${.CURDIR}/../ex ${.CURDIR}/../sex \
	${.CURDIR}/../vi ${.CURDIR}/../svi ${.CURDIR}/../xaw \
	${.CURDIR}/../USD.doc/vi.man

SPECHDR=compat.h excmd.h options.h

CLEANFILES+=${SPECHDR} ${EX} vi.0

# General sources.
SRCS=	cut.c delete.c exf.c line.c log.c main.c mark.c msg.c options.c \
	options_f.c put.c screen.c search.c seq.c signal.c recover.c \
	term.c trace.c util.c

# Ex source.
SRCS+=	ex.c ex_abbrev.c ex_append.c ex_args.c ex_argv.c ex_at.c ex_bang.c \
	ex_cd.c ex_delete.c ex_digraph.c ex_display.c ex_edit.c ex_equal.c \
	ex_exit.c ex_file.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_preserve.c ex_print.c \
	ex_put.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_undo.c \
	ex_usage.c ex_util.c ex_version.c ex_visual.c ex_write.c ex_yank.c \
	ex_z.c excmd.c filter.c

# Ex screen source.
SRCS+=	sex_confirm.c sex_get.c sex_refresh.c sex_screen.c sex_term.c \
	sex_util.c sex_window.c

# Vi source.
SRCS+=	getc.c v_ch.c v_delete.c v_ex.c v_increment.c v_init.c v_left.c \
	v_mark.c v_match.c v_ntext.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_stop.c v_text.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 vcmd.c vi.c

# Vi curses screen source.
SRCS+=	svi_confirm.c svi_curses.c svi_ex.c svi_get.c svi_line.c \
	svi_refresh.c svi_relative.c svi_screen.c svi_smap.c svi_split.c \
	svi_term.c svi_util.c

# Athena widget set screen source.
SRCS+=	xaw_screen.c

${VI}: ${SPECHDR}

compat.h:
	:> compat.h

excmd.h: excmd.h.stub excmd.c excmd.awk
	rm -f excmd.h
	cat ${.CURDIR}/../ex/excmd.h.stub > excmd.h
	awk -f ${.CURDIR}/../ex/excmd.awk ${.CURDIR}/../ex/excmd.c >> excmd.h

options.h: options.h.stub options.c options.awk
	rm -f options.h
	cat ${.CURDIR}/options.h.stub > options.h
	awk -f ${.CURDIR}/options.awk ${.CURDIR}/options.c >> options.h

tags::
	-(cd ${.CURDIR} && rm -f tags && \
	    ctags ../common/*.[ch] ../common/*.stub ../ex/*.[ch] ../ex/*.stub \
	    ../vi/*.[ch] ../sex/*.[ch] ../svi/*.[ch] ../xaw/*.[ch])

warn:: ${SRCS}
	-(cd ${.CURDIR} && gcc -Wall -O4 -DDEBUG \
	    -Iobj -I. ${.ALLSRC} -lcurses -ltermlib 2>&1 | \
	    sed -e "/warning: .*sccsid.*defined but not used/d" \
	    	-e "/warning: suggest parentheses around/d" \
	    	-e "/In function /d" \
	    	-e "/At top level:/d" \
	    	-e "/warning: .*inline call to/d" \
	    	-e "/warning: comparison is always 1 due /d") > \
		${.CURDIR}/WARN.OUT

.include "../../Makefile.inc"
.include <bsd.prog.mk>

.depend: ${SPECHDR}
@


1.4
log
@minor adjustment
@
text
@d1 1
a1 1
#	@@(#)Makefile	8.48 (Berkeley) 8/16/94
d8 6
a13 1
PROG=	vi
d17 4
a20 1
#STRIP=
d25 4
d63 1
a63 8
#LDADD+=-pg
DPADD+= ${LIBCURSES} ${LIBTERM} ${LIBUTIL}
LDADD+=	-lcurses -ltermlib -lutil
SPECHDR=compat.h excmd.h options.h
CLEANFILES+=${SPECHDR}
LINKS=	${BINDIR}/vi ${BINDIR}/ex ${BINDIR}/vi ${BINDIR}/view

${PROG}: ${SPECHDR}
d68 5
a77 5
excmd.h: excmd.h.stub excmd.c excmd.awk
	rm -f excmd.h
	cat ${.CURDIR}/../ex/excmd.h.stub > excmd.h
	awk -f ${.CURDIR}/../ex/excmd.awk ${.CURDIR}/../ex/excmd.c >> excmd.h

a92 3

MAN=	${.CURDIR}/../USD.doc/vi.man
REF=	${.CURDIR}/../USD.doc/vi.ref
@


1.3
log
@use PROG rather than nvi
@
text
@d58 1
a58 1
${PROG}: compat.h options.h excmd.h
@


1.2
log
@vi not nvi, etc., build man page normally, and get BINDIR
@
text
@d58 1
a58 1
nvi: compat.h options.h excmd.h
@


1.1
log
@Initial revision
@
text
@d8 1
a8 1
PROG=	nvi
d14 2
a15 2
	${.CURDIR}/../vi ${.CURDIR}/../svi ${.CURDIR}/../xaw
CLEANFILES+=nex
d56 1
a56 6
LINKS=	${BINDIR}/nvi ${BINDIR}/nex

all: nvi nex vi.0
nex: nvi
	rm -f nex
	ln nvi nex
a72 4
vi.0:
	rm -f vi.0
	ln -s ${.CURDIR}/../USD.doc/vi.man/vi.0 vi.0

d92 1
@


1.1.1.1
log
@new public version of nvi
@
text
@@


1.1.1.2
log
@new public version of nvi
@
text
@d1 1
a1 1
#	@@(#)Makefile	8.51 (Berkeley) 8/17/94
a7 3
VI=	nvi
EX=	nex
VIEW=	nview
a8 2
LINKS=	${BINDIR}/${VI} ${BINDIR}/${EX} ${BINDIR}/${VI} ${BINDIR}/${VIEW}

d12 1
a12 4
#LDADD+=-pg
DPADD+= ${LIBCURSES} ${LIBTERM} ${LIBUTIL}
LDADD+=	-lcurses -ltermlib -lutil

d15 1
a15 4

SPECHDR=compat.h excmd.h options.h

CLEANFILES+=${SPECHDR} ${EX} vi.0
d51 6
a56 1
all: ${VI} ${EX} vi.0
d58 4
a61 1
${VI}: ${SPECHDR}
d63 1
a63 3
${EX}: ${VI}
	rm -f ${EX}
	ln ${VI} ${EX}
d68 5
a77 5
options.h: options.h.stub options.c options.awk
	rm -f options.h
	cat ${.CURDIR}/options.h.stub > options.h
	awk -f ${.CURDIR}/options.awk ${.CURDIR}/options.c >> options.h

d98 3
a100 1
#.include "../../Makefile.inc"
@
