# Copyright (c) 1983 Regents of the University of California.
# All rights reserved. The Berkeley software License Agreement
# specifies the terms and conditions for redistribution.
# @(#)Makefile 5.1 (Berkeley) %G%
# make file for intermachine communications package
# /etc/remote remote host description file
# /etc/phones phone number file, owned by ${OWNER} and
# ${ADM}/aculog ACU accounting file, owned by ${OWNER} and
# mode 6?? {if ACULOG defined}
# DEC DN-11/Able Quadracall
# VADIC 831 RS232 adaptor
# (drivers are located in aculib.a)
# DF02, DF03, DN11 ACU's supported
# BIZ1031, BIZ1022, VENTEL, V831, V3451
# ACULOG turn on tip logging of ACU use
# PRISTINE no phone #'s put in ACU log file
# CONNECT worthless command
# DEFBR default baud rate to make connection at
# DEFFS default frame size for FTP buffering of
# BUFSIZ buffer sizing from stdio, must be fed
# explicitly to remcap.c if not 1024
CONFIG
= -DV831
-DVENTEL
-DHAYES
CFLAGS
= -O
-DDEFBR
=300 -DDEFFS
=BUFSIZ
-DACULOG
-DPRISTINE
OBJS
= acu.o cmds.o cmdtab.o cu.o hunt.o \
log.o partab.o remote.o tip.o tipout.o value.o vars.o
SPECIAL
=acutab.c remcap.c uucplock.c
SOURCES
=acu.c acutab.c cmds.c cmdtab.c cu.c hunt.c \
log.c partab.c remote.c tip.c tipout.c value.c vars.c \
CXREF
= /usr
/ucb
/ctags
-xw
tip
: ${OBJS} acutab.o remcap.o uucplock.o aculib
/aculib.a
${CC} -o tip
${LDFLAGS} ${OBJS} acutab.o remcap.o uucplock.o \
${CC} -c
-DBUFSIZ
=1024 ${CFLAGS} remcap.c
# acutab is configuration dependent, and so depends on the makefile
${CC} -c
${CFLAGS} ${CONFIG} acutab.c
# remote.o depends on the makefile because of DEFBR and DEFFS
# log.o depends on the makefile because of ACULOG
aculib
/aculib.a
: ${DRIVERS}
cd aculib
; make
${MFLAGS}
install -s
-m
4711 -o
${OWNER} -g
${GROUP} tip
${DESTDIR}/usr
/bin
/tip
rm -f
${DESTDIR}/usr
/bin
/cu
ln
${DESTDIR}/usr
/bin
/tip
${DESTDIR}/usr
/bin
/cu
# cp /dev/null ${DESTDIR}/${ADM}/aculog
# chown ${OWNER} ${DESTDIR}/${ADM}/aculog
# chmod 600 ${DESTDIR}/${ADM}/aculog
# @echo "create /etc/remote and /etc/phones"
ctags
-w
${SOURCES} tip.h
cd aculib
; make
${MFLAGS} clean
@
${CXREF} tip.h
${SOURCES} | pr
-h XREF
-lint
-hbacvx
${CFLAGS} ${SOURCES}