Annotation of cci/usr/src/usr.bin/uucp/Makefile, revision 1.1.1.1

1.1       root        1: #      Makefile        5.5     83/07/18
                      2: #
                      3: # This version expects the 4.2BSD directory reading routines to
                      4: # located in libc.a.  If they aren't, augment LIBS.  Also, LIBS
                      5: # can be set to reference other object modules and libraries needed
                      6: # by uucico, such as -lunet (needed when UNET is defined).
                      7: #
                      8: # Common object files are assembled into a library {uulib.a}
                      9: #
                     10: ALL=   uucp uux uuxqt uucico uulog uuclean uuname uupoll uusnap \
                     11:        uuencode uudecode uusend
                     12: # Common object files placed in uulib.a
                     13: COMMON=        anlwrk.o anyread.o assert.o cfgets.o chkpth.o \
                     14:        cpmv.o expfile.o gename.o getargs.o getopt.o getprm.o \
                     15:        getpw.o getpwinfo.o gio.o gnamef.o gnxseq.o gwd.o imsg.o \
                     16:        index.o lastpart.o logent.o mailst.o pk0.o pk1.o prefix.o \
                     17:        sdmail.o setline.o shio.o subdir.o sysacct.o systat.o ulockf.o \
                     18:        uucpname.o versys.o xqt.o uucpdefs.o
                     19: DESTDIR=
                     20: OWNER= uucp
                     21: GROUP= daemon
                     22: CFLAGS=        -O
                     23: LDFLAGS=
                     24: LIBS=
                     25: UULIBDIR=      /usr/lib/uucp
                     26: BIN=   /usr/bin
                     27: PUBDIR=        /usr/spool/uucppublic
                     28: SPOOL= /usr/spool/uucp
                     29: XQTDIR=        /usr/spool/uucp/XTMP
                     30: # The six subdirs {not counting XTMP}.  The order of the D. files is crucial!
                     31: SUBDIRS=C. D.`uuname -l`X D.`uuname -l` D. X. TM.
                     32: PKON=  pkon.o
                     33: IOCTL=
                     34: # for make depend
                     35: UNDEF= -UNDIR -UUNET -USYSIII -UUNAME -UCCWHOAMI -UGETMYHNAME -UDATAKIT
                     36: 
                     37: all:   ${ALL}
                     38: 
                     39: uucp:  uucp.o uulib.a
                     40:        ${CC} -o uucp ${LDFLAGS} uucp.o uulib.a
                     41: 
                     42: uux:   uux.o uulib.a
                     43:        ${CC} -o uux ${LDFLAGS} uux.o uulib.a
                     44: 
                     45: uuxqt: uuxqt.o uulib.a
                     46:        ${CC} -o uuxqt ${LDFLAGS} uuxqt.o uulib.a ${LIBS}
                     47: 
                     48: uucico:        cico.o cntrl.o conn.o condevs.o gnsys.o ${IOCTL} ${PKON} uulib.a
                     49:        ${CC} -o uucico ${LDFLAGS} cico.o cntrl.o conn.o condevs.o \
                     50:                gnsys.o ${IOCTL} ${PKON} uulib.a ${LIBS}
                     51: 
                     52: uulog: uulog.o uulib.a
                     53:        ${CC} -o uulog ${LDFLAGS} uulog.o uulib.a
                     54: 
                     55: uuclean: uuclean.o uulib.a
                     56:        ${CC} -o uuclean ${LDFLAGS} uuclean.o uulib.a
                     57: 
                     58: uuname:        uuname.o uulib.a
                     59:        ${CC} -o uuname ${LDFLAGS} uuname.o uulib.a
                     60: 
                     61: uupoll:        uupoll.o uulib.a
                     62:        ${CC} -o uupoll ${LDFLAGS} uupoll.o uulib.a
                     63: 
                     64: uusnap:        uusnap.o uulib.a
                     65:        ${CC} -o uusnap ${LDFLAGS} uusnap.o uulib.a ${LIBS}
                     66: 
                     67: uuencode: uuencode.o uulib.a
                     68:        ${CC} -o uuencode ${LDFLAGS} uuencode.o uulib.a
                     69: 
                     70: uudecode: uudecode.o uulib.a
                     71:        ${CC} -o uudecode ${LDFLAGS} uudecode.o uulib.a
                     72: 
                     73: uusend: uusend.o uulib.a
                     74:        ${CC} -o uusend ${LDFLAGS} uusend.o uulib.a
                     75: 
                     76: # Note: mode 700 on ${UULIBDIR} would be safer.
                     77: # Also,  L.sys etc should be 600.
                     78: mkdirs:
                     79:        -mkdir ${DESTDIR}/${UULIBDIR}
                     80:        chmod 755 ${DESTDIR}/${UULIBDIR}
                     81:        chown ${OWNER} ${DESTDIR}/${UULIBDIR}
                     82:        chgrp ${GROUP} ${DESTDIR}/${UULIBDIR}
                     83:        -mkdir ${DESTDIR}/${SPOOL}
                     84:        chmod 755 ${DESTDIR}/${SPOOL}
                     85:        chown ${OWNER} ${DESTDIR}/${SPOOL}
                     86:        chgrp ${GROUP} ${DESTDIR}/${SPOOL}
                     87:        -mkdir ${DESTDIR}/${PUBDIR}
                     88:        chmod 777 ${DESTDIR}/${PUBDIR}
                     89:        chown ${OWNER} ${DESTDIR}/${PUBDIR}
                     90:        chgrp ${GROUP} ${DESTDIR}/${PUBDIR}
                     91:        -mkdir ${DESTDIR}/${XQTDIR}
                     92:        chmod 755 ${DESTDIR}/${XQTDIR}
                     93:        chown ${OWNER} ${DESTDIR}/${XQTDIR}
                     94:        chgrp ${GROUP} ${DESTDIR}/${XQTDIR}
                     95:        -cd ${DESTDIR}/${SPOOL}; for i in ${SUBDIRS}; do \
                     96:                mkdir $$i; \
                     97:                chown ${OWNER} $$i; chgrp ${GROUP} $$i; chmod 755 $$i; \
                     98:        done
                     99: 
                    100: uulib.a: ${COMMON}
                    101:        rm -f $@
                    102:        ar cr $@ ${COMMON}
                    103:        ranlib $@
                    104: 
                    105: install: all mkdirs
                    106:        cp UUAIDS/[LNUsu]* ${DESTDIR}/${UULIBDIR}
                    107:        chown ${OWNER} ${DESTDIR}/${UULIBDIR}/*
                    108:        chgrp ${GROUP} ${DESTDIR}/${UULIBDIR}/*
                    109:        install -s -m 6111 -o ${OWNER} -g ${GROUP} uucp ${DESTDIR}/${BIN}/uucp
                    110:        install -s -m 6111 -o ${OWNER} -g ${GROUP} uux ${DESTDIR}/${BIN}/uux
                    111:        install -s -m 6110 -o ${OWNER} -g ${GROUP} \
                    112:                uuxqt ${DESTDIR}/${UULIBDIR}/uuxqt
                    113:        install -s -m 6111 -o ${OWNER} -g ${GROUP} \
                    114:                uucico ${DESTDIR}/${UULIBDIR}/uucico
                    115:        install -s -m 6111 -o ${OWNER} -g ${GROUP} uulog ${DESTDIR}/${BIN}/uulog
                    116:        install -s -m 6111 -o ${OWNER} -g ${GROUP} \
                    117:                uuclean ${DESTDIR}/${UULIBDIR}/uuclean
                    118:        install -s -m 6111 -o ${OWNER} -g ${GROUP} \
                    119:                uuname ${DESTDIR}/${BIN}/uuname
                    120:        install -s -m 6111 -o ${OWNER} -g ${GROUP} \
                    121:                uupoll ${DESTDIR}/${BIN}/uupoll
                    122:        install -s -m 6111 -o ${OWNER} -g ${GROUP} \
                    123:                uusnap ${DESTDIR}/${BIN}/uusnap
                    124:        install -s uuencode ${DESTDIR}/${BIN}/uuencode
                    125:        install -s uudecode ${DESTDIR}/${BIN}/uudecode
                    126:        install -s -m 6111 -o ${OWNER} -g ${GROUP} \
                    127:                uusend ${DESTDIR}/${BIN}/uusend
                    128:        rm -f ${DESTDIR}/${BIN}/ruusend
                    129:        ln ${DESTDIR}/${BIN}/uusend ${DESTDIR}/${BIN}/ruusend
                    130: 
                    131: clean:
                    132:        rm -f *.o ${ALL} uulib.a
                    133:        rm -f *.[ch] pk.p README Makefile
                    134:        rm -f UUAIDS/[a-z]* UUAIDS/L* USERFILE
                    135: 
                    136: depend:
                    137:        for i in *.c; do \
                    138:                (echo `basename $$i .c`.o: $$i >>makedep; \
                    139:                        unifdef ${UNDEF} $$i | \
                    140:                        /bin/grep '^#[  ]*include' | sed \
                    141:                        -e '/\.\.\/h/d' \
                    142:                        -e 's,<\(.*\)>,"/usr/include/\1",' \
                    143:                        -e 's/^[^"]*"\([^"]*\)".*/'"$$i"': \1/' \
                    144:                        -e 's/\.c/.o/' >>makedep); done
                    145:        echo '/^# DO NOT DELETE THIS LINE/+2,$$d' >eddep
                    146:        echo '$$r makedep' >>eddep
                    147:        echo 'w' >>eddep
                    148:        cp Makefile Makefile.bak
                    149:        ed - Makefile < eddep
                    150:        rm eddep makedep
                    151:        echo '# DEPENDENCIES MUST END AT END OF FILE' >> Makefile
                    152:        echo '# IF YOU PUT STUFF HERE IT WILL GO AWAY' >> Makefile
                    153:        echo '# see make depend above' >> Makefile
                    154: 
                    155: # DO NOT DELETE THIS LINE -- make depend uses it
                    156: # DEPENDENCIES MUST END AT END OF FILE
                    157: anlwrk.o: anlwrk.c
                    158: anlwrk.o: uucp.h
                    159: anlwrk.o: /usr/include/sys/types.h
                    160: anlwrk.o: /usr/include/sys/stat.h
                    161: anlwrk.o: /usr/include/sys/dir.h
                    162: anyread.o: anyread.c
                    163: anyread.o: uucp.h
                    164: anyread.o: /usr/include/sys/types.h
                    165: anyread.o: /usr/include/sys/stat.h
                    166: assert.o: assert.c
                    167: assert.o: uucp.h
                    168: assert.o: /usr/include/sys/time.h
                    169: assert.o: /usr/include/sys/types.h
                    170: assert.o: /usr/include/errno.h
                    171: cfgets.o: cfgets.c
                    172: cfgets.o: /usr/include/stdio.h
                    173: chkpth.o: chkpth.c
                    174: chkpth.o: uucp.h
                    175: chkpth.o: /usr/include/sys/types.h
                    176: chkpth.o: /usr/include/sys/stat.h
                    177: cico.o: cico.c
                    178: cico.o: uucp.h
                    179: cico.o: /usr/include/signal.h
                    180: cico.o: /usr/include/setjmp.h
                    181: cico.o: /usr/include/sys/types.h
                    182: cico.o: /usr/include/sgtty.h
                    183: cntrl.o: cntrl.c
                    184: cntrl.o: uucp.h
                    185: cntrl.o: /usr/include/sys/types.h
                    186: cntrl.o: /usr/include/sys/stat.h
                    187: condevs.o: condevs.c
                    188: condevs.o: /usr/include/sys/types.h
                    189: condevs.o: /usr/include/errno.h
                    190: condevs.o: /usr/include/setjmp.h
                    191: condevs.o: /usr/include/signal.h
                    192: condevs.o: /usr/include/sgtty.h
                    193: condevs.o: uucp.h
                    194: condevs.o: /usr/include/sys/time.h
                    195: condevs.o: /usr/include/sys/timeb.h
                    196: conn.o: conn.c
                    197: conn.o: uucp.h
                    198: conn.o: /usr/include/signal.h
                    199: conn.o: /usr/include/setjmp.h
                    200: conn.o: /usr/include/ctype.h
                    201: conn.o: /usr/include/sys/types.h
                    202: conn.o: /usr/include/sys/time.h
                    203: conn.o: /usr/include/errno.h
                    204: conn.o: /usr/include/sgtty.h
                    205: cpmv.o: cpmv.c
                    206: cpmv.o: uucp.h
                    207: cpmv.o: /usr/include/sys/types.h
                    208: cpmv.o: /usr/include/sys/stat.h
                    209: expfile.o: expfile.c
                    210: expfile.o: uucp.h
                    211: expfile.o: /usr/include/sys/types.h
                    212: expfile.o: /usr/include/sys/stat.h
                    213: gename.o: gename.c
                    214: gename.o: uucp.h
                    215: getargs.o: getargs.c
                    216: getargs.o: /usr/include/stdio.h
                    217: getopt.o: getopt.c
                    218: getopt.o: /usr/include/stdio.h
                    219: getprm.o: getprm.c
                    220: getprm.o: /usr/include/stdio.h
                    221: getpw.o: getpw.c
                    222: getpw.o: /usr/include/stdio.h
                    223: getpwinfo.o: getpwinfo.c
                    224: getpwinfo.o: uucp.h
                    225: getpwinfo.o: /usr/include/pwd.h
                    226: gio.o: gio.c
                    227: gio.o: pk.p
                    228: gio.o: /usr/include/sys/types.h
                    229: gio.o: pk.h
                    230: gio.o: /usr/include/setjmp.h
                    231: gio.o: uucp.h
                    232: gnamef.o: gnamef.c
                    233: gnamef.o: uucp.h
                    234: gnamef.o: /usr/include/sys/types.h
                    235: gnamef.o: /usr/include/sys/dir.h
                    236: gnsys.o: gnsys.c
                    237: gnsys.o: uucp.h
                    238: gnsys.o: /usr/include/sys/types.h
                    239: gnsys.o: /usr/include/sys/dir.h
                    240: gnxseq.o: gnxseq.c
                    241: gnxseq.o: uucp.h
                    242: gnxseq.o: /usr/include/sys/types.h
                    243: gnxseq.o: /usr/include/sys/time.h
                    244: gwd.o: gwd.c
                    245: gwd.o: uucp.h
                    246: gwd.o: /usr/include/signal.h
                    247: imsg.o: imsg.c
                    248: imsg.o: uucp.h
                    249: index.o: index.c
                    250: index.o: /usr/include/stdio.h
                    251: ioctl.o: ioctl.c
                    252: ioctl.o: uucp.h
                    253: ioctl.o: /usr/include/sgtty.h
                    254: lastpart.o: lastpart.c
                    255: logent.o: logent.c
                    256: logent.o: uucp.h
                    257: logent.o: /usr/include/sys/types.h
                    258: logent.o: /usr/include/sys/time.h
                    259: logent.o: /usr/include/sgtty.h
                    260: mailst.o: mailst.c
                    261: mailst.o: uucp.h
                    262: pk0.o: pk0.c
                    263: pk0.o: /usr/include/stdio.h
                    264: pk0.o: pk.p
                    265: pk0.o: /usr/include/sys/param.h
                    266: pk0.o: pk.h
                    267: pk0.o: /usr/include/sys/buf.h
                    268: pk1.o: pk1.c
                    269: pk1.o: /usr/include/stdio.h
                    270: pk1.o: pk.p
                    271: pk1.o: /usr/include/sys/param.h
                    272: pk1.o: pk.h
                    273: pk1.o: /usr/include/sys/buf.h
                    274: pk1.o: /usr/include/setjmp.h
                    275: pk1.o: /usr/include/signal.h
                    276: pkon.o: pkon.c
                    277: prefix.o: prefix.c
                    278: sdmail.o: sdmail.c
                    279: sdmail.o: uucp.h
                    280: sdmail.o: /usr/include/pwd.h
                    281: setline.o: setline.c
                    282: setline.o: uucp.h
                    283: shio.o: shio.c
                    284: shio.o: uucp.h
                    285: shio.o: /usr/include/signal.h
                    286: subdir.o: subdir.c
                    287: subdir.o: uucp.h
                    288: sysacct.o: sysacct.c
                    289: sysacct.o: /usr/include/sys/types.h
                    290: systat.o: systat.c
                    291: systat.o: uucp.h
                    292: systat.o: /usr/include/sys/types.h
                    293: ulockf.o: ulockf.c
                    294: ulockf.o: uucp.h
                    295: ulockf.o: /usr/include/sys/types.h
                    296: ulockf.o: /usr/include/sys/stat.h
                    297: uuclean.o: uuclean.c
                    298: uuclean.o: uucp.h
                    299: uuclean.o: /usr/include/signal.h
                    300: uuclean.o: /usr/include/pwd.h
                    301: uuclean.o: /usr/include/sys/types.h
                    302: uuclean.o: /usr/include/sys/stat.h
                    303: uuclean.o: /usr/include/sys/dir.h
                    304: uucp.o: uucp.c
                    305: uucp.o: uucp.h
                    306: uucp.o: /usr/include/sys/types.h
                    307: uucp.o: /usr/include/sys/stat.h
                    308: uucpdefs.o: uucpdefs.c
                    309: uucpdefs.o: uucp.h
                    310: uucpname.o: uucpname.c
                    311: uucpname.o: uucp.h
                    312: uucpname.o: /usr/include/sys/types.h
                    313: uucpname.o: /usr/include/sys/stat.h
                    314: uudecode.o: uudecode.c
                    315: uudecode.o: /usr/include/stdio.h
                    316: uudecode.o: /usr/include/pwd.h
                    317: uudecode.o: /usr/include/sys/types.h
                    318: uudecode.o: /usr/include/sys/stat.h
                    319: uuencode.o: uuencode.c
                    320: uuencode.o: /usr/include/stdio.h
                    321: uuencode.o: /usr/include/sys/types.h
                    322: uuencode.o: /usr/include/sys/stat.h
                    323: uulog.o: uulog.c
                    324: uulog.o: uucp.h
                    325: uuname.o: uuname.c
                    326: uuname.o: uucp.h
                    327: uuname.o: /usr/include/signal.h
                    328: uupoll.o: uupoll.c
                    329: uupoll.o: uucp.h
                    330: uusend.o: uusend.c
                    331: uusend.o: /usr/include/stdio.h
                    332: uusend.o: /usr/include/pwd.h
                    333: uusend.o: /usr/include/sys/types.h
                    334: uusend.o: /usr/include/sys/stat.h
                    335: uusnap.o: uusnap.c
                    336: uusnap.o: uucp.h
                    337: uusnap.o: /usr/include/sys/types.h
                    338: uusnap.o: /usr/include/sys/stat.h
                    339: uusnap.o: /usr/include/sys/dir.h
                    340: uux.o: uux.c
                    341: uux.o: uucp.h
                    342: uuxqt.o: uuxqt.c
                    343: uuxqt.o: uucp.h
                    344: uuxqt.o: /usr/include/sys/types.h
                    345: uuxqt.o: /usr/include/sys/stat.h
                    346: uuxqt.o: /usr/include/sys/dir.h
                    347: versys.o: versys.c
                    348: versys.o: uucp.h
                    349: xqt.o: xqt.c
                    350: xqt.o: uucp.h
                    351: xqt.o: /usr/include/signal.h
                    352: # DEPENDENCIES MUST END AT END OF FILE
                    353: # IF YOU PUT STUFF HERE IT WILL GO AWAY
                    354: # 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.