Annotation of cci/usr/src/usr.bin/Makefile.nocrypt, revision 1.1.1.2

1.1       root        1: #      Makefile        4.29    83/08/20
                      2: #
                      3: 
                      4: AS=/bin/as
                      5: CC=/bin/cc
                      6: LCC=/bin/cc
                      7: LD=/bin/ld
                      8: INCLDIR=/usr/include
                      9: LIBDIR=/lib
                     10: ULIBDIR=/usr/lib
                     11: DESTDIR=
                     12: MAKEPARAM = AS=${AS} CC=${CC} LCC=${LCC} LD=${LD} INCLDIR=${INCLDIR} LIBDIR=${LIBDIR} ULIBDIR=${ULIBDIR} DESTDIR=${DESTDIR}
                     13: 
                     14: CFLAGS=        -O -I${INCLDIR}
                     15: CURFLGS = -lcurses -ltermlib
                     16: 
                     17: # Programs that live in subdirectories, and have makefiles of their own.
                     18: #
1.1.1.2 ! root       19: SUBDIR=        calendar cdb dc diction diff3 dr11 efl eqn f77 learn lex lint m4 neqn \
1.1       root       20:        nroff prof ratfor refer spell struct tbl tip troff uucp yacc
                     21:  
                     22: # SUBDIR=calendar dc diff3 efl eqn learn lex lint m4 neqn \
                     23: #       nroff refer spell struct tbl tip troff xsend yacc
                     24: 
                     25: # Shell scripts that need only be installed and are never removed.
                     26: #
                     27: SCRIPT=        install lorder man nohup
                     28: 
                     29: # C programs that live in the current directory and do not need
                     30: # explicit make lines.
                     31: #
                     32: STD=   at audfmt audit basename cal cb checkeq col comm deroff \
                     33:        fgrep file find join look mesg ptx ranlib \
                     34:        rev sleep sort split sum tabs tc timezone tk touch tr tsort tty \
                     35:        uniq 
                     36: 
                     37: # C programs that live in the current directory and need explicit make lines.
                     38: # (make depend has special rules for these files)
                     39: #
                     40: NSTD=  bc egrep spline units
                     41: 
                     42: # the following utilities need the curses and terminal libraries 
                     43: CSR = iostat
                     44: 
                     45: all:   ${SUBDIR} ${STD} ${NSTD} ${CSR}
                     46:        for i in ${SUBDIR}; do \
                     47:                (cd $$i; /bin/make ${MFLAGS} ${MAKEPARAM} ); done
                     48: 
                     49: bc egrep:
                     50:        ${YACC} ${YFLAGS} [email protected]
                     51:        ${LCC} -c ${CFLAGS} y.tab.c
                     52:        mv y.tab.o [email protected]
                     53:        ${CC} -o $@ [email protected]
                     54:        rm -f [email protected]
                     55: 
                     56: spline units:
                     57:        ${CC} ${CFLAGS} -o $@ [email protected]
                     58: 
                     59: ${STD}:
                     60:        ${CC} ${CFLAGS} -o $@ [email protected]
                     61: 
                     62: ${CSR}:
                     63:        ${CC} ${CFLAGS} -o $@ [email protected] ${CURFLGS}
                     64: 
                     65: install: all
                     66:        for i in ${SUBDIR}; do \
                     67:                (cd $$i; make ${MFLAGS} ${MAKEPARAM} install); done
                     68:        for i in ${SCRIPT}; do (install -c $$i.sh ${DESTDIR}/usr/bin/$$i); done
                     69:        for i in ${STD} ${NSTD} ${CSR}; do \
                     70:                (install -s $$i ${DESTDIR}/usr/bin/$$i); \
                     71:        done
                     72:        install -c units.lib ${DESTDIR}/usr/lib/units
                     73:        -mkdir ${DESTDIR}/usr/spool/at
                     74:        chmod 755 ${DESTDIR}/usr/spool/at
                     75:        /etc/chown root ${DESTDIR}/usr/spool/at
                     76:        -mkdir ${DESTDIR}/usr/spool/at/past
                     77:        chmod 755 ${DESTDIR}/usr/spool/at/past
                     78:        /etc/chown root ${DESTDIR}/usr/spool/at/past
                     79: 
                     80: clean:
                     81:        rm -f a.out core *.s *.o
                     82:        for i in ${SUBDIR}; do (cd $$i; make ${MFLAGS} clean); done
                     83:        rm -f ${STD} ${NSTD} ${CSR}
                     84:        
                     85: cleansrc:
                     86:        rm -f *.[cy] *.sh *.lib Makefile
                     87: 
                     88: # beware of the non-standard stuff for bc and egrep
                     89: depend:
                     90:        cat </dev/null >x.c
                     91:        for i in ${STD} ${CSR} ; do \
                     92:                (echo $$i: $$i.c >>makedep; \
                     93:                /bin/grep '^#[  ]*include' x.c $$i.c | sed \
                     94:                        -e '/\.\.\/h/d' \
                     95:                        -e 's,<\(.*\)>,"/usr/include/\1",' \
                     96:                        -e 's/:[^"]*"\([^"]*\)".*/: \1/' \
                     97:                        -e 's/\.c//' >>makedep); done
                     98:        for i in bc egrep; do \
                     99:                (echo $$i: $$i.y >>makedep; \
                    100:                /bin/grep '^#[  ]*include' x.c $$i.y | sed \
                    101:                        -e '/\.\.\/h/d' \
                    102:                        -e 's,<\(.*\)>,"/usr/include/\1",' \
                    103:                        -e 's/:[^"]*"\([^"]*\)".*/: \1/' \
                    104:                        -e 's/\.y//' >>makedep); done
                    105:        echo '/^# DO NOT DELETE THIS LINE/+2,$$d' >eddep
                    106:        echo '$$r makedep' >>eddep
                    107:        echo 'w' >>eddep
                    108:        cp Makefile Makefile.bak
                    109:        ed - Makefile < eddep
                    110:        rm eddep makedep x.c
                    111:        echo '# DEPENDENCIES MUST END AT END OF FILE' >> Makefile
                    112:        echo '# IF YOU PUT STUFF HERE IT WILL GO AWAY' >> Makefile
                    113:        echo '# see make depend above' >> Makefile
                    114: 
                    115: # Files listed in ${NSTD} have explicit make lines given below.
                    116: 
                    117: # DO NOT DELETE THIS LINE -- make depend uses it
                    118: 
                    119: at: at.c
                    120: at: /usr/include/stdio.h
                    121: at: /usr/include/ctype.h
                    122: at: /usr/include/signal.h
                    123: at: /usr/include/sys/time.h
                    124: basename: basename.c
                    125: basename: /usr/include/stdio.h
                    126: cal: cal.c
                    127: cb: cb.c
                    128: cb: /usr/include/stdio.h
                    129: checkeq: checkeq.c
                    130: checkeq: /usr/include/stdio.h
                    131: col: col.c
                    132: col: /usr/include/stdio.h
                    133: comm: comm.c
                    134: comm: /usr/include/stdio.h
                    135: crypt: crypt.c
                    136: crypt: /usr/include/stdio.h
                    137: deroff: deroff.c
                    138: deroff: /usr/include/stdio.h
                    139: fgrep: fgrep.c
                    140: fgrep: /usr/include/stdio.h
                    141: fgrep: /usr/include/ctype.h
                    142: file: file.c
                    143: file: /usr/include/sys/types.h
                    144: file: /usr/include/sys/stat.h
                    145: file: /usr/include/stdio.h
                    146: file: /usr/include/ctype.h
                    147: file: /usr/include/a.out.h
                    148: find: find.c
                    149: find: /usr/include/stdio.h
                    150: find: /usr/include/sys/param.h
                    151: find: /usr/include/sys/dir.h
                    152: find: /usr/include/sys/stat.h
                    153: find: /usr/include/signal.h
                    154: join: join.c
                    155: join: /usr/include/stdio.h
                    156: look: look.c
                    157: look: /usr/include/stdio.h
                    158: look: /usr/include/ctype.h
                    159: mesg: mesg.c
                    160: mesg: /usr/include/stdio.h
                    161: mesg: /usr/include/sys/types.h
                    162: mesg: /usr/include/sys/stat.h
                    163: ptx: ptx.c
                    164: ptx: /usr/include/stdio.h
                    165: ptx: /usr/include/ctype.h
                    166: ptx: /usr/include/signal.h
                    167: ranlib: ranlib.c
                    168: ranlib: /usr/include/sys/types.h
                    169: ranlib: /usr/include/ar.h
                    170: ranlib: /usr/include/ranlib.h
                    171: ranlib: /usr/include/a.out.h
                    172: ranlib: /usr/include/stdio.h
                    173: rev: rev.c
                    174: rev: /usr/include/stdio.h
                    175: sleep: sleep.c
                    176: sort: sort.c
                    177: sort: /usr/include/stdio.h
                    178: sort: /usr/include/ctype.h
                    179: sort: /usr/include/signal.h
                    180: sort: /usr/include/sys/types.h
                    181: sort: /usr/include/sys/stat.h
                    182: split: split.c
                    183: split: /usr/include/stdio.h
                    184: sum: sum.c
                    185: sum: /usr/include/stdio.h
                    186: tabs: tabs.c
                    187: tabs: /usr/include/stdio.h
                    188: tabs: /usr/include/sgtty.h
                    189: tc: tc.c
                    190: tc: /usr/include/signal.h
                    191: tc: /usr/include/stdio.h
                    192: timezone: timezone.c
                    193: timezone: /usr/include/stdio.h
                    194: timezone: /usr/include/sys/time.h
                    195: timezone: /usr/include/utmp.h
                    196: tk: tk.c
                    197: tk: /usr/include/stdio.h
                    198: tk: /usr/include/signal.h
                    199: touch: touch.c
                    200: touch: /usr/include/stdio.h
                    201: touch: /usr/include/sys/types.h
                    202: touch: /usr/include/sys/stat.h
                    203: tr: tr.c
                    204: tr: /usr/include/stdio.h
                    205: tsort: tsort.c
                    206: tsort: /usr/include/stdio.h
                    207: tty: tty.c
                    208: uniq: uniq.c
                    209: uniq: /usr/include/stdio.h
                    210: uniq: /usr/include/ctype.h
                    211: bc: bc.y
                    212: bc: /usr/include/stdio.h
                    213: egrep: egrep.y
                    214: egrep: /usr/include/stdio.h
                    215: # DEPENDENCIES MUST END AT END OF FILE
                    216: # IF YOU PUT STUFF HERE IT WILL GO AWAY
                    217: # see make depend above

unix.superglobalmegacorp.com

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