X-Git-Url: https://git.subgeniuskitty.com/unix-history/.git/blobdiff_plain/5838215af25ab21ab6534072e434f2c4af781f86..b836967ee379f2faa07da0a838f14f422b7f1a2e:/usr/src/usr.bin/ex/Makefile diff --git a/usr/src/usr.bin/ex/Makefile b/usr/src/usr.bin/ex/Makefile index e5f968b702..ba7125126e 100644 --- a/usr/src/usr.bin/ex/Makefile +++ b/usr/src/usr.bin/ex/Makefile @@ -1,15 +1,33 @@ -VERSION=3.5 # -# Ex skeletal makefile for VAX VM/Unix version 7 +# Copyright (c) 1980 Regents of the University of California. +# All rights reserved. The Berkeley software License Agreement +# specifies the terms and conditions for redistribution. # -# NB: This makefile doesn't indicate any dependencies on header files. +# @(#)Makefile 7.18 (Berkeley) %G% +# +# +# Copyright (c) 1980 Regents of the University of California. +# All rights reserved. The Berkeley software License Agreement +# specifies the terms and conditions for redistribution. +# +# @(#)Makefile 7.18 (Berkeley) %G% +# +# +# Copyright (c) 1980 Regents of the University of California. +# All rights reserved. The Berkeley software License Agreement +# specifies the terms and conditions for redistribution. +# +# @(#)Makefile 7.18 (Berkeley) %G% +# +VERSION=3.7 +# +# Ex skeletal makefile for VAX VM/Unix 4.2BSD # # Ex is very large - this version will not fit on PDP-11's without overlay # software. Things that can be turned off to save # space include LISPCODE (-l flag, showmatch and lisp options), UCVISUAL # (visual \ nonsense on upper case only terminals), CHDIR (the undocumented -# chdir command.) CRYPT includes the code to edit encrypted files (the -x -# option, like ed.) VMUNIX makes ex considerably larger, raising many limits +# chdir command.) VMUNIX makes ex considerably larger, raising many limits # and improving speed and simplicity of maintenance. It is suitable only # for a VAX or other large machine, and then probably only in a paged system. # @@ -19,199 +37,426 @@ VERSION=3.5 # # If your system expands tabs to 4 spaces you should -DTABS=4 below # -BINDIR= /usr/ucb -NBINDIR=/usr/new -LIBDIR= /usr/lib -FOLD= ${BINDIR}/fold -CTAGS= ${BINDIR}/ctags -XSTR= ${BINDIR}/xstr -DEBUGFLAGS= -DTRACE -g -NONDEBUGFLAGS= -O -DEB= ${NONDEBUGFLAGS} # or ${DEBUGFLAGS} to to debug -CFLAGS= -DTABS=8 -DCRYPT -DLISPCODE -DCHDIR -DUCVISUAL -DVFORK -DVMUNIX ${DEB} -LDFLAGS= -z # or -i or -n -TERMLIB= -ltermlib -MKSTR= ${BINDIR}/mkstr -CXREF= ${BINDIR}/cxref -INCLUDE=/usr/include -PR= pr -OBJS= ex.o ex_addr.o ex_cmds.o ex_cmds2.o ex_cmdsub.o \ - ex_data.o ex_get.o ex_io.o ex_put.o ex_re.o \ - ex_set.o ex_subr.o ex_temp.o ex_tty.o ex_unix.o \ - ex_v.o ex_vadj.o ex_vget.o ex_vmain.o ex_voperate.o \ - ex_vops.o ex_vops2.o ex_vops3.o ex_vput.o ex_vwind.o \ +BINDIR= /usr/ucb +NBINDIR= /usr/new +LIBDIR= /usr/lib +OPTIONS= -DCRYPT -DLISPCODE -DCHDIR -DUCVISUAL -DVFORK -DVMUNIX \ + -DFASTTAG -DUNIX_SBRK +CFLAGS= -DTABS=8 -O ${OPTIONS} +LDFLAGS= -z # or -i or -n +LIBC= /lib/libc.a + +OBJS= ex.o ex_addr.o ex_cmds.o ex_cmds2.o ex_cmdsub.o ex_data.o ex_extern.o \ + ex_get.o ex_io.o ex_put.o ex_re.o ex_set.o ex_subr.o ex_tagio.o \ + ex_temp.o ex_tty.o ex_unix.o ex_v.o ex_vadj.o ex_vget.o ex_vmain.o \ + ex_voper.o ex_vops.o ex_vops2.o ex_vops3.o ex_vput.o ex_vwind.o \ printf.o bcopy.o strings.o HDRS= ex.h ex_argv.h ex_re.h ex_temp.h ex_tty.h ex_tune.h ex_vars.h ex_vis.h -SRC1= ex.c ex_addr.c ex_cmds.c ex_cmds2.c ex_cmdsub.c -SRC2= ex_data.c ex_get.c ex_io.c ex_put.c ex_re.c -SRC3= ex_set.c ex_subr.c ex_temp.c ex_tty.c ex_unix.c -SRC4= ex_v.c ex_vadj.c ex_vget.c ex_vmain.c ex_voperate.c -SRC5= ex_vops.c ex_vops2.c ex_vops3.c ex_vput.c ex_vwind.c -SRC6= printf.c bcopy.c expreserve.c exrecover.c -MISC= makefile READ_ME :rofix -VGRIND= csh /usr/ucb/vgrind -VHDR= "Ex Version ${VERSION}" +SRCS= ex.c ex_addr.c ex_cmds.c ex_cmds2.c ex_cmdsub.c ex_data.c ex_get.c \ + ex_io.c ex_put.c ex_re.c ex_set.c ex_subr.c ex_tagio.c ex_temp.c \ + ex_tty.c ex_unix.c ex_v.c ex_vadj.c ex_vget.c ex_vmain.c ex_voper.c \ + ex_vops.c ex_vops2.c ex_vops3.c ex_vput.c ex_vwind.c printf.c bcopy.c .c.o: -# ${MKSTR} - ex${VERSION}strings x $*.c - ${CC} -E ${CFLAGS} $*.c | ${XSTR} -c - +# ifdef VMUNIX + ${CC} -E ${CFLAGS} $*.c | xstr -c - +# else +# mkstr - ex${VERSION}strings x $*.c +# ${CC} -E ${CFLAGS} x$*.c | xstr -c - # rm -f x$*.c +# endif ${CC} ${CFLAGS} -c x.c mv x.o $*.o -a.out: ${OBJS} - ${CC} ${LDFLAGS} ${OBJS} ${TERMLIB} +all: ex exrecover expreserve -all: a.out exrecover expreserve tags +ex: ${OBJS} ${LIBC} + ${CC} ${LDFLAGS} ${OBJS} -ltermcap -tags: /tmp - ${CTAGS} -w ex.[hc] ex_*.[hc] +ex_vars.h: ex_data.c + csh makeoptions ${CFLAGS} -${OBJS}: ex_vars.h - -# ex_vars.h: -# csh makeoptions ${CFLAGS} - -bcopy.o: bcopy.c +bcopy.o: bcopy.c ${CC} -c ${CFLAGS} bcopy.c # xstr: hands off! strings.o: strings - ${XSTR} + xstr ${CC} -c -S xs.c - ed - <:rofix xs.s + ed -