# This version expects the 4.2BSD directory reading routines to
# located in libc.a. If they aren't, augment LIBS. Also, LIBS
# can be set to reference other object modules and libraries needed
# by uucico, such as -lunet (needed when UNET is defined).
# Common object files are assembled into a library {uulib.a}
ALL
= uucico uucp uux uuxqt uulog uuclean uuname uupoll uusnap \
uuencode uudecode uusend uucpd uuq acucntrl
# Common object files placed in uulib.a
COMMON
= anlwrk.o anyread.o assert.o cfgets.o chkpth.o \
cpmv.o expfile.o gename.o getargs.o getprm.o \
getpwinfo.o gnamef.o gnxseq.o lastpart.o logent.o mailst.o \
prefix.o setline.o strpbrk.o subdir.o sysacct.o systat.o \
ulockf.o uucpname.o versys.o xqt.o uucpdefs.o
SRCS
= ${USRCS} ${OSRCS} ${LSRCS}
USRCS
= cico.c cntrl.c conn.c condevs.c gnsys.c pk0.c chksum.c pk1.c tio.c \
OSRCS
= uuclean.c uucp.c uulog.c uuname.c uupoll.c \
uusend.c uusnap.c uux.c uuxqt.c uuq.c acucntrl.c
LSRCS
= anlwrk.c anyread.c assert.c cfgets.c chkpth.c \
gename.c getargs.c getprm.c getpwinfo.c \
lastpart.c logent.c mailst.c
prefix.c \
setline.c strpbrk.c subdir.c sysacct.c systat.c ulockf.c \
uucpdefs.c uucpname.c versys.c xqt.c
#These might be useful on non 4.2bsd systems.
MISC
= htonl.c ioctl.c index.c mkdir.c getwd.c
LIBDIR
= ${DESTDIR}/usr
/lib
/uucp
PUBDIR
= ${DESTDIR}/usr
/spool
/uucppublic
SPOOL
= ${DESTDIR}/usr
/spool
/uucp
CORRUPT
= ${SPOOL}/CORRUPT
# The six subdirs {not counting XTMP}.
HOSTNAME
=`uuname -l | sed 's/\(.......\).*/\1/'`
SUBDIRS
=C. D.
${HOSTNAME}X D.
${HOSTNAME} D. X. TM.
UNDEF
= -UNDIR
-UUNET
-USYSIII
-UUNAME
-UCCWHOAMI
-UGETMYHNAME
-UDATAKIT \
-DBSD4_2
-UUSG
-UVMS
-UBSD2_9
lint
${LINTFLAGS} ${USRCS} ${LSRCS}
-for i in
${OSRCS} ; do \
lint
${LINTFLAGS} $$i ${LSRCS} ;\
${CC} -o uucp
${LDFLAGS} uucp.o uulib.a
${LIBS}
${CC} -o uux
${LDFLAGS} uux.o uulib.a
${LIBS}
${CC} -o uuxqt
${LDFLAGS} uuxqt.o uulib.a
${LIBS}
uucico
: cico.o cntrl.o conn.o condevs.o gnsys.o pk0.o chksum.o pk1.o tio.o \
fio.o gio.o imsg.o uulib.a aculib
/aculib.a
${CC} -o uucico
${LDFLAGS} cico.o cntrl.o conn.o condevs.o gnsys.o \
pk0.o chksum.o pk1.o tio.o fio.o gio.o imsg.o \
uulib.a aculib
/aculib.a
${LIBS}
${CC} -o uulog
${LDFLAGS} uulog.o uulib.a
${LIBS}
uuclean
: uuclean.o uulib.a
${CC} -o uuclean
${LDFLAGS} uuclean.o uulib.a
${LIBS}
${CC} -o uuname
${LDFLAGS} uuname.o uulib.a
${LIBS}
${CC} -o uupoll
${LDFLAGS} uupoll.o uulib.a
${LIBS}
${CC} -o uusnap
${LDFLAGS} uusnap.o
${LIBS}
${CC} -o uuencode
${LDFLAGS} uuencode.o
${LIBS}
${CC} -o uudecode
${LDFLAGS} uudecode.o
${LIBS}
${CC} -o uusend
${LDFLAGS} uusend.o uulib.a
${LIBS}
${CC} -o uucpd
${LDFLAGS} uucpd.o
${LIBS}
${CC} -o uuq
${LDFLAGS} uuq.o uulib.a
${LIBS}
${CC} -o acucntrl
${LDFLAGS} acucntrl.o
${LIBS}
# Note: mode 700 on ${LIBDIR} would be safer.
# Also, L.sys etc should be 600.
-for i in
${LIBDIR} ${SPOOL} ${PUBDIR} ${XQTDIR} ${CORRUPT} \
${AUDIT} ${LCK} ${LOG} ${STST} ; do \
rm -f
$$i ; mkdir
$$i ; \
chmod
755 $$i; /etc
/chown
${OWNER} $$i; chgrp
${GROUP} $$i ; \
chmod
777 ${PUBDIR} ${LCK}
-cd
${LOG}; for i in uucico uux uuxqt uucp xferstats
; do\
rm -f
$$i ; mkdir
$$i ; \
chmod
755 $$i; /etc
/chown
${OWNER} $$i; chgrp
${GROUP} $$i ; \
-cd
${SPOOL}; for i in
${SUBDIRS} ; do \
/etc
/chown
${OWNER} $$i; chgrp
${GROUP} $$i; chmod
755 $$i; \
# The lorder...tsort below is for systems w/o ranlib
# But it doesnt hurt to use it. Ignore the spurious "cycle" messages
ar cr
$@
`lorder ${COMMON} | tsort`
cd aculib
; make
${MFLAGS} "CFLAGS=${CFLAGS}"
/etc
/chown
${OWNER} ${LIBDIR}
for i in uucico uuclean
; do \
install -s
-m
6111 -o
${OWNER} -g
${GROUP} $$i ${LIBDIR} ;\
for i in uucp uux uulog uuname uusnap uupoll uuq uusend
; do \
install -s
-m
6111 -o
${OWNER} -g
${GROUP} $$i ${BIN} ;\
ln
${BIN}/uusend
${BIN}/ruusend
install -s
-m
6110 -o
${OWNER} -g
${GROUP} uuxqt
${LIBDIR}
install -s
-m
6110 -o root
-g
${GROUP} acucntrl
${LIBDIR}
install -s
-m
500 -o uucp uucpd
${ETC}
@echo Dont forget to fork off
/etc
/uucpd in
/etc
/rc.local
@echo if you are not running
/etc
/inetd
install -s uuencode
${BIN}
install -s uudecode
${BIN}
cd aculib
; make
${MFLAGS} clean
(echo
`basename $$i .c`.o
: $$i >>makedep
; \
/bin
/grep
'^#[ ]*include' | sed \
-e
's,<\(.*\)>,"/usr/include/\1",' \
-e
's/^[^"]*"\([^"]*\)".*/'"$$i"': \1/' \
-e
's/\.c/.o/' >>makedep
); done
echo
'/^# DO NOT DELETE THIS LINE/+2,$$d' >eddep
echo
'$$r makedep' >>eddep
echo
'# DEPENDENCIES MUST END AT END OF FILE' >> Makefile
echo
'# IF YOU PUT STUFF HERE IT WILL GO AWAY' >> Makefile
echo
'# see make depend above' >> Makefile
# DO NOT DELETE THIS LINE -- make depend uses it
# DEPENDENCIES MUST END AT END OF FILE
acucntrl.o
: /usr
/include/sys
/buf.h
acucntrl.o
: /usr
/include/signal.h
acucntrl.o
: /usr
/include/sys
/conf.h
acucntrl.o
: /usr
/include/vaxuba
/ubavar.h
acucntrl.o
: /usr
/include/sys
/stat.h
acucntrl.o
: /usr
/include/nlist.h
acucntrl.o
: /usr
/include/sgtty.h
acucntrl.o
: /usr
/include/utmp.h
acucntrl.o
: /usr
/include/pwd.h
acucntrl.o
: /usr
/include/stdio.h
anlwrk.o
: /usr
/include/sys
/stat.h
anlwrk.o
: /usr
/include/sys
/dir.h
anlwrk.o
: /usr
/include/ctype.h
anyread.o
: /usr
/include/sys
/stat.h
assert.o
: /usr
/include/sys
/time.h
assert.o
: /usr
/include/errno.h
cfgets.o
: /usr
/include/stdio.h
chkpth.o
: /usr
/include/sys
/stat.h
cico.o
: /usr
/include/signal.h
cico.o
: /usr
/include/setjmp.h
cico.o
: /usr
/include/sgtty.h
cico.o
: /usr
/include/netdb.h
cico.o
: /usr
/include/netinet
/in.h
cico.o
: /usr
/include/sys
/socket.h
cico.o
: /usr
/include/sys
/stat.h
cntrl.o
: /usr
/include/sys
/stat.h
condevs.o
: /usr
/include/sys
/time.h
conn.o
: /usr
/include/signal.h
conn.o
: /usr
/include/setjmp.h
conn.o
: /usr
/include/ctype.h
conn.o
: /usr
/include/errno.h
conn.o
: /usr
/include/sgtty.h
conn.o
: /usr
/include/sys
/time.h
cpmv.o
: /usr
/include/sys
/stat.h
expfile.o
: /usr
/include/sys
/stat.h
fio.o
: /usr
/include/signal.h
fio.o
: /usr
/include/sgtty.h
fio.o
: /usr
/include/setjmp.h
getpwinfo.o
: /usr
/include/pwd.h
gio.o
: /usr
/include/setjmp.h
gnamef.o
: /usr
/include/sys
/dir.h
gnsys.o
: /usr
/include/sys
/dir.h
gnxseq.o
: /usr
/include/sys
/time.h
index.o
: /usr
/include/stdio.h
ioctl.o
: /usr
/include/sgtty.h
logent.o
: /usr
/include/sys
/time.h
logent.o
: /usr
/include/fcntl.h
logent.o
: /usr
/include/sgtty.h
mailst.o
: /usr
/include/signal.h
pk1.o
: /usr
/include/signal.h
pk1.o
: /usr
/include/setjmp.h
pk1.o
: /usr
/include/sys
/time.h
sysacct.o
: /usr
/include/sys
/types.h
tio.o
: /usr
/include/signal.h
tio.o
: /usr
/include/setjmp.h
tio.o
: /usr
/include/sys
/stat.h
ulockf.o
: /usr
/include/sys
/stat.h
uuclean.o
: /usr
/include/signal.h
uuclean.o
: /usr
/include/pwd.h
uuclean.o
: /usr
/include/sys
/stat.h
uuclean.o
: /usr
/include/sys
/dir.h
uucp.o
: /usr
/include/sys
/stat.h
uucpd.o
: /usr
/include/netdb.h
uucpd.o
: /usr
/include/signal.h
uucpd.o
: /usr
/include/errno.h
uucpd.o
: /usr
/include/sys
/socket.h
uucpd.o
: /usr
/include/netinet
/in.h
uucpd.o
: /usr
/include/sys
/wait.h
uucpd.o
: /usr
/include/sys
/ioctl.h
uucpd.o
: /usr
/include/pwd.h
uucpd.o
: /usr
/include/lastlog.h
uucpd.o
: /usr
/include/utmp.h
uucpd.o
: /usr
/include/fcntl.h
uucpname.o
: /usr
/include/sys
/stat.h
uudecode.o
: /usr
/include/stdio.h
uudecode.o
: /usr
/include/pwd.h
uudecode.o
: /usr
/include/sys
/types.h
uudecode.o
: /usr
/include/sys
/stat.h
uuencode.o
: /usr
/include/stdio.h
uuencode.o
: /usr
/include/sys
/types.h
uuencode.o
: /usr
/include/sys
/stat.h
uuname.o
: /usr
/include/signal.h
uuq.o
: /usr
/include/stdio.h
uuq.o
: /usr
/include/sys
/dir.h
uuq.o
: /usr
/include/sys
/stat.h
uusend.o
: /usr
/include/stdio.h
uusend.o
: /usr
/include/pwd.h
uusend.o
: /usr
/include/sys
/types.h
uusend.o
: /usr
/include/sys
/stat.h
uusnap.o
: /usr
/include/sys
/stat.h
uusnap.o
: /usr
/include/sys
/dir.h
uusnap.o
: /usr
/include/ctype.h
uuxqt.o
: /usr
/include/sys
/stat.h
uuxqt.o
: /usr
/include/sys
/dir.h
uuxqt.o
: /usr
/include/signal.h
versys.o
: /usr
/include/stdio.h
versys.o
: /usr
/include/ctype.h
xqt.o
: /usr
/include/signal.h
# DEPENDENCIES MUST END AT END OF FILE
# IF YOU PUT STUFF HERE IT WILL GO AWAY