xref: /csrg-svn/usr.bin/ex/Makefile (revision 64298)
1*64298Smckusick#	@(#)Makefile	8.1.1.1 (Berkeley) 08/19/93
242883Sbostic
342883Sbostic# Things that can be turned off to save space:
442883Sbostic#	LISPCODE (-l flag, showmatch and lisp options)
542883Sbostic#	UCVISUAL (visual \ nonsense on upper case only terminals)
642883Sbostic#	CHDIR (the undocumented chdir command)
742883Sbostic#	VMUNIX makes ex considerably larger, raising many limits and
842883Sbostic#		improving speed and simplicity of maintenance.
921643Sdist#
1042883Sbostic# If your system expands tabs to 4 spaces you should -DTABS=4 below.
1121643Sdist#
1242883SbosticPROG=	ex
1343273SbosticSUBDIR=	ex3.7recover ex3.7preserve
14*64298SmckusickCFLAGS+=-I. -DTABS=8 -DLISPCODE -DCHDIR -DUCVISUAL -DVFORK -DVMUNIX \
1542883Sbostic	-DFASTTAG -DUNIX_SBRK
1642883SbosticSRCS=	ex.c ex_addr.c ex_cmds.c ex_cmds2.c ex_cmdsub.c ex_data.c ex_extern.c \
1742883Sbostic	ex_get.c ex_io.c ex_put.c ex_re.c ex_set.c ex_subr.c ex_tagio.c \
1842883Sbostic	ex_temp.c ex_tty.c ex_unix.c ex_v.c ex_vadj.c ex_vget.c ex_vmain.c \
1942883Sbostic	ex_voper.c ex_vops.c ex_vops2.c ex_vops3.c ex_vput.c ex_vwind.c \
2042883Sbostic	printf.c
2142883SbosticBINMODE=1755
2247703SbosticDPADD=	${LIBTERMCAP}
2358574SralphLDADD=	-ltermcap
2442883SbosticMAN1=	ex.0 vi.0
2563543SbosticMLINKS=	ex.1 edit.1 vi.1 view.1
2642883SbosticLINKS=	${BINDIR}/ex ${BINDIR}/vi ${BINDIR}/ex ${BINDIR}/view \
2742883Sbostic	${BINDIR}/ex ${BINDIR}/edit
2831533Sbostic
2943855Sbostic# There's a boostrap problem here -- ex is necessary to build ex_vars.h.
3043855Sbostic# The file ex_vars.h.init can be used to build a version of ex to start
3143855Sbostic# with.
3247703SbosticCLEANFILES+=ex_vars.h
33464Smark
3431533Sbosticex_vars.h: ex_data.c
3544354Sbostic	csh -f ${.CURDIR}/makeoptions ${.CURDIR}/ex_data.c ${CFLAGS:M-[ID]*}
36485Smark
3742883Sbostic.include <bsd.prog.mk>
3843855Sbostic
3944290Sbostic${OBJS} ${SUBDIR} .depend: ex_vars.h
40