Annotation of 42BSD/usr.bin/Makefile, revision 1.1.1.1

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