Annotation of researchv10no/cmd/f77/mkfile, revision 1.1.1.1

1.1       root        1: #      Makefile for a Fortran 77 compiler
                      2: #      running on the VAX, generating code for the VAX,
                      3: #      using the second pass of the Portable C compiler as code generator.
                      4: 
                      5: CFL = -DHERE=VAX -DTARGET=VAX -DFAMILY=PCC -DUCBVAXASM -DUCBPASS2
                      6: g = -O
                      7: CFLAGS = $g $CFL
                      8: 
                      9: DESTDIR = 
                     10: 
                     11: OBJECTSd = main.o init.o gram.o lex.o proc.o equiv.o data.o \
                     12:          expr.o exec.o intr.o io.o misc.o error.o put.o \
                     13:          putpcc.o vax.o
                     14: OBJECTS = $OBJECTSd vaxx.o
                     15: 
                     16: compiler: f77 f77pass1
                     17:        touch compiler
                     18: 
                     19: f77: driver.o vaxx.o
                     20:        cc driver.o vaxx.o -o f77
                     21:        size f77
                     22: 
                     23: f77pass1: $OBJECTS
                     24:        echo LOAD
                     25:        $CC $LDFLAGS $OBJECTS -o f77pass1
                     26:        size f77pass1
                     27: 
                     28: gram.c:        gram.head gram.dcl gram.expr gram.exec gram.io defs tokdefs
                     29:        ( sed <tokdefs "s/#define/%token/" ;\
                     30:                cat gram.head gram.dcl gram.expr gram.exec gram.io ) >gram.in
                     31:        $YACC $YFLAGS gram.in
                     32:        echo "(expect 4 shift/reduce)"
                     33:        mv y.tab.c gram.c
                     34:        rm gram.in
                     35: 
                     36: $OBJECTSd: defs
                     37: defs: ftypes defines machdefs
                     38: 
                     39: tokdefs: tokens
                     40:        grep -n . <tokens | sed "s/\([^:]*\):\(.*\)/#define \2 \1/" >tokdefs
                     41: lex.o : tokdefs
                     42: driver.o $OBJECTS  : defines machdefs drivedefs ftypes
                     43: driver.o : drivedefs
                     44: proc.o: tokdefs
                     45: io.o: fio.h
                     46: vaxx.o: defines machdefs
                     47: 
                     48: machdefs : vaxdefs
                     49:        cp vaxdefs machdefs
                     50: 
                     51: put.o putpcc.o vax.o: pccdefs
                     52: 
                     53: install: ${DESTDIR}/usr/bin/f77 ${DESTDIR}/usr/lib/f77pass1
                     54: 
                     55: ${DESTDIR}/usr/bin/f77 : f77
                     56:        size f77 ${DESTDIR}/usr/bin/f77
                     57:        cp f77 ${DESTDIR}/usr/bin/f77
                     58: 
                     59: ${DESTDIR}/usr/lib/f77pass1 : f77pass1
                     60:        size f77pass1 ${DESTDIR}/usr/lib/f77pass1
                     61:        cp f77pass1 ${DESTDIR}/usr/lib/f77pass1
                     62: 
                     63: clean:
                     64:        set +e; rm gram.c *.o f77 f77pass1 tokdefs compiler; set -e
                     65:        du; set -e

unix.superglobalmegacorp.com

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