Annotation of researchv9/jerq/sgs/comp/omakefile, revision 1.1.1.1

1.1       root        1: #  @(#) makefile: 1.4 2/3/84
                      2: #
                      3: #
                      4: SGS=   m32
                      5: OWN=   bin             #file owner
                      6: GRP=   bin             #file group
                      7: PROT=  775             #protections
                      8: BASE=  ../..
                      9: ROOT=  $(BASE)
                     10: 
                     11: BINDIR=        $(ROOT)/bin
                     12: LIBDIR=        $(ROOT)/lib
                     13: COMINC=        .
                     14: PCC2COM= ../common
                     15: # Directory for sdb.h
                     16: SDBINC=        .
                     17: 
                     18: FLEX=  -DFLEXNAMES
                     19: 
                     20: CC=    cc
                     21: LINT=  lint
                     22: YACC=  yacc
                     23: LFLAGS=        -p
                     24: CFLAGS=        -O
                     25: INCLIST=       -I. -I $(PCC2COM) -I$(SDBINC)
                     26: DEFLIST= -DM32B -DNODBG -DNOSIMPSTR
                     27: ODEFLIST=      $(FLEX)
                     28: LDFLAGS=-f
                     29: YFLAGS=        -l
                     30: #
                     31: STRIP=strip
                     32: SPFLAGS=
                     33: STRIP_CMD=$(STRIP) $(SPFLAGS)
                     34: #
                     35: 
                     36: CC_CMD=        $(CC) -c $(CFLAGS) $(INCLIST) $(DEFLIST) $(ODEFLIST)
                     37: YACC_CMD=      $(YACC) $(YFLAGS)
                     38: 
                     39: # use M as a short-hand for the awkward PCC2COM
                     40: # (M for Machine independent part)
                     41: 
                     42: M=     $(PCC2COM)
                     43: 
                     44: 
                     45: OFILES= cgram.o xdefs.o scan.o pftn.o trees.o optim.o local.o reader.o\
                     46:        local2.o debug.o match.o allo.o comm1.o table.o cost.o cgen.o\
                     47:        optdir.o
                     48: CFILES=        $M/cgram.c $M/xdefs.c $M/scan.c $M/pftn.c $M/cgen.c $M/cost.c \
                     49:        $M/trees.c $M/optim.c local.c $M/reader.c \
                     50:        local2.c debug.c $M/match.c $M/allo.c $M/comm1.c \
                     51:        table.c optdir.c
                     52: 
                     53: build: comp
                     54: 
                     55: #-------------------------
                     56: 
                     57: comp:  $(OFILES)
                     58:                $(CC) $(CFLAGS) $(LDFLAGS) -o comp $(OFILES)
                     59: 
                     60: sty:           $M/manifest.h $M/sty.y macdefs.h $M/mfile2.h $M/dope.h
                     61:                -@echo "Expect 3 reduce/reduce conflicts"
                     62:                $(YACC_CMD) $M/sty.y
                     63:                cc $(CFLAGS) $(LDFLAGS) -I. -I$M -o sty y.tab.c  #native cc !!!
                     64:                rm y.tab.c
                     65: 
                     66: trees.o:       $M/manifest.h macdefs.h $M/mfile1.h $(SDBINC)/sdb.h $M/trees.c
                     67:                $(CC_CMD) $M/trees.c
                     68: 
                     69: optim.o:       $M/manifest.h macdefs.h $M/mfile1.h $(SDBINC)/sdb.h $M/optim.c
                     70:                $(CC_CMD) $M/optim.c
                     71: 
                     72: pftn.o:                $M/manifest.h macdefs.h $M/mfile1.h $(SDBINC)/sdb.h $M/pftn.c
                     73:                $(CC_CMD) $M/pftn.c
                     74: 
                     75: local.o:       $M/manifest.h macdefs.h $M/mfile1.h $(SDBINC)/sdb.h
                     76:                $(CC_CMD) local.c
                     77: 
                     78: scan.o:                $M/manifest.h macdefs.h $M/mfile1.h $(SDBINC)/sdb.h $M/scan.c
                     79:                $(CC_CMD) $M/scan.c
                     80: 
                     81: xdefs.o:       $M/manifest.h $M/mfile1.h $(SDBINC)/sdb.h macdefs.h $M/xdefs.c
                     82:                $(CC_CMD) $M/xdefs.c
                     83: 
                     84: cgram.o:       $M/manifest.h $M/mfile1.h $(SDBINC)/sdb.h macdefs.h $M/cgram.c
                     85:                $(CC_CMD) -DYYDEBUG=1 $M/cgram.c
                     86: 
                     87: $M/cgram.c:    $M/cgram.y
                     88:                -@echo "Expect 6 shift/reduce conflicts"
                     89:                $(YACC_CMD) $M/cgram.y
                     90:                mv y.tab.c $M/cgram.c
                     91: 
                     92: COMMON=                $M/common $M/dope.h
                     93: comm1.o:       $M/manifest.h $M/mfile1.h $(SDBINC)/sdb.h $(COMMON) macdefs.h \
                     94:                        $M/comm1.c
                     95:                $(CC_CMD) $M/comm1.c
                     96: 
                     97: table.o:       $M/manifest.h $M/mfile2.h macdefs.h table.c
                     98:                $(CC_CMD) table.c
                     99: 
                    100: table.c:       sty stin
                    101:                -@echo "Expect 2 \"... may be covered by ...\" messages"
                    102:                ./sty <stin >table.c
                    103: 
                    104: cost.o:                $M/manifest.h $M/mfile2.h macdefs.h $M/cost.c
                    105:                $(CC_CMD) $M/cost.c
                    106: 
                    107: cgen.o:                $M/manifest.h $M/mfile2.h macdefs.h $M/cgen.c
                    108:                $(CC_CMD) $M/cgen.c
                    109: 
                    110: reader.o:      $M/manifest.h $M/mfile2.h macdefs.h $M/reader.c
                    111:                $(CC_CMD) $M/reader.c
                    112: 
                    113: local2.o:      $M/manifest.h $M/mfile2.h macdefs.h
                    114:                $(CC_CMD) local2.c
                    115: 
                    116: debug.o:       $M/mfile1.h macdefs.h $(COMINC)/storclass.h
                    117:                $(CC_CMD) debug.c
                    118: 
                    119: match.o:       $M/manifest.h $M/mfile2.h macdefs.h $M/match.c $(SDBINC)/sdb.h
                    120:                $(CC_CMD) $M/match.c
                    121: 
                    122: allo.o:                $M/manifest.h $M/mfile2.h macdefs.h $M/allo.c
                    123:                $(CC_CMD) $M/allo.c
                    124: 
                    125: optdir.o:      $M/mfile1.h macdefs.h $M/manifest.h $(COMINC)/storclass.h
                    126:                $(CC_CMD) optdir.c
                    127: 
                    128: #-------------------------
                    129: 
                    130: install:       comp
                    131:                -rm -f $(LIBDIR)/comp
                    132:                cp comp $(LIBDIR)
                    133:                -$(STRIP_CMD) $(LIBDIR)/comp
                    134:                chmod $(PROT) $(LIBDIR)/comp
                    135: #              chgrp $(GRP) $(LIBDIR)/comp
                    136: #              chown $(OWN) $(LIBDIR)/comp
                    137: 
                    138: #--------------------------
                    139: 
                    140: save:  $(LIBDIR)/comp
                    141:        -rm -f $(LIBDIR)/comp
                    142:        cp $(LIBDIR)/comp $(LIBDIR)/comp.back
                    143: 
                    144: #--------------------------
                    145: 
                    146: uninstall:     $(LIBDIR)/comp.back
                    147:                -rm -f $(LIBDIR)/comp
                    148:                cp $(LIBDIR)/comp.back $(LIBDIR)/comp
                    149: 
                    150: #--------------------------
                    151: 
                    152: shrink:        clobber
                    153: 
                    154: clean:
                    155:        -rm -f $(OFILES)
                    156: 
                    157: #--------------------------
                    158: 
                    159: clobber:       clean
                    160:                -rm -f comp table.c sty $M/cgram.c
                    161: 
                    162: #--------------------------
                    163: 
                    164: lint:  $(CFILES)
                    165:        $(LINT) $(LFLAGS) -I. -I$M -I$(SDBINC) $(CFILES) >lint.out

unix.superglobalmegacorp.com

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