Annotation of researchv10no/cmd/gre/mkfile, revision 1.1

1.1     ! root        1: NPROC=2
        !             2: CFLAGS=-DMEMMOVE -N -I/usr/include/lcc -I/usr/include/libc # -A -p -DPROFILING # -DUSE_STDIO
        !             3: # CC should be an ansi compiler (or c++); OCC any old compiler
        !             4: CC=lcc
        !             5: OCC=cc
        !             6: NAMES=main dofgrep dogre fns buffer
        !             7: OBJ=${NAMES:%=%.o}
        !             8: LIB=libc.a
        !             9: LNAMES=cw bm re eg egcomp eglit egpos egstate egcw egbr egerror refile\
        !            10:        egparen egmatch egcanon
        !            11: LOBJ=${LNAMES:%=$LIB(%.o)}
        !            12: LLOBJ=${LNAMES:%=%.o}
        !            13: SRC=${NAMES:%=%.c} ${LNAMES:%=%.c}
        !            14: BUILTINS='%.o: %.c
        !            15:        $CC $CFLAGS -c $stem.c
        !            16: '"`cat DEPEND`"
        !            17: 
        !            18: all:V: gre cyntax
        !            19: 
        !            20: gre:   $OBJ $LIB
        !            21:        $CC $CFLAGS -o $target $prereq
        !            22: 
        !            23: regress:VQ:    #hcheck
        !            24:        make CC=$CC regress
        !            25: 
        !            26: oregress:VQ:
        !            27:        rm -fr tmp
        !            28:        mkdir tmp tmp/regress.d
        !            29:        for i in $SRC *.h
        !            30:        do
        !            31:                awk -f deansify.awk $i > tmp/$i
        !            32:        done
        !            33:        cp makefile tmp
        !            34:        cp regress.d/* tmp/regress.d
        !            35:        (cd tmp; make CC=$OCC regress)
        !            36:        rm -fr tmp
        !            37: 
        !            38: lt1:   lt1.o $LIB
        !            39:        $CC $CFLAGS -o $target $prereq
        !            40: 
        !            41: pp:V:
        !            42:        pr mkfile hdr.h $SRC | lp -dpsu -n2
        !            43: 
        !            44: htest.o:       htest.c
        !            45:        $CC $CFLAGS -DUSE_STDIO -c $prereq
        !            46: htest: htest.o $LIB
        !            47:        $CC $CFLAGS -o $target $prereq
        !            48: hcheck:        htest
        !            49:        echo aabcdd | htest 'a+(b|c)*d+' tempa 0
        !            50:        echo abccccc | htest '^(a|b)*(abc+|c)' tempa 0
        !            51:        echo bccc | htest '(bc|bc+)' tempa 0
        !            52:        echo abab | htest '((b|a)+)\1' tempa 0
        !            53:        echo vivi | htest '^.+$' tempa '^(.+)$' tempb 01
        !            54:        echo acbb | htest '((.)+)\1' tempa 0
        !            55:        echo !gryphon.att.com!eby | time htest '^!([^!.]+)\.att\.com!(.+)$' tempa 0
        !            56: 
        !            57: h1:V:  htest
        !            58:        echo abc | time htest '^^.+!([^!]+2!([^!]+)$$' tempa 0
        !            59: 
        !            60: check:V:
        !            61:        rm -f *.o gre refile libc.a
        !            62:        mk gre refile regress oregress
        !            63:        rm -f *.o gre refile libc.a
        !            64: 
        !            65: bm.o: re.h lre.h hdr.h
        !            66: buffer.o: re.h lre.h hdr.h
        !            67: cw.o: re.h lre.h hdr.h
        !            68: dofgrep.o: re.h lre.h hdr.h
        !            69: dogre.o: re.h lre.h hdr.h
        !            70: eg.o: re.h lre.h hdr.h
        !            71: egbr.o: re.h lre.h hdr.h
        !            72: egcomp.o: re.h lre.h hdr.h
        !            73: egcw.o: re.h lre.h hdr.h
        !            74: egerror.o: re.h /usr/include/stdio.h
        !            75: eglit.o: re.h lre.h hdr.h
        !            76: egmatch.o: re.h lre.h hdr.h
        !            77: egparen.o: re.h lre.h hdr.h
        !            78: egpos.o: re.h lre.h hdr.h
        !            79: egstate.o: re.h lre.h hdr.h
        !            80: fns.o: re.h lre.h hdr.h
        !            81: main.o: re.h lre.h hdr.h
        !            82: re.o: re.h lre.h hdr.h
        !            83: refile.o: re.h lre.h
        !            84: 
        !            85: $LIB(%.o):N:   %.o
        !            86: 
        !            87: $LIB:Q:        $LOBJ
        !            88:        names=`membername $newprereq`
        !            89:        ar rv $target $names && rm $names
        !            90:        ranlib $target
        !            91: 
        !            92: export:VQ:
        !            93:        what="$SRC hdr.h io.h re.h lre.h libc.h"
        !            94:        what="$what getopt.c"           # for those without
        !            95:        what="$what `echo regress.d/*` mkfile makefile README"
        !            96:        what="$what tmac.an re.3 gre.1 deansify.awk"
        !            97:        cp /n/bowell/usr/man/man3/re.3 .
        !            98:        cp /n/bowell/usr/man/man1/gre.1 .
        !            99:        cp /usr/lib/tmac/tmac.an .
        !           100:        cp /usr/include/libc.h .
        !           101:        (echo mkdir regress.d; bundle $what) > gre.bundle
        !           102:        ls -l gre.bundle
        !           103:        rm re.3 libc.h gre.1 tmac.an
        !           104: 
        !           105: %.rcp:V:
        !           106:        rcp gre.bundle $stem:/tmp
        !           107:        rsh $stem "cd /tmp; rm -fr gre; mkdir gre; cd gre; sh < ../gre.bundle; make regress && (cd ..; rm -fr gre gre.bundle)"
        !           108: 
        !           109: DEPEND:D:      $SRC
        !           110:        cdepend $OBJ $LLOBJ > DEPEND
        !           111: 
        !           112: refile:        refile.c $LIB
        !           113:        $CC $CFLAGS -DUSE_STDIO -o $target -DMAIN $prereq && rm refile.o
        !           114: refile.o:      refile.c
        !           115:        $CC $CFLAGS -DUSE_STDIO -c refile.c
        !           116: extern:V:      $LIB
        !           117:        nm $LIB | egrep -v ' [dtUb] |:| _re| _eg' | sort -u | mc
        !           118: 
        !           119: poot:V:        gre
        !           120:        gre -x '.|..' filex

unix.superglobalmegacorp.com

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