Annotation of 42BSD/usr.bin/uucp/Makefile, revision 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: LIBDIR=        /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 ${LIBDIR} would be safer.
        !            77: # Also,  L.sys etc should be 600.
        !            78: mkdirs:
        !            79:        -mkdir ${DESTDIR}/${LIBDIR}
        !            80:        chmod 755 ${DESTDIR}/${LIBDIR}
        !            81:        chown ${OWNER} ${DESTDIR}/${LIBDIR}
        !            82:        chgrp ${GROUP} ${DESTDIR}/${LIBDIR}
        !            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: # The lorder...tsort below is for systems w/o ranlib
        !           101: # But it doesnt hurt to use it. Ignore the spurious "cycle" messages
        !           102: uulib.a: ${COMMON}
        !           103:        rm -f $@
        !           104:        ar cr $@ `lorder ${COMMON} | tsort`
        !           105:        ranlib $@
        !           106: 
        !           107: install: all
        !           108:        chown ${OWNER} ${DESTDIR}/${LIBDIR}
        !           109:        chgrp ${GROUP} ${DESTDIR}/${LIBDIR}
        !           110:        chmod 755 ${DESTDIR}/${LIBDIR}
        !           111:        install -s -m 6111 -o ${OWNER} -g ${GROUP} uucp ${DESTDIR}/${BIN}/uucp
        !           112:        install -s -m 6111 -o ${OWNER} -g ${GROUP} uux ${DESTDIR}/${BIN}/uux
        !           113:        : chmod u+t ${BIN}/uux; : this helps PDPs
        !           114:        install -s -m 6110 -o ${OWNER} -g ${GROUP} \
        !           115:                uuxqt ${DESTDIR}/${LIBDIR}/uuxqt
        !           116:        : chmod u+t ${LIBDIR}/uuxqt; : this helps PDPs
        !           117:        install -s -m 6111 -o ${OWNER} -g ${GROUP} \
        !           118:                uucico ${DESTDIR}/${LIBDIR}/uucico
        !           119:        : chmod u+t ${LIBDIR}/uucico; : this helps PDPs if uucico is pure
        !           120:        install -s -m 6111 -o ${OWNER} -g ${GROUP} uulog ${DESTDIR}/${BIN}/uulog
        !           121:        install -s -m 6111 -o ${OWNER} -g ${GROUP} \
        !           122:                uuclean ${DESTDIR}/${LIBDIR}/uuclean
        !           123:        install -s -m 6111 -o ${OWNER} -g ${GROUP} \
        !           124:                uuname ${DESTDIR}/${BIN}/uuname
        !           125:        install -s -m 6111 -o ${OWNER} -g ${GROUP} \
        !           126:                uupoll ${DESTDIR}/${BIN}/uupoll
        !           127:        install -s -m 6111 -o ${OWNER} -g ${GROUP} \
        !           128:                uusnap ${DESTDIR}/${BIN}/uusnap
        !           129:        install -s uuencode ${DESTDIR}/${BIN}/uuencode
        !           130:        install -s uudecode ${DESTDIR}/${BIN}/uudecode
        !           131:        install -s -m 6111 -o ${OWNER} -g ${GROUP} \
        !           132:                uusend ${DESTDIR}/${BIN}/uusend
        !           133:        rm -f ${DESTDIR}/${BIN}/ruusend
        !           134:        ln ${DESTDIR}/${BIN}/uusend ${DESTDIR}/${BIN}/ruusend
        !           135: 
        !           136: clean:
        !           137:        rm -f *.o ${ALL} uulib.a
        !           138: 
        !           139: depend:
        !           140:        for i in *.c; do \
        !           141:                (echo `basename $$i .c`.o: $$i >>makedep; \
        !           142:                        unifdef ${UNDEF} $$i | \
        !           143:                        /bin/grep '^#[  ]*include' | sed \
        !           144:                        -e '/\.\.\/h/d' \
        !           145:                        -e 's,<\(.*\)>,"/usr/include/\1",' \
        !           146:                        -e 's/^[^"]*"\([^"]*\)".*/'"$$i"': \1/' \
        !           147:                        -e 's/\.c/.o/' >>makedep); done
        !           148:        echo '/^# DO NOT DELETE THIS LINE/+2,$$d' >eddep
        !           149:        echo '$$r makedep' >>eddep
        !           150:        echo 'w' >>eddep
        !           151:        cp Makefile Makefile.bak
        !           152:        ed - Makefile < eddep
        !           153:        rm eddep makedep
        !           154:        echo '# DEPENDENCIES MUST END AT END OF FILE' >> Makefile
        !           155:        echo '# IF YOU PUT STUFF HERE IT WILL GO AWAY' >> Makefile
        !           156:        echo '# see make depend above' >> Makefile
        !           157: 
        !           158: # DO NOT DELETE THIS LINE -- make depend uses it
        !           159: # DEPENDENCIES MUST END AT END OF FILE
        !           160: anlwrk.o: anlwrk.c
        !           161: anlwrk.o: uucp.h
        !           162: anlwrk.o: /usr/include/sys/types.h
        !           163: anlwrk.o: /usr/include/sys/stat.h
        !           164: anlwrk.o: /usr/include/sys/dir.h
        !           165: anyread.o: anyread.c
        !           166: anyread.o: uucp.h
        !           167: anyread.o: /usr/include/sys/types.h
        !           168: anyread.o: /usr/include/sys/stat.h
        !           169: assert.o: assert.c
        !           170: assert.o: uucp.h
        !           171: assert.o: /usr/include/sys/time.h
        !           172: assert.o: /usr/include/sys/types.h
        !           173: assert.o: /usr/include/errno.h
        !           174: cfgets.o: cfgets.c
        !           175: cfgets.o: /usr/include/stdio.h
        !           176: chkpth.o: chkpth.c
        !           177: chkpth.o: uucp.h
        !           178: chkpth.o: /usr/include/sys/types.h
        !           179: chkpth.o: /usr/include/sys/stat.h
        !           180: cico.o: cico.c
        !           181: cico.o: uucp.h
        !           182: cico.o: /usr/include/signal.h
        !           183: cico.o: /usr/include/setjmp.h
        !           184: cico.o: /usr/include/sys/types.h
        !           185: cico.o: /usr/include/sgtty.h
        !           186: cntrl.o: cntrl.c
        !           187: cntrl.o: uucp.h
        !           188: cntrl.o: /usr/include/sys/types.h
        !           189: cntrl.o: /usr/include/sys/stat.h
        !           190: condevs.o: condevs.c
        !           191: condevs.o: /usr/include/sys/types.h
        !           192: condevs.o: /usr/include/errno.h
        !           193: condevs.o: /usr/include/setjmp.h
        !           194: condevs.o: /usr/include/signal.h
        !           195: condevs.o: /usr/include/sgtty.h
        !           196: condevs.o: uucp.h
        !           197: condevs.o: /usr/include/sys/time.h
        !           198: condevs.o: /usr/include/sys/timeb.h
        !           199: conn.o: conn.c
        !           200: conn.o: uucp.h
        !           201: conn.o: /usr/include/signal.h
        !           202: conn.o: /usr/include/setjmp.h
        !           203: conn.o: /usr/include/ctype.h
        !           204: conn.o: /usr/include/sys/types.h
        !           205: conn.o: /usr/include/sys/time.h
        !           206: conn.o: /usr/include/errno.h
        !           207: conn.o: /usr/include/sgtty.h
        !           208: cpmv.o: cpmv.c
        !           209: cpmv.o: uucp.h
        !           210: cpmv.o: /usr/include/sys/types.h
        !           211: cpmv.o: /usr/include/sys/stat.h
        !           212: expfile.o: expfile.c
        !           213: expfile.o: uucp.h
        !           214: expfile.o: /usr/include/sys/types.h
        !           215: expfile.o: /usr/include/sys/stat.h
        !           216: gename.o: gename.c
        !           217: gename.o: uucp.h
        !           218: getargs.o: getargs.c
        !           219: getargs.o: /usr/include/stdio.h
        !           220: getopt.o: getopt.c
        !           221: getopt.o: /usr/include/stdio.h
        !           222: getprm.o: getprm.c
        !           223: getprm.o: /usr/include/stdio.h
        !           224: getpw.o: getpw.c
        !           225: getpw.o: /usr/include/stdio.h
        !           226: getpwinfo.o: getpwinfo.c
        !           227: getpwinfo.o: uucp.h
        !           228: getpwinfo.o: /usr/include/pwd.h
        !           229: gio.o: gio.c
        !           230: gio.o: pk.p
        !           231: gio.o: /usr/include/sys/types.h
        !           232: gio.o: pk.h
        !           233: gio.o: /usr/include/setjmp.h
        !           234: gio.o: uucp.h
        !           235: gnamef.o: gnamef.c
        !           236: gnamef.o: uucp.h
        !           237: gnamef.o: /usr/include/sys/types.h
        !           238: gnamef.o: /usr/include/sys/dir.h
        !           239: gnsys.o: gnsys.c
        !           240: gnsys.o: uucp.h
        !           241: gnsys.o: /usr/include/sys/types.h
        !           242: gnsys.o: /usr/include/sys/dir.h
        !           243: gnxseq.o: gnxseq.c
        !           244: gnxseq.o: uucp.h
        !           245: gnxseq.o: /usr/include/sys/types.h
        !           246: gnxseq.o: /usr/include/sys/time.h
        !           247: gwd.o: gwd.c
        !           248: gwd.o: uucp.h
        !           249: gwd.o: /usr/include/signal.h
        !           250: imsg.o: imsg.c
        !           251: imsg.o: uucp.h
        !           252: index.o: index.c
        !           253: index.o: /usr/include/stdio.h
        !           254: ioctl.o: ioctl.c
        !           255: ioctl.o: uucp.h
        !           256: ioctl.o: /usr/include/sgtty.h
        !           257: lastpart.o: lastpart.c
        !           258: logent.o: logent.c
        !           259: logent.o: uucp.h
        !           260: logent.o: /usr/include/sys/types.h
        !           261: logent.o: /usr/include/sys/time.h
        !           262: logent.o: /usr/include/sgtty.h
        !           263: mailst.o: mailst.c
        !           264: mailst.o: uucp.h
        !           265: pk0.o: pk0.c
        !           266: pk0.o: /usr/include/stdio.h
        !           267: pk0.o: pk.p
        !           268: pk0.o: /usr/include/sys/param.h
        !           269: pk0.o: pk.h
        !           270: pk0.o: /usr/include/sys/buf.h
        !           271: pk1.o: pk1.c
        !           272: pk1.o: /usr/include/stdio.h
        !           273: pk1.o: pk.p
        !           274: pk1.o: /usr/include/sys/param.h
        !           275: pk1.o: pk.h
        !           276: pk1.o: /usr/include/sys/buf.h
        !           277: pk1.o: /usr/include/setjmp.h
        !           278: pk1.o: /usr/include/signal.h
        !           279: pkon.o: pkon.c
        !           280: prefix.o: prefix.c
        !           281: sdmail.o: sdmail.c
        !           282: sdmail.o: uucp.h
        !           283: sdmail.o: /usr/include/pwd.h
        !           284: setline.o: setline.c
        !           285: setline.o: uucp.h
        !           286: shio.o: shio.c
        !           287: shio.o: uucp.h
        !           288: shio.o: /usr/include/signal.h
        !           289: subdir.o: subdir.c
        !           290: subdir.o: uucp.h
        !           291: sysacct.o: sysacct.c
        !           292: sysacct.o: /usr/include/sys/types.h
        !           293: systat.o: systat.c
        !           294: systat.o: uucp.h
        !           295: systat.o: /usr/include/sys/types.h
        !           296: ulockf.o: ulockf.c
        !           297: ulockf.o: uucp.h
        !           298: ulockf.o: /usr/include/sys/types.h
        !           299: ulockf.o: /usr/include/sys/stat.h
        !           300: uuclean.o: uuclean.c
        !           301: uuclean.o: uucp.h
        !           302: uuclean.o: /usr/include/signal.h
        !           303: uuclean.o: /usr/include/pwd.h
        !           304: uuclean.o: /usr/include/sys/types.h
        !           305: uuclean.o: /usr/include/sys/stat.h
        !           306: uuclean.o: /usr/include/sys/dir.h
        !           307: uucp.o: uucp.c
        !           308: uucp.o: uucp.h
        !           309: uucp.o: /usr/include/sys/types.h
        !           310: uucp.o: /usr/include/sys/stat.h
        !           311: uucpdefs.o: uucpdefs.c
        !           312: uucpdefs.o: uucp.h
        !           313: uucpname.o: uucpname.c
        !           314: uucpname.o: uucp.h
        !           315: uucpname.o: /usr/include/sys/types.h
        !           316: uucpname.o: /usr/include/sys/stat.h
        !           317: uudecode.o: uudecode.c
        !           318: uudecode.o: /usr/include/stdio.h
        !           319: uudecode.o: /usr/include/pwd.h
        !           320: uudecode.o: /usr/include/sys/types.h
        !           321: uudecode.o: /usr/include/sys/stat.h
        !           322: uuencode.o: uuencode.c
        !           323: uuencode.o: /usr/include/stdio.h
        !           324: uuencode.o: /usr/include/sys/types.h
        !           325: uuencode.o: /usr/include/sys/stat.h
        !           326: uulog.o: uulog.c
        !           327: uulog.o: uucp.h
        !           328: uuname.o: uuname.c
        !           329: uuname.o: uucp.h
        !           330: uuname.o: /usr/include/signal.h
        !           331: uupoll.o: uupoll.c
        !           332: uupoll.o: uucp.h
        !           333: uusend.o: uusend.c
        !           334: uusend.o: /usr/include/stdio.h
        !           335: uusend.o: /usr/include/pwd.h
        !           336: uusend.o: /usr/include/sys/types.h
        !           337: uusend.o: /usr/include/sys/stat.h
        !           338: uusnap.o: uusnap.c
        !           339: uusnap.o: uucp.h
        !           340: uusnap.o: /usr/include/sys/types.h
        !           341: uusnap.o: /usr/include/sys/stat.h
        !           342: uusnap.o: /usr/include/sys/dir.h
        !           343: uux.o: uux.c
        !           344: uux.o: uucp.h
        !           345: uuxqt.o: uuxqt.c
        !           346: uuxqt.o: uucp.h
        !           347: uuxqt.o: /usr/include/sys/types.h
        !           348: uuxqt.o: /usr/include/sys/stat.h
        !           349: uuxqt.o: /usr/include/sys/dir.h
        !           350: versys.o: versys.c
        !           351: versys.o: uucp.h
        !           352: xqt.o: xqt.c
        !           353: xqt.o: uucp.h
        !           354: xqt.o: /usr/include/signal.h
        !           355: # DEPENDENCIES MUST END AT END OF FILE
        !           356: # IF YOU PUT STUFF HERE IT WILL GO AWAY
        !           357: # 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.