Annotation of 43BSD/usr.bin/uucp/Makefile, revision 1.1.1.1

1.1       root        1: #      Makefile        5.11    85/12/12
                      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=   uucico uucp uux uuxqt uulog uuclean uuname uupoll uusnap \
                     11:        uuencode uudecode uusend uucpd uuq acucntrl
                     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 getprm.o \
                     15:        getpwinfo.o gnamef.o gnxseq.o lastpart.o logent.o mailst.o \
                     16:        prefix.o setline.o strpbrk.o subdir.o sysacct.o systat.o \
                     17:        ulockf.o uucpname.o versys.o xqt.o uucpdefs.o
                     18: SRCS=  ${USRCS} ${OSRCS} ${LSRCS}
                     19: USRCS= cico.c cntrl.c conn.c condevs.c gnsys.c pk0.c chksum.c pk1.c tio.c \
                     20:        fio.c gio.c imsg.c 
                     21: OSRCS= uuclean.c uucp.c uulog.c uuname.c uupoll.c \
                     22:        uusend.c uusnap.c uux.c uuxqt.c uuq.c acucntrl.c
                     23: LSRCS= anlwrk.c anyread.c assert.c cfgets.c chkpth.c \
                     24:        cpmv.c expfile.c \
                     25:        gename.c getargs.c getprm.c getpwinfo.c \
                     26:        gnamef.c gnxseq.c \
                     27:        lastpart.c logent.c mailst.c prefix.c \
                     28:        setline.c strpbrk.c subdir.c sysacct.c systat.c ulockf.c \
                     29:        uucpdefs.c uucpname.c versys.c xqt.c
                     30: 
                     31: #These might be useful on non 4.2bsd systems.
                     32: MISC= htonl.c ioctl.c index.c mkdir.c getwd.c
                     33: 
                     34: DESTDIR=
                     35: 
                     36: OWNER= uucp
                     37: GROUP= daemon
                     38: CFLAGS=        -O
                     39: LDFLAGS=
                     40: LINTFLAGS= -chbap
                     41: LIBS= 
                     42: LIBDIR=        ${DESTDIR}/usr/lib/uucp
                     43: BIN=   ${DESTDIR}/usr/bin
                     44: ETC=   ${DESTDIR}/etc
                     45: PUBDIR=        ${DESTDIR}/usr/spool/uucppublic
                     46: SPOOL= ${DESTDIR}/usr/spool/uucp
                     47: XQTDIR=        ${SPOOL}/XTMP
                     48: CORRUPT= ${SPOOL}/CORRUPT
                     49: AUDIT= ${SPOOL}/AUDIT
                     50: LCK= ${SPOOL}/LCK
                     51: LOG= ${SPOOL}/LOG
                     52: STST=  ${SPOOL}/STST
                     53: # The six subdirs {not counting XTMP}.
                     54: HOSTNAME=`uuname -l | sed 's/\(.......\).*/\1/'`
                     55: SUBDIRS=C. D.${HOSTNAME}X D.${HOSTNAME} D. X. TM.
                     56: # for make depend
                     57: UNDEF= -UNDIR -UUNET -USYSIII -UUNAME -UCCWHOAMI -UGETMYHNAME -UDATAKIT \
                     58:        -DBSD4_2 -UUSG -UVMS -UBSD2_9
                     59: 
                     60: all:   ${ALL} 
                     61: 
                     62: lint: ${SRCS}
                     63:        lint ${LINTFLAGS} ${USRCS} ${LSRCS}
                     64:        -for i in ${OSRCS} ; do \
                     65:                lint ${LINTFLAGS} $$i ${LSRCS} ;\
                     66:        done
                     67: print: $(SRCS)
                     68:        vgrind $?
                     69:        vgrind -x index
                     70:        touch print
                     71: 
                     72: uucp:  uucp.o uulib.a
                     73:        ${CC} -o uucp ${LDFLAGS} uucp.o uulib.a ${LIBS}
                     74: 
                     75: uux:   uux.o uulib.a
                     76:        ${CC} -o uux ${LDFLAGS} uux.o uulib.a ${LIBS}
                     77: 
                     78: uuxqt: uuxqt.o uulib.a
                     79:        ${CC} -o uuxqt ${LDFLAGS} uuxqt.o uulib.a ${LIBS}
                     80: 
                     81: uucico:        cico.o cntrl.o conn.o condevs.o gnsys.o pk0.o chksum.o pk1.o tio.o \
                     82:        fio.o gio.o imsg.o uulib.a aculib/aculib.a
                     83:        ${CC} -o uucico ${LDFLAGS} cico.o cntrl.o conn.o condevs.o gnsys.o \
                     84:        pk0.o chksum.o pk1.o tio.o fio.o gio.o imsg.o \
                     85:        uulib.a aculib/aculib.a ${LIBS}
                     86: 
                     87: uulog: uulog.o uulib.a
                     88:        ${CC} -o uulog ${LDFLAGS} uulog.o uulib.a ${LIBS}
                     89: 
                     90: uuclean: uuclean.o uulib.a
                     91:        ${CC} -o uuclean ${LDFLAGS} uuclean.o uulib.a ${LIBS}
                     92: 
                     93: uuname:        uuname.o uulib.a
                     94:        ${CC} -o uuname ${LDFLAGS} uuname.o uulib.a ${LIBS}
                     95: 
                     96: uupoll:        uupoll.o uulib.a
                     97:        ${CC} -o uupoll ${LDFLAGS} uupoll.o uulib.a ${LIBS}
                     98: 
                     99: uusnap:        uusnap.o
                    100:        ${CC} -o uusnap ${LDFLAGS} uusnap.o ${LIBS}
                    101: 
                    102: uuencode: uuencode.o
                    103:        ${CC} -o uuencode ${LDFLAGS} uuencode.o ${LIBS}
                    104: 
                    105: uudecode: uudecode.o
                    106:        ${CC} -o uudecode ${LDFLAGS} uudecode.o ${LIBS}
                    107: 
                    108: uusend: uusend.o
                    109:        ${CC} -o uusend ${LDFLAGS} uusend.o uulib.a ${LIBS}
                    110: 
                    111: uucpd: uucpd.o uucp.h
                    112:        ${CC} -o uucpd ${LDFLAGS} uucpd.o ${LIBS}
                    113: 
                    114: uuq: uuq.o uulib.a
                    115:        ${CC} -o uuq ${LDFLAGS} uuq.o uulib.a ${LIBS}
                    116: 
                    117: acucntrl: acucntrl.o
                    118:        ${CC} -o acucntrl ${LDFLAGS} acucntrl.o ${LIBS}
                    119: 
                    120: # Note: mode 700 on ${LIBDIR} would be safer.
                    121: # Also,  L.sys etc should be 600.
                    122: 
                    123: mkdirs:
                    124:        -for i in ${LIBDIR} ${SPOOL} ${PUBDIR} ${XQTDIR} ${CORRUPT} \
                    125:                ${AUDIT} ${LCK} ${LOG} ${STST} ; do \
                    126:                rm -f $$i ; mkdir $$i ; \
                    127:                chmod 755 $$i; /etc/chown ${OWNER} $$i; chgrp ${GROUP} $$i ; \
                    128:        done
                    129:        chmod 777 ${PUBDIR} ${LCK}
                    130:        -cd ${LOG}; for i in uucico uux uuxqt uucp xferstats; do\
                    131:                rm -f $$i ; mkdir $$i ; \
                    132:                chmod 755 $$i; /etc/chown ${OWNER} $$i; chgrp ${GROUP} $$i ; \
                    133:        done
                    134:        -cd ${SPOOL}; for i in ${SUBDIRS} ; do \
                    135:                mkdir $$i; \
                    136:                /etc/chown ${OWNER} $$i; chgrp ${GROUP} $$i; chmod 755 $$i; \
                    137:        done
                    138: 
                    139: # The lorder...tsort below is for systems w/o ranlib
                    140: # But it doesnt hurt to use it. Ignore the spurious "cycle" messages
                    141: uulib.a: ${COMMON}
                    142:        rm -f $@
                    143:        ar cr $@ `lorder ${COMMON} | tsort`
                    144:        ranlib $@
                    145: 
                    146: aculib/aculib.a:
                    147:        cd aculib; make ${MFLAGS} "CFLAGS=${CFLAGS}"
                    148: 
                    149: install: ${ALL}
                    150:        /etc/chown ${OWNER} ${LIBDIR}
                    151:        chgrp ${GROUP} ${LIBDIR}
                    152:        chmod 755 ${LIBDIR}
                    153:        for i in uucico uuclean; do \
                    154:                install -s -m 6111 -o ${OWNER} -g ${GROUP} $$i ${LIBDIR} ;\
                    155:        done
                    156:        for i in uucp uux uulog uuname uusnap uupoll uuq uusend; do \
                    157:                install -s -m 6111 -o ${OWNER} -g ${GROUP} $$i ${BIN} ;\
                    158:        done
                    159:        rm -f ${BIN}/ruusend
                    160:        ln ${BIN}/uusend ${BIN}/ruusend
                    161:        install -s -m 6110 -o ${OWNER} -g ${GROUP} uuxqt ${LIBDIR}
                    162:        install -s -m 6110 -o root -g ${GROUP} acucntrl ${LIBDIR}
                    163:        install -s -m 500 -o uucp uucpd ${ETC}
                    164:        @echo Dont forget to fork off /etc/uucpd in /etc/rc.local
                    165:        @echo if you are not running /etc/inetd
                    166:        install -s uuencode ${BIN}
                    167:        install -s uudecode ${BIN}
                    168: 
                    169: clean:
                    170:        rm -f *.o ${ALL} uulib.a
                    171:        cd aculib; make ${MFLAGS} clean
                    172: 
                    173: depend:
                    174:        for i in *.c; do \
                    175:                (echo `basename $$i .c`.o: $$i >>makedep; \
                    176:                        unifdef ${UNDEF} $$i | \
                    177:                        /bin/grep '^#[  ]*include' | sed \
                    178:                        -e '/\.\.\/h/d' \
                    179:                        -e 's,<\(.*\)>,"/usr/include/\1",' \
                    180:                        -e 's/^[^"]*"\([^"]*\)".*/'"$$i"': \1/' \
                    181:                        -e 's/\.c/.o/' >>makedep); done
                    182:        echo '/^# DO NOT DELETE THIS LINE/+2,$$d' >eddep
                    183:        echo '$$r makedep' >>eddep
                    184:        echo 'w' >>eddep
                    185:        cp Makefile Makefile.bak
                    186:        ed - Makefile < eddep
                    187:        rm eddep makedep
                    188:        echo '# DEPENDENCIES MUST END AT END OF FILE' >> Makefile
                    189:        echo '# IF YOU PUT STUFF HERE IT WILL GO AWAY' >> Makefile
                    190:        echo '# see make depend above' >> Makefile
                    191: 
                    192: # DO NOT DELETE THIS LINE -- make depend uses it
                    193: # DEPENDENCIES MUST END AT END OF FILE
                    194: acucntrl.o: acucntrl.c
                    195: acucntrl.o: uucp.h
                    196: acucntrl.o: /usr/include/sys/buf.h
                    197: acucntrl.o: /usr/include/signal.h
                    198: acucntrl.o: /usr/include/sys/conf.h
                    199: acucntrl.o: /usr/include/vaxuba/ubavar.h
                    200: acucntrl.o: /usr/include/sys/stat.h
                    201: acucntrl.o: /usr/include/nlist.h
                    202: acucntrl.o: /usr/include/sgtty.h
                    203: acucntrl.o: /usr/include/utmp.h
                    204: acucntrl.o: /usr/include/pwd.h
                    205: acucntrl.o: /usr/include/stdio.h
                    206: anlwrk.o: anlwrk.c
                    207: anlwrk.o: uucp.h
                    208: anlwrk.o: /usr/include/sys/stat.h
                    209: anlwrk.o: uust.h
                    210: anlwrk.o: /usr/include/sys/dir.h
                    211: anlwrk.o: /usr/include/ctype.h
                    212: anyread.o: anyread.c
                    213: anyread.o: uucp.h
                    214: anyread.o: /usr/include/sys/stat.h
                    215: assert.o: assert.c
                    216: assert.o: uucp.h
                    217: assert.o: /usr/include/sys/time.h
                    218: assert.o: /usr/include/errno.h
                    219: cfgets.o: cfgets.c
                    220: cfgets.o: /usr/include/stdio.h
                    221: chkpth.o: chkpth.c
                    222: chkpth.o: uucp.h
                    223: chkpth.o: /usr/include/sys/stat.h
                    224: chksum.o: chksum.c
                    225: cico.o: cico.c
                    226: cico.o: /usr/include/signal.h
                    227: cico.o: uucp.h
                    228: cico.o: /usr/include/setjmp.h
                    229: cico.o: /usr/include/sgtty.h
                    230: cico.o: /usr/include/netdb.h
                    231: cico.o: /usr/include/netinet/in.h
                    232: cico.o: /usr/include/sys/socket.h
                    233: cico.o: /usr/include/sys/stat.h
                    234: cico.o: uust.h
                    235: cico.o: uusub.h
                    236: cntrl.o: cntrl.c
                    237: cntrl.o: uucp.h
                    238: cntrl.o: /usr/include/sys/stat.h
                    239: cntrl.o: uust.h
                    240: condevs.o: condevs.c
                    241: condevs.o: condevs.h
                    242: condevs.o: /usr/include/sys/time.h
                    243: conn.o: conn.c
                    244: conn.o: /usr/include/signal.h
                    245: conn.o: uucp.h
                    246: conn.o: /usr/include/setjmp.h
                    247: conn.o: /usr/include/ctype.h
                    248: conn.o: /usr/include/errno.h
                    249: conn.o: /usr/include/sgtty.h
                    250: conn.o: /usr/include/sys/time.h
                    251: cpmv.o: cpmv.c
                    252: cpmv.o: uucp.h
                    253: cpmv.o: /usr/include/sys/stat.h
                    254: expfile.o: expfile.c
                    255: expfile.o: uucp.h
                    256: expfile.o: /usr/include/sys/stat.h
                    257: fio.o: fio.c
                    258: fio.o: /usr/include/signal.h
                    259: fio.o: uucp.h
                    260: fio.o: /usr/include/sgtty.h
                    261: fio.o: /usr/include/setjmp.h
                    262: gename.o: gename.c
                    263: gename.o: uucp.h
                    264: getargs.o: getargs.c
                    265: getargs.o: uucp.h
                    266: getprm.o: getprm.c
                    267: getprm.o: uucp.h
                    268: getpwinfo.o: getpwinfo.c
                    269: getpwinfo.o: uucp.h
                    270: getpwinfo.o: /usr/include/pwd.h
                    271: getwd.o: getwd.c
                    272: getwd.o: uucp.h
                    273: gio.o: gio.c
                    274: gio.o: uucp.h
                    275: gio.o: pk.h
                    276: gio.o: /usr/include/setjmp.h
                    277: gnamef.o: gnamef.c
                    278: gnamef.o: uucp.h
                    279: gnamef.o: /usr/include/sys/dir.h
                    280: gnsys.o: gnsys.c
                    281: gnsys.o: uucp.h
                    282: gnsys.o: /usr/include/sys/dir.h
                    283: gnxseq.o: gnxseq.c
                    284: gnxseq.o: uucp.h
                    285: gnxseq.o: /usr/include/sys/time.h
                    286: imsg.o: imsg.c
                    287: imsg.o: uucp.h
                    288: index.o: index.c
                    289: index.o: /usr/include/stdio.h
                    290: ioctl.o: ioctl.c
                    291: ioctl.o: uucp.h
                    292: ioctl.o: /usr/include/sgtty.h
                    293: lastpart.o: lastpart.c
                    294: lastpart.o: uucp.h
                    295: logent.o: logent.c
                    296: logent.o: uucp.h
                    297: logent.o: /usr/include/sys/time.h
                    298: logent.o: /usr/include/fcntl.h
                    299: logent.o: /usr/include/sgtty.h
                    300: mailst.o: mailst.c
                    301: mailst.o: /usr/include/signal.h
                    302: mailst.o: uucp.h
                    303: mkdir.o: mkdir.c
                    304: pk0.o: pk0.c
                    305: pk0.o: uucp.h
                    306: pk0.o: pk.h
                    307: pk1.o: pk1.c
                    308: pk1.o: /usr/include/signal.h
                    309: pk1.o: uucp.h
                    310: pk1.o: pk.h
                    311: pk1.o: /usr/include/setjmp.h
                    312: pk1.o: /usr/include/sys/time.h
                    313: prefix.o: prefix.c
                    314: setline.o: setline.c
                    315: setline.o: uucp.h
                    316: strpbrk.o: strpbrk.c
                    317: subdir.o: subdir.c
                    318: subdir.o: uucp.h
                    319: sysacct.o: sysacct.c
                    320: sysacct.o: /usr/include/sys/types.h
                    321: systat.o: systat.c
                    322: systat.o: uucp.h
                    323: tio.o: tio.c
                    324: tio.o: /usr/include/signal.h
                    325: tio.o: uucp.h
                    326: tio.o: /usr/include/setjmp.h
                    327: tio.o: /usr/include/sys/stat.h
                    328: ulockf.o: ulockf.c
                    329: ulockf.o: uucp.h
                    330: ulockf.o: /usr/include/sys/stat.h
                    331: uuclean.o: uuclean.c
                    332: uuclean.o: /usr/include/signal.h
                    333: uuclean.o: uucp.h
                    334: uuclean.o: /usr/include/pwd.h
                    335: uuclean.o: /usr/include/sys/stat.h
                    336: uuclean.o: /usr/include/sys/dir.h
                    337: uucp.o: uucp.c
                    338: uucp.o: uucp.h
                    339: uucp.o: /usr/include/sys/stat.h
                    340: uucp.o: uust.h
                    341: uucpd.o: uucpd.c
                    342: uucpd.o: uucp.h
                    343: uucpd.o: /usr/include/netdb.h
                    344: uucpd.o: /usr/include/signal.h
                    345: uucpd.o: /usr/include/errno.h
                    346: uucpd.o: /usr/include/sys/socket.h
                    347: uucpd.o: /usr/include/netinet/in.h
                    348: uucpd.o: /usr/include/sys/wait.h
                    349: uucpd.o: /usr/include/sys/ioctl.h
                    350: uucpd.o: /usr/include/pwd.h
                    351: uucpd.o: /usr/include/lastlog.h
                    352: uucpd.o: /usr/include/utmp.h
                    353: uucpd.o: /usr/include/fcntl.h
                    354: uucpdefs.o: uucpdefs.c
                    355: uucpdefs.o: uucp.h
                    356: uucpname.o: uucpname.c
                    357: uucpname.o: uucp.h
                    358: uucpname.o: /usr/include/sys/stat.h
                    359: uudecode.o: uudecode.c
                    360: uudecode.o: /usr/include/stdio.h
                    361: uudecode.o: /usr/include/pwd.h
                    362: uudecode.o: /usr/include/sys/types.h
                    363: uudecode.o: /usr/include/sys/stat.h
                    364: uuencode.o: uuencode.c
                    365: uuencode.o: /usr/include/stdio.h
                    366: uuencode.o: /usr/include/sys/types.h
                    367: uuencode.o: /usr/include/sys/stat.h
                    368: uulog.o: uulog.c
                    369: uulog.o: uucp.h
                    370: uuname.o: uuname.c
                    371: uuname.o: uucp.h
                    372: uuname.o: /usr/include/signal.h
                    373: uupoll.o: uupoll.c
                    374: uupoll.o: uucp.h
                    375: uuq.o: uuq.c
                    376: uuq.o: uucp.h
                    377: uuq.o: /usr/include/stdio.h
                    378: uuq.o: /usr/include/sys/dir.h
                    379: uuq.o: /usr/include/sys/stat.h
                    380: uusend.o: uusend.c
                    381: uusend.o: /usr/include/stdio.h
                    382: uusend.o: /usr/include/pwd.h
                    383: uusend.o: /usr/include/sys/types.h
                    384: uusend.o: /usr/include/sys/stat.h
                    385: uusnap.o: uusnap.c
                    386: uusnap.o: uucp.h
                    387: uusnap.o: /usr/include/sys/stat.h
                    388: uusnap.o: /usr/include/sys/dir.h
                    389: uusnap.o: /usr/include/ctype.h
                    390: uux.o: uux.c
                    391: uux.o: uucp.h
                    392: uuxqt.o: uuxqt.c
                    393: uuxqt.o: uucp.h
                    394: uuxqt.o: /usr/include/sys/stat.h
                    395: uuxqt.o: /usr/include/sys/dir.h
                    396: uuxqt.o: /usr/include/signal.h
                    397: versys.o: versys.c
                    398: versys.o: uucp.h
                    399: versys.o: /usr/include/stdio.h
                    400: versys.o: /usr/include/ctype.h
                    401: xqt.o: xqt.c
                    402: xqt.o: /usr/include/signal.h
                    403: xqt.o: uucp.h
                    404: # DEPENDENCIES MUST END AT END OF FILE
                    405: # IF YOU PUT STUFF HERE IT WILL GO AWAY
                    406: # 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.