xref: /original-bsd/usr.bin/ex/Makefile (revision 3705696b)
1#	@(#)Makefile	8.1 (Berkeley) 06/18/93
2
3# Things that can be turned off to save space:
4#	LISPCODE (-l flag, showmatch and lisp options)
5#	UCVISUAL (visual \ nonsense on upper case only terminals)
6#	CHDIR (the undocumented chdir command)
7#	CRYPT includes code to edit encrypted files (the -x option, like ed.)
8#	VMUNIX makes ex considerably larger, raising many limits and
9#		improving speed and simplicity of maintenance.
10#
11# If your system expands tabs to 4 spaces you should -DTABS=4 below.
12#
13PROG=	ex
14SUBDIR=	ex3.7recover ex3.7preserve
15CFLAGS+=-I. -DTABS=8 -DCRYPT -DLISPCODE -DCHDIR -DUCVISUAL -DVFORK -DVMUNIX \
16	-DFASTTAG -DUNIX_SBRK
17SRCS=	ex.c ex_addr.c ex_cmds.c ex_cmds2.c ex_cmdsub.c ex_data.c ex_extern.c \
18	ex_get.c ex_io.c ex_put.c ex_re.c ex_set.c ex_subr.c ex_tagio.c \
19	ex_temp.c ex_tty.c ex_unix.c ex_v.c ex_vadj.c ex_vget.c ex_vmain.c \
20	ex_voper.c ex_vops.c ex_vops2.c ex_vops3.c ex_vput.c ex_vwind.c \
21	printf.c
22BINMODE=1755
23DPADD=	${LIBTERMCAP}
24LDADD=	-ltermcap
25MAN1=	ex.0 vi.0
26MLINKS=	ex.1 edit.1 vi.1 view.1
27LINKS=	${BINDIR}/ex ${BINDIR}/vi ${BINDIR}/ex ${BINDIR}/view \
28	${BINDIR}/ex ${BINDIR}/edit
29
30# There's a boostrap problem here -- ex is necessary to build ex_vars.h.
31# The file ex_vars.h.init can be used to build a version of ex to start
32# with.
33CLEANFILES+=ex_vars.h
34
35ex_vars.h: ex_data.c
36	csh -f ${.CURDIR}/makeoptions ${.CURDIR}/ex_data.c ${CFLAGS:M-[ID]*}
37
38.include <bsd.prog.mk>
39
40${OBJS} ${SUBDIR} .depend: ex_vars.h
41