Annotation of 43BSDTahoe/lib/old_compiler/pcc/pcc.vax/Makefile, revision 1.1.1.1

1.1       root        1: #
                      2: #      Makefile        1.16    87/07/06
                      3: #
                      4: # Makefile for PCC
                      5: #
                      6: # These symbols are used to configure the compiler:
                      7: #      ASSTRINGS       assembler handles string initializations
                      8: #      STABDOT         assembler understands .stabd
                      9: #      LCOMM           assembler supports .lcomm
                     10: #      FIXSTRUCT       no trickery (just output structure)
                     11: #
                     12: # Some symbols are specific to certain compilers:
                     13: #      ONEPASS         compile pass 1 and pass 2 together
                     14: #      SPRECC          do single precision in single not double
                     15: #      FORT            get f77-style pass 2
                     16: #
                     17: CONFIG=        -DASSTRINGS -DSTABDOT -DLCOMM "-DFIXSTRUCT=outstruct"
                     18: O = -O
                     19: CFLAGS = $(O) -I. -I$(M) $(CONFIG)
                     20: 
                     21: COPTS = -DONEPASS $(CFLAGS)
                     22: SCOPTS = -DONEPASS -DSPRECC $(CFLAGS)
                     23: FOPTS = -DFORT $(CFLAGS)
                     24: LDFLAGS =
                     25: 
                     26: RM=    /bin/rm -f
                     27: LN=    /bin/ln -s
                     28: 
                     29: SFILES=        strees.c slocal.c slocal2.c sallo.c sorder.c stable.c
                     30: SOBJS= strees.o slocal.o slocal2.o sallo.o sorder.o stable.o
                     31: FFILES=        freader.c fallo.c fmatch.c ftable.c forder.c flocal2.c fcomm2.c
                     32: FOBJS= freader.o fallo.o fmatch.o ftable.o forder.o flocal2.o fcomm2.o
                     33: 
                     34: P1INCS=        $M/pass1.h macdefs.h $M/manifest.h pcclocal.h $M/config.h $M/ndu.h \
                     35:        /usr/include/stdio.h
                     36: P1ONEP=        $(P1INCS) $M/onepass.h
                     37: P2INCS=        $M/pass2.h macdefs.h mac2defs.h $M/manifest.h pcclocal.h $M/config.h \
                     38:        $M/ndu.h /usr/include/stdio.h
                     39: P2ONEP=        $(P2INCS) $M/onepass.h
                     40: OBJS=  code.o rel.o stab.o comm1.o match.o optim.o pftn.o \
                     41:        reader.o scan.o xdefs.o cgram.o rodata.o
                     42: DOBJS= allo.o local.o local2.o order.o trees.o table.o
                     43: M=../../mip
                     44: TESTDIR = .
                     45: 
                     46: all: ccom sccom f1
                     47: 
                     48: #
                     49: # 'ccom' is a one-pass C compiler.
                     50: #
                     51: ccom:  ${OBJS} ${DOBJS} rel.o
                     52:        $(CC) $(LDFLAGS) ${OBJS} ${DOBJS} rel.o -o $(TESTDIR)/ccom
                     53: trees.o: $(P1ONEP) $M/trees.c
                     54:        $(CC) -c $(COPTS) $M/trees.c
                     55: optim.o: $(P1ONEP) $M/optim.c
                     56:        $(CC) -c $(COPTS) $M/optim.c
                     57: pftn.o: $(P1ONEP) $M/pftn.c
                     58:        $(CC) -c $(COPTS) $M/pftn.c
                     59: code.o: $(P1ONEP) code.c
                     60:        $(CC) -c $(COPTS) code.c
                     61: local.o: $(P1ONEP) local.c
                     62:        $(CC) -c $(COPTS) local.c
                     63: scan.o: $(P1ONEP) $M/scan.c
                     64:        $(CC) -c $(COPTS) $M/scan.c
                     65: xdefs.o: $(P1ONEP) $M/xdefs.c
                     66:        $(CC) -c $(COPTS) $M/xdefs.c
                     67: cgram.o: $(P1ONEP) cgram.c
                     68:        $(CC) -c $(COPTS) cgram.c
                     69: rodata.o: rodata.c
                     70:        $(CC) -c $(COPTS) -R rodata.c
                     71: rodata.c cgram.c: $M/cgram.y pcctokens
                     72:        cat pcctokens $M/cgram.y > gram.in
                     73:        $(YACC) gram.in
                     74:        $(RM) rodata.c
                     75:        sh ./:yyfix yyexca yyact yypact yypgo yyr1 yyr2 yychk yydef
                     76:        mv y.tab.c cgram.c
                     77: comm1.o: $(P1ONEP) $M/common.c
                     78:        $(LN) $M/common.c comm1.c
                     79:        $(CC) -c $(COPTS) -DPASS1COMMON comm1.c
                     80:        $(RM) comm1.c
                     81: stab.o: $(P1ONEP) stab.c \
                     82:        /usr/include/stab.h /usr/include/a.out.h /usr/include/sys/types.h
                     83:        $(CC) -c $(COPTS) stab.c
                     84: table.o: $(P2ONEP) table.c
                     85:        $(CC) -c $(COPTS) -R table.c
                     86: reader.o: $(P2ONEP) $M/reader.c
                     87:        $(CC) -c $(COPTS) $M/reader.c
                     88: local2.o: $(P2ONEP) local2.c
                     89:        $(CC) -c $(COPTS) local2.c
                     90: order.o: $(P2ONEP) order.c
                     91:        $(CC) -c $(COPTS) order.c
                     92: match.o: $(P2ONEP) $M/match.c
                     93:        $(CC) -c $(COPTS) $M/match.c
                     94: allo.o: $(P2ONEP) $M/allo.c
                     95:        $(CC) -c $(COPTS) $M/allo.c
                     96: 
                     97: #
                     98: # 'sccom' is a C compiler that does single precision computations in
                     99: #      single precision rather than double precision.
                    100: #
                    101: sccom: ${OBJS} ${SOBJS} rel.o
                    102:        $(CC) $(LDFLAGS) ${OBJS} ${SOBJS} rel.o -o $(TESTDIR)/sccom
                    103: strees.o: $(P1ONEP) $M/trees.c
                    104:        $(LN) $M/trees.c strees.c
                    105:        $(CC) -c $(SCOPTS) strees.c
                    106:        $(RM) strees.c
                    107: slocal.o: $(P1ONEP) local.c
                    108:        $(LN) local.c slocal.c
                    109:        $(CC) -c $(SCOPTS) slocal.c
                    110:        $(RM) slocal.c
                    111: slocal2.o: $(P2ONEP) local2.c
                    112:        $(LN) local2.c slocal2.c
                    113:        $(CC) -c $(SCOPTS) slocal2.c
                    114:        $(RM) slocal2.c
                    115: sallo.o: $(P2ONEP) $M/allo.c
                    116:        $(LN) $M/allo.c sallo.c
                    117:        $(CC) -c $(SCOPTS) sallo.c
                    118:        $(RM) sallo.c
                    119: sorder.o: $(P2ONEP) order.c
                    120:        $(LN) order.c sorder.c
                    121:        $(CC) -c $(SCOPTS) sorder.c
                    122:        $(RM) sorder.c
                    123: stable.o: $(P2ONEP) table.c
                    124:        $(LN) table.c stable.c
                    125:        $(CC) -c $(SCOPTS) -R stable.c
                    126:        $(RM) stable.c
                    127: 
                    128: #
                    129: # 'f1' is the f77 and pc code generator.
                    130: #
                    131: f1: fort.o freader.o fallo.o fmatch.o ftable.o forder.o flocal2.o \
                    132:        fcomm2.o
                    133:        $(CC) $(LDFLAGS) fort.o freader.o fallo.o fmatch.o ftable.o \
                    134:                forder.o flocal2.o fcomm2.o -o $(TESTDIR)/f1
                    135: fort.o: $(P2INCS) fort.h $M/fort.c
                    136:        $(CC) -c $(FOPTS) $M/fort.c
                    137: freader.o: $(P2INCS) $M/reader.c
                    138:        $(LN) $M/reader.c freader.c
                    139:        $(CC) -c $(FOPTS) freader.c
                    140:        $(RM) freader.c
                    141: fallo.o: $(P2INCS) $M/allo.c
                    142:        $(LN) $M/allo.c fallo.c
                    143:        $(CC) -c $(FOPTS) fallo.c
                    144:        $(RM) fallo.c
                    145: fmatch.o: $(P2INCS) $M/match.c
                    146:        $(LN) $M/match.c fmatch.c
                    147:        $(CC) -c $(FOPTS) fmatch.c
                    148:        $(RM) fmatch.c
                    149: ftable.o: $(P2INCS) table.c
                    150:        $(LN) table.c ftable.c
                    151:        $(CC) -c -R $(FOPTS) ftable.c
                    152:        $(RM) ftable.c
                    153: forder.o: $(P2INCS) order.c
                    154:        $(LN) order.c forder.c
                    155:        $(CC) -c $(FOPTS) forder.c
                    156:        $(RM) forder.c
                    157: flocal2.o: $(P2INCS) local2.c
                    158:        $(LN) local2.c flocal2.c
                    159:        $(CC) -c $(FOPTS) flocal2.c
                    160:        $(RM) flocal2.c
                    161: fcomm2.o: $(P2INCS) $M/common.c
                    162:        $(LN) $M/common.c fcomm2.c
                    163:        $(CC) -c $(FOPTS) -DPASS2COMMON fcomm2.c
                    164:        $(RM) fcomm2.c
                    165: 
                    166: install: all
                    167:        install -s -o bin -g bin -m 755 ${TESTDIR}/ccom ${DESTDIR}/lib/ccom
                    168:        install -s -o bin -g bin -m 755 ${TESTDIR}/sccom ${DESTDIR}/lib/sccom
                    169:        install -s -o bin -g bin -m 755 ${TESTDIR}/f1 ${DESTDIR}/lib/f1
                    170: 
                    171: GREP=  egrep
                    172: 
                    173: pcclocal.h: localdefs.h /usr/include/pcc.h
                    174:        $(RM) pcclocal.h
                    175:        cat /usr/include/pcc.h localdefs.h | $(GREP) '^#[       ]*(define[      ][      ]*PCC(F|T|TM|OM)?_|ifdef|ifndef|endif)' | sed -e 's/PCC[A-Z]*_//' > pcclocal.h 
                    176: 
                    177: pcctokens: localdefs.h /usr/include/pcc.h
                    178:        $(RM) pcctokens
                    179:        cat /usr/include/pcc.h localdefs.h | $(GREP) '^#[       ]*define[       ][      ]*PCC_' | sed -e 's/^#[         ]*define[       ][      ]*PCC_/%term    /' > pcctokens
                    180: 
                    181: DUMMIES=       $(SFILES) $(FFILES)
                    182: 
                    183: shrink:
                    184:        $(RM) *.o ccom sccom f1 $(DUMMIES)
                    185: clean:
                    186:        $(RM) *.o ccom sccom f1 cgram.c rodata.c pcctokens pcclocal.h gram.in $(DUMMIES)
                    187: sfix:
                    188:        $(RM) $(SFILES)
                    189: sclean:
                    190:        $(RM) $(SOBJS) $(SFILES)
                    191: ffix:
                    192:        $(RM) $(FFILES)
                    193: fclean:
                    194:        $(RM) $(FOBJS) $(FFILES)
                    195: 
                    196: lintall:
                    197:        lint -hax -I. -I$M  cgram.c $M/xdefs.c $M/scan.c $M/pftn.c \
                    198:                $M/trees.c $M/optim.c code.c local.c stab.c $M/reader.c \
                    199:                local2.c order.c $M/match.c $M/allo.c $M/comm1.c table.c
                    200: 
                    201: depend:
                    202: tags:

unix.superglobalmegacorp.com

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