Annotation of 41BSD/cmd/f77/Makefile, 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: 
                      7: CFLAGS = -O $(CFL)
                      8: 
                      9: DESTDIR = 
                     10: 
                     11: OBJECTS = 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 vaxx.o
                     14: 
                     15: compiler : f77 f77pass1
                     16:        touch compiler
                     17: 
                     18: f77 : driver.o vaxx.o
                     19:        cc -n driver.o vaxx.o -o f77
                     20:        @size f77
                     21: 
                     22: f77pass1 : $(OBJECTS)
                     23:        @echo LOAD
                     24:        @$(CC) $(LDFLAGS) $(OBJECTS) -o f77pass1
                     25:        @size f77pass1
                     26: 
                     27: gram.c:        gram.head gram.dcl gram.expr gram.exec gram.io tokdefs
                     28:        ( sed <tokdefs "s/#define/%token/" ;\
                     29:                cat gram.head gram.dcl gram.expr gram.exec gram.io ) >gram.in
                     30:        $(YACC) $(YFLAGS) gram.in
                     31:        @echo "(expect 4 shift/reduce)"
                     32:        mv y.tab.c gram.c
                     33:        rm gram.in
                     34: 
                     35: tokdefs: tokens
                     36:        grep -n . <tokens | sed "s/\([^:]*\):\(.*\)/#define \2 \1/" >tokdefs
                     37: lex.o : tokdefs
                     38: driver.o $(OBJECTS)  : defs defines machdefs ftypes
                     39: driver.o : drivedefs
                     40: io.o : fio.h
                     41: 
                     42: machdefs : vaxdefs
                     43:        cp vaxdefs machdefs
                     44: 
                     45: put.o putpcc.o vax.o : pccdefs
                     46: 
                     47: install : ${DESTDIR}/usr/bin/f77 ${DESTDIR}/usr/lib/f77pass1
                     48: 
                     49: ${DESTDIR}/usr/bin/f77 : f77
                     50:        strip f77
                     51:        @size f77 ${DESTDIR}/usr/bin/f77
                     52:        cp f77 ${DESTDIR}/usr/bin/f77
                     53: 
                     54: ${DESTDIR}/usr/lib/f77pass1 : f77pass1
                     55:        strip f77pass1
                     56:        @size f77pass1 ${DESTDIR}/usr/lib/f77pass1
                     57:        cp f77pass1 ${DESTDIR}/usr/lib/f77pass1
                     58: 
                     59: clean:
                     60:        -rm gram.c *.o f77 f77pass1 tokdefs compiler
                     61:        du

unix.superglobalmegacorp.com

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