1# Makefile 4.7 82/11/07 2# 3# makefile for intermachine communications package 4# 5# Files are: 6# /etc/remote remote host description file 7# /etc/phones phone number file, owned by ${OWNER} and 8# mode 644 9# ${ADM}/aculog ACU accounting file, owned by ${OWNER} and 10# mode 644 {if ACULOG defined} 11# Presently supports: 12# BIZCOMP 13# DEC DF02-AC, DF03-AC 14# DEC DN-11/Able Quadracall 15# VENTEL intelligent modem 16# 17# Configuration defines: 18# DF02, DF03, DN11 ACU's supported 19# BIZ1031, BIZ1022, VENTEL 20# ACULOG turn on tip logging of ACU use 21# PRISTINE no phone #'s put in ACU log file 22# CONNECT worthless command 23# DEFBR default baud rate to make connection at 24# DEFFS default frame size for FTP buffering of 25# writes on local side 26# BUFSIZ buffer sizing from stdio, must be fed 27# explicitly to remcap.c if not 1024 28# VMUNIX allow VMUNIX tty stuff and job control 29 30ADM= usr/adm 31OWNER= uucp 32CFLAGS= -O -DDEFBR=300 -DDEFFS=BUFSIZ -DVENTEL -DACULOG 33LDFLAGS= 34OBJECTS=acu.o acutab.o biz22.o biz31.o cmds.o cmdtab.o cu.o df.o dn11.o hunt.o \ 35 lock.o log.o remote.o tip.o tipout.o value.o vars.o ventel.o 36SOURCES=acu.c acutab.c biz22.c biz31.c cmds.c cmdtab.c cu.c df.c dn11.c hunt.c \ 37 lock.c log.c remcap.c remote.c tip.c tipout.c uucplock.c value.c \ 38 vars.c ventel.c 39CXREF= /usr/ucb/ctags -xw 40 41tip: ${OBJECTS} remcap.o uucplock.o 42 ${CC} -o tip ${LDFLAGS} ${OBJECTS} remcap.o uucplock.o 43 rm -f cu 44 ln tip cu 45 46all: tip aculog 47 48install: all 49 install tip ${DESTDIR}/usr/bin/tip 50 chown ${OWNER} ${DESTDIR}/usr/bin/tip 51 chmod 4711 ${DESTDIR}/usr/bin/tip 52# install aculog ${DESTDIR}/etc/aculog 53# chown ${OWNER} ${DESTDIR}/etc/aculog 54# chmod 4711 ${DESTDIR}/etc/aculog 55# cp /dev/null ${DESTDIR}/${ADM}/aculog 56# chown ${OWNER} ${DESTDIR}/${ADM}/aculog 57# chmod 600 ${DESTDIR}/${ADM}/aculog 58 @echo "create /etc/remote and /etc/phones" 59 60aculog: aculog.c 61 ${CC} -o aculog ${LDFLAGS} aculog.c 62 63${OBJECTS}: tip.h 64 65remcap.o: remcap.c 66 ${CC} -c -DBUFSIZ=1024 ${CFLAGS} remcap.c 67 68tags: ${SOURCES} tip.h 69 ctags -w ${SOURCES} tip.h 70 71clean: 72 rm -f aculog tip cu *.o 73 74print: 75 @pr README TODO makefile 76 @size *.o | pr -h SIZES 77 @${CXREF} ${SOURCES} tip.h | pr -h XREF 78 @ls -l | pr 79 @pr tip.h ${SOURCES} 80 81lint: 82 -lint -hbacvx ${CFLAGS} ${SOURCES} 83