1# @(#)Makefile 7.34 (Berkeley) 03/08/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 26LINKS= ${BINDIR}/ex ${BINDIR}/vi ${BINDIR}/ex ${BINDIR}/view \ 27 ${BINDIR}/ex ${BINDIR}/edit 28 29# There's a boostrap problem here -- ex is necessary to build ex_vars.h. 30# The file ex_vars.h.init can be used to build a version of ex to start 31# with. 32CLEANFILES+=ex_vars.h 33 34ex_vars.h: ex_data.c 35 csh -f ${.CURDIR}/makeoptions ${.CURDIR}/ex_data.c ${CFLAGS:M-[ID]*} 36 37.include <bsd.prog.mk> 38 39${OBJS} ${SUBDIR} .depend: ex_vars.h 40