changes for local info, parity, vadic auto dialers
[unix-history] / usr / src / usr.bin / tip / Makefile
CommitLineData
6b46907f 1# Makefile 4.8 83/06/15
457e067c
SL
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
cdf2abc1
SL
14# DEC DN-11/Able Quadracall
15# VENTEL intelligent modem
6b46907f
RC
16# VADIC 831 semi-smart modem
17# VADIC 3451
457e067c
SL
18#
19# Configuration defines:
20# DF02, DF03, DN11 ACU's supported
6b46907f 21# BIZ1031, BIZ1022, VENTEL, V831, VADIC
457e067c
SL
22# ACULOG turn on tip logging of ACU use
23# PRISTINE no phone #'s put in ACU log file
24# CONNECT worthless command
25# DEFBR default baud rate to make connection at
26# DEFFS default frame size for FTP buffering of
27# writes on local side
28# BUFSIZ buffer sizing from stdio, must be fed
29# explicitly to remcap.c if not 1024
9b75ff04 30# VMUNIX allow VMUNIX tty stuff and job control
457e067c 31
cc01ad29
SL
32ADM= usr/adm
33OWNER= uucp
6b46907f
RC
34GROUP= daemon
35CFLAGS= -O -DDEFBR=300 -DDEFFS=BUFSIZ -DVMUNIX -DACULOG -DV831
9b75ff04 36LDFLAGS=
457e067c 37OBJECTS=acu.o acutab.o biz22.o biz31.o cmds.o cmdtab.o cu.o df.o dn11.o hunt.o \
6b46907f
RC
38 lock.o log.o remote.o tip.o tipout.o value.o vars.o ventel.o v831.o \
39 chartab.o
457e067c
SL
40SOURCES=acu.c acutab.c biz22.c biz31.c cmds.c cmdtab.c cu.c df.c dn11.c hunt.c \
41 lock.c log.c remcap.c remote.c tip.c tipout.c uucplock.c value.c \
6b46907f 42 vars.c ventel.c v831.c chartab.c
cc01ad29 43CXREF= /usr/ucb/ctags -xw
457e067c
SL
44
45tip: ${OBJECTS} remcap.o uucplock.o
46 ${CC} -o tip ${LDFLAGS} ${OBJECTS} remcap.o uucplock.o
47 rm -f cu
48 ln tip cu
49
50all: tip aculog
51
52install: all
6b46907f
RC
53 install -m 4711 -o ${OWNER} -g ${GROUP} tip ${DESTDIR}/usr/bin/tip
54 ln /usr/bin/tip /usr/bin/cu
cc01ad29
SL
55# install aculog ${DESTDIR}/etc/aculog
56# chown ${OWNER} ${DESTDIR}/etc/aculog
57# chmod 4711 ${DESTDIR}/etc/aculog
58# cp /dev/null ${DESTDIR}/${ADM}/aculog
59# chown ${OWNER} ${DESTDIR}/${ADM}/aculog
60# chmod 600 ${DESTDIR}/${ADM}/aculog
a9b047af 61 @echo "create /etc/remote and /etc/phones"
457e067c
SL
62
63aculog: aculog.c
64 ${CC} -o aculog ${LDFLAGS} aculog.c
457e067c
SL
65
66${OBJECTS}: tip.h
67
68remcap.o: remcap.c
69 ${CC} -c -DBUFSIZ=1024 ${CFLAGS} remcap.c
70
71tags: ${SOURCES} tip.h
72 ctags -w ${SOURCES} tip.h
73
74clean:
75 rm -f aculog tip cu *.o
76
77print:
78 @pr README TODO makefile
79 @size *.o | pr -h SIZES
80 @${CXREF} ${SOURCES} tip.h | pr -h XREF
81 @ls -l | pr
82 @pr tip.h ${SOURCES}
83
84lint:
85 -lint -hbacvx ${CFLAGS} ${SOURCES}