Annotation of 42BSD/ucb/ex/makefile.70, revision 1.1.1.1

1.1       root        1: VERSION=3.7
                      2: #
                      3: # Ex skeletal makefile for version 7, USGS Overlay 11/70 system
                      4: #
                      5: # NB: This makefile doesn't indicate any dependencies on header files.
                      6: #
                      7: # Ex is very large - this version will not fit on PDP-11's without overlay
                      8: # software.  Things that can be turned off to save
                      9: # space include LISPCODE (-l flag, showmatch and lisp options), UCVISUAL
                     10: # (visual \ nonsense on upper case only terminals), CHDIR (the undocumented
                     11: # chdir command.)  CRYPT includes code to handle the -x option to allow
                     12: # encrypted files.  Defining CRYPT drags in most of stdio (from the call
                     13: # to getpass) and makes vi about 4k text and 4k data bigger).
                     14: # VMUNIX makes ex considerably larger, raising many limits
                     15: # and improving speed and simplicity of maintenance.  It is suitable only
                     16: # for a VAX or other large machine, and then probably only in a paged system.
                     17: #
                     18: # Don't define VFORK unless your system has the VFORK system call,
                     19: # which is like fork but the two processes have only one data space until the
                     20: # child execs. This speeds up ex by saving the memory copy.
                     21: #
                     22: # If your system expands tabs to 4 spaces you should -DTABS=4 below
                     23: #
                     24: # If your system has no floating point unit, you should use FP= -f
                     25: # and change the the appropriate invocation of ${LD}.
                     26: #
                     27: BINDIR=        /usr/ucb/bin
                     28: NBINDIR=/usr/new/bin
                     29: LIBDIR=        /usr/ucb/lib
                     30: FOLD=  ${BINDIR}/fold
                     31: CTAGS= ${BINDIR}/ctags
                     32: XSTR=  ${BINDIR}/xstr
                     33: CC=    cc -V
                     34: AS=    ovas
                     35: LD=    ovld
                     36: DEBUGFLAGS=    -DTRACE
                     37: NONDEBUGFLAGS= -O
                     38: DEB=   ${NONDEBUGFLAGS}        # or ${DEBUGFLAGS} to to debug
                     39: CFLAGS=        -DTABS=8 -DLISPCODE -DCHDIR -DUCVISUAL ${DEB}
                     40: FP=
                     41: TERMLIB=       -lovtermlib
                     42: MKSTR= ${BINDIR}/mkstr
                     43: CXREF= ${BINDIR}/cxref
                     44: # PRINTF=      printf.o; PRINTFS=printf.c
                     45: PRINTF=        ovprintf.o ovdoprnt.o
                     46: PRINTFS=ovprintf.c ovdoprnt.s
                     47: FMT=   -i      # 11/45, 70
                     48: # FMT= -n      # 11/23, 34, 40
                     49: INCLUDE=/usr/include
                     50: PR=    pr
                     51: GET=   sccs get 
                     52: OBJS=  ex.o ex_addr.o ex_cmds.o ex_cmds2.o ex_cmdsub.o \
                     53:        ex_data.o ex_get.o ex_io.o ex_put.o ex_re.o \
                     54:        ex_set.o ex_subr.o ex_temp.o ex_tty.o ex_unix.o \
                     55:        ex_v.o ex_vadj.o ex_vget.o ex_vmain.o ex_voper.o \
                     56:        ex_vops.o ex_vops2.o ex_vops3.o ex_vput.o ex_vwind.o \
                     57:        ${PRINTF} bcopy.o ex_extern.o strings.o
                     58: SRCS=  ex.h ex_argv.h ex_re.h ex_temp.h ex_tty.h ex_tune.h ex_vars.h ex_vis.h\
                     59:        ex.c ex_addr.c ex_cmds.c ex_cmds2.c ex_cmdsub.c \
                     60:        ex_data.c ex_get.c ex_io.c ex_put.c ex_re.c \
                     61:        ex_set.c ex_subr.c ex_temp.c ex_tty.c ex_unix.c \
                     62:        ex_v.c ex_vadj.c ex_vget.c ex_vmain.c ex_voper.c \
                     63:        ex_vops.c ex_vops2.c ex_vops3.c ex_vput.c ex_vwind.c \
                     64:        ${PRINTFS} bcopy.c
                     65: 
                     66: .c.o:
                     67:        ${MKSTR} - ex${VERSION}strings x $*.c
                     68:        ${CC} -E ${CFLAGS} x$*.c | ${XSTR} -c -
                     69:        rm -f x$*.c
                     70:        ${CC} ${CFLAGS} -c x.c 
                     71:        mv x.o $*.o
                     72: 
                     73: # 11/23, 34, 40 and other non split I/D machines
                     74: # each of the 6 overlays must stay less than 16K.
                     75: # a.out: ${OBJS}
                     76: # if no floating point unit
                     77: #      ${LD} -X /lib/fcrt0.o ${FMT} \
                     78: # end no floating point unit
                     79:        ${LD} -X /lib/crt0.o ${FMT} \
                     80:            -Z ex_cmds.o ex_cmds2.o ex_cmdsub.o ex_re.o \
                     81:            -Z ex_vadj.o ex_vmain.o ex_voper.o ex_vwind.o ex_vops3.o\
                     82:            -Z ex_v.o ex_vget.o ex_vops.o ex_vops2.o ex_vput.o\
                     83:            -Z ex_get.o ex_io.o ex_temp.o ex_tty.o ex_unix.o ex_addr.o ex.o ex_set.o \
                     84:            -Z ex_put.o ex_subr.o ${TERMLIB} \
                     85:            -L ex_data.o ex_extern.o ${PRINTF} strings.o -lovc
                     86: 
                     87: a.out: ${OBJS}
                     88: # if no floating point unit
                     89: #      ${LD} -X /lib/fcrt0.o -i \
                     90: # end no floating point unit
                     91:        ${LD} -X /lib/crt0.o ${FMT}\
                     92:            -Z ex_voper.o ex_vget.o ex_vops.o ex_vops2.o ex_vops3.o \
                     93:            -Z ex_set.o ex_re.o ex_io.o ex_tty.o ex_unix.o ex.o ex_v.o \
                     94:            -L ex_addr.o ex_cmds.o ex_cmds2.o ex_cmdsub.o ex_get.o ex_temp.o\
                     95:               ex_vadj.o ex_vmain.o ex_vwind.o\
                     96:               ex_vput.o ex_put.o ex_subr.o ${PRINTF} strings.o \
                     97:               ex_data.o ex_extern.o ${TERMLIB} -lovc 
                     98: 
                     99: all:   a.out exrecover expreserve
                    100: 
                    101: tags:  /tmp
                    102:        ${CTAGS} -w ex.[hc] ex_*.[hc]
                    103: 
                    104: # ex_vars.h:
                    105: #      csh makeoptions ${CFLAGS}
                    106: 
                    107: strings.o: strings
                    108:        ${XSTR}
                    109:        ${CC} -c -S xs.c
                    110: #      ed - <rofix xs.s
                    111:        ${AS} -o strings.o xs.s
                    112:        rm xs.s
                    113:        
                    114: exrecover: exrecover.o
                    115:        ${CC} ${FP} ${CFLAGS} exrecover.o ex_extern.o -o exrecover
                    116: 
                    117: exrecover.o: exrecover.c
                    118:        ${CC} ${CFLAGS} -c -O exrecover.c
                    119: 
                    120: expreserve: expreserve.o
                    121:        ${CC} ${FP} expreserve.o ex_extern.o -o expreserve
                    122: 
                    123: expreserve.o:
                    124:        ${CC} ${CFLAGS} -c -O expreserve.c
                    125: 
                    126: clean:
                    127: #      If we dont have ex we cant make it so dont rm ex_vars.h
                    128:        -rm -f a.out exrecover expreserve strings core errs trace
                    129:        -rm -f *.o x*.[cs]
                    130: 
                    131: # install a new version for testing in /usr/new
                    132: ninstall: a.out
                    133:        -rm -f ${DESTDIR}${NBINDIR}/ex ${DESTDIR}${NBINDIR}/vi ${DESTDIR}${NBINDIR}/view
                    134:        cp a.out ${DESTDIR}${NBINDIR}/ex
                    135: #      -cp ex${VERSION}strings ${LIBDIR}/ex${VERSION}strings
                    136:        ln ${DESTDIR}${NBINDIR}/ex ${DESTDIR}${NBINDIR}/vi
                    137:        ln ${DESTDIR}${NBINDIR}/ex ${DESTDIR}${NBINDIR}/view
                    138:        chmod 1755 ${DESTDIR}${NBINDIR}/ex
                    139: 
                    140: # install in standard place (/usr/ucb)
                    141: install: a.out exrecover expreserve
                    142:        -rm -f ${DESTDIR}${BINDIR}/ex
                    143:        -rm -f ${DESTDIR}${BINDIR}/vi
                    144:        -rm -f ${DESTDIR}${BINDIR}/view
                    145:        -rm -f ${DESTDIR}${BINDIR}/edit
                    146:        -rm -f ${DESTDIR}${BINDIR}/e
                    147:        -rm -f ${DESTDIR}/usr/bin/ex
                    148:        cp a.out ${DESTDIR}${BINDIR}/ex
                    149: #      cp ex${VERSION}strings ${DESTDIR}/${LIBDIR}/ex${VERSION}strings
                    150:        ln ${DESTDIR}${BINDIR}/ex ${DESTDIR}${BINDIR}/edit
                    151:        ln ${DESTDIR}${BINDIR}/ex ${DESTDIR}${BINDIR}/e
                    152:        ln ${DESTDIR}${BINDIR}/ex ${DESTDIR}${BINDIR}/vi
                    153:        ln ${DESTDIR}${BINDIR}/ex ${DESTDIR}${BINDIR}/view
                    154:        ln ${DESTDIR}${BINDIR}/ex ${DESTDIR}/usr/bin/ex
                    155:        chmod 1755 ${DESTDIR}${BINDIR}/ex
                    156:        cp exrecover ${DESTDIR}${LIBDIR}/ex${VERSION}recover
                    157:        cp expreserve ${DESTDIR}${LIBDIR}/ex${VERSION}preserve
                    158:        chmod 4755 ${DESTDIR}${LIBDIR}/ex${VERSION}recover ${DESTDIR}${LIBDIR}/ex${VERSION}preserve
                    159: # The following line normally fails.  This is OK.
                    160:        mkdir ${DESTDIR}/usr/preserve
                    161: 
                    162: # move from /usr/new to /usr/ucb
                    163: newucb: a.out
                    164:        -rm -f ${DESTDIR}${BINDIR}/ex
                    165:        -rm -f ${DESTDIR}${BINDIR}/vi
                    166:        -rm -f ${DESTDIR}${BINDIR}/edit
                    167:        -rm -f ${DESTDIR}${BINDIR}/e
                    168:        -rm -f ${DESTDIR}/usr/bin/ex
                    169:        mv ${DESTDIR}${NBINDIR}/ex ${DESTDIR}${NBINDIR}/ex
                    170:        -rm -f ${DESTDIR}${NBINDIR}/vi
                    171:        ln ${DESTDIR}${BINDIR}/ex ${DESTDIR}${BINDIR}/edit
                    172:        ln ${DESTDIR}${BINDIR}/ex ${DESTDIR}${BINDIR}/e
                    173:        ln ${DESTDIR}${BINDIR}/ex ${DESTDIR}${BINDIR}/vi
                    174:        ln ${DESTDIR}${BINDIR}/ex ${DESTDIR}/usr/bin/ex
                    175:        chmod 1755 ${DESTDIR}${BINDIR}/ex
                    176: 
                    177: lint:
                    178:        lint ${CFLAGS} ex.c ex_?*.c
                    179:        lint ${CFLAGS} -u exrecover.c
                    180:        lint ${CFLAGS} expreserve.c
                    181: 
                    182: print:
                    183:        @${PR} READ* BUGS
                    184:        @${PR} makefile*
                    185:        @${PR} /etc/termcap
                    186:        @(size -l a.out ; size *.o) | ${PR} -h sizes
                    187:        @${PR} -h errno.h ${INCLUDE}/errno.h
                    188:        @${PR} -h setjmp.h ${INCLUDE}/setjmp.h
                    189:        @${PR} -h sgtty.h ${INCLUDE}/sgtty.h
                    190:        @${PR} -h signal.h ${INCLUDE}/signal.h
                    191:        @${PR} -h sys/stat.h ${INCLUDE}/sys/stat.h
                    192:        @${PR} -h sys/types.h ${INCLUDE}/sys/types.h
                    193:        @ls -ls | ${PR}
                    194:        @${CXREF} *.c | ${PR} -h XREF
                    195:        @${PR} *.h *.c

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.