1# @(#)Makefile 7.28 (Berkeley) 06/19/90 2 3VERSION=3.7 4 5# Things that can be turned off to save space: 6# LISPCODE (-l flag, showmatch and lisp options) 7# UCVISUAL (visual \ nonsense on upper case only terminals) 8# CHDIR (the undocumented chdir command) 9# CRYPT includes code to edit encrypted files (the -x option, like ed.) 10# VMUNIX makes ex considerably larger, raising many limits and 11# improving speed and simplicity of maintenance. 12# 13# If your system expands tabs to 4 spaces you should -DTABS=4 below. 14# 15PROG= ex 16SUBDIR= ex3.7recover ex3.7preserve 17CFLAGS+=-DTABS=8 -DCRYPT -DLISPCODE -DCHDIR -DUCVISUAL -DVFORK -DVMUNIX \ 18 -DFASTTAG -DUNIX_SBRK 19SRCS= ex.c ex_addr.c ex_cmds.c ex_cmds2.c ex_cmdsub.c ex_data.c ex_extern.c \ 20 ex_get.c ex_io.c ex_put.c ex_re.c ex_set.c ex_subr.c ex_tagio.c \ 21 ex_temp.c ex_tty.c ex_unix.c ex_v.c ex_vadj.c ex_vget.c ex_vmain.c \ 22 ex_voper.c ex_vops.c ex_vops2.c ex_vops3.c ex_vput.c ex_vwind.c \ 23 printf.c 24BINMODE=1755 25DPADD= strings.o ${LIBTERMCAP} 26LDADD= strings.o -z -ltermcap 27MAN1= ex.0 vi.0 28LINKS= ${BINDIR}/ex ${BINDIR}/vi ${BINDIR}/ex ${BINDIR}/view \ 29 ${BINDIR}/ex ${BINDIR}/edit 30 31# If we don't have ex we can't make ex_vars.h, so don't remove it! 32CLEANFILES+= strings 33 34SHAREDSTRINGS= sharedstrings 35 36ex_vars.h: ex_data.c 37 csh makeoptions ${CFLAGS} 38 39# xstr: hands off! 40strings.o: strings 41 xstr 42 ${CC} -c -S xs.c 43 ed - < ${.CURDIR}/rofix xs.s 44 ${AS} -o strings.o xs.s 45 rm xs.s 46 47.include <bsd.prog.mk> 48