-# Makefile 4.9 83/06/25
-#
-# make file for intermachine communications package
+# @(#)Makefile 5.9 (Berkeley) 5/11/90
#
# Files are:
# /etc/remote remote host description file
# /etc/phones phone number file, owned by ${OWNER} and
-# mode 6??
-# ${ADM}/aculog ACU accounting file, owned by ${OWNER} and
-# mode 6?? {if ACULOG defined}
+# mode 6??
+# /var/log/aculog ACU accounting file, owned by ${OWNER} and
+# mode 6?? {if ACULOG defined}
# Presently supports:
# BIZCOMP
# DEC DF02-AC, DF03-AC
# DEC DN-11/Able Quadracall
+# HAYES and Hayes emulators
+# USR COURIER (2400 baud)
# VENTEL 212+
# VADIC 831 RS232 adaptor
# VADIC 3451
-# (drivers are located in aculib.a)
#
# Configuration defines:
# DF02, DF03, DN11 ACU's supported
-# BIZ1031, BIZ1022, VENTEL, V831, V3451
+# BIZ1031, BIZ1022, VENTEL, V831, V3451, HAYES, COURIER
# ACULOG turn on tip logging of ACU use
# PRISTINE no phone #'s put in ACU log file
# CONNECT worthless command
# BUFSIZ buffer sizing from stdio, must be fed
# explicitly to remcap.c if not 1024
-ADM= usr/adm
-OWNER= uucp
-GROUP= daemon
-CONFIG= -DV831 -DVENTEL
-CFLAGS= -O -DDEFBR=300 -DDEFFS=BUFSIZ -DACULOG
-LDFLAGS=
-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
-DRIVERS=aculib/*.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 \
- ${SPECIAL} ${DRIVERS}
-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 \
- aculib/aculib.a
-
-${OBJS}: tip.h
-
-remcap.o: remcap.c
- ${CC} -c -DBUFSIZ=1024 ${CFLAGS} remcap.c
-
-# acutab is configuration dependent, and so depends on the makefile
-acutab.o: Makefile
-acutab.o: acutab.c
- ${CC} -c ${CFLAGS} ${CONFIG} acutab.c
-
-# remote.o depends on the makefile because of DEFBR and DEFFS
-remote.o: Makefile
-
-# log.o depends on the makefile because of ACULOG
-log.o: Makefile
-
-aculib/aculib.a: ${DRIVERS}
- cd aculib; make ${MFLAGS}
-
-install: tip
- install -m 4711 -o ${OWNER} -g ${GROUP} tip ${DESTDIR}/usr/bin/tip
- ln /usr/bin/tip /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"
-
-tags: ${SOURCES} tip.h
- ctags -w ${SOURCES} tip.h
-
-clean:
- rm -f tip cu *.o
-
-print:
- @pr README TODO makefile
- @size *.o | pr -h SIZES
- @${CXREF} tip.h ${SOURCES} | pr -h XREF
- @ls -l | pr
- @pr tip.h ${SOURCES}
-
-lint:
- -lint -hbacvx ${CFLAGS} ${SOURCES}
+PROG= tip
+CFLAGS+=-I${.CURDIR} -DV831 -DVENTEL -DHAYES -DCOURIER -DDEFBR=1200 \
+ -DDEFFS=BUFSIZ -DACULOG -DPRISTINE
+.PATH: ${.CURDIR}/aculib
+BINOWN= uucp
+BINGRP= dialer
+BINMODE=4510
+LINKS= ${BINDIR}/tip ${BINDIR}/cu
+MLINKS= tip.1 cu.1
+SRCS= acu.c acutab.c cmds.c cmdtab.c cu.c hunt.c log.c partab.c remcap.c \
+ remote.c tip.c tipout.c uucplock.c value.c vars.c biz22.c courier.c \
+ df.c dn11.c hayes.c v3451.c v831.c ventel.c
+
+# -- acutab is configuration dependent, and so depends on the Makefile
+# -- remote.o depends on the Makefile because of DEFBR and DEFFS
+# -- log.o depends on the Makefile because of ACULOG
+acutab.o log.o remote.o: Makefile
+
+.include <bsd.prog.mk>