date and time created 81/11/29 22:57:48 by sam
[unix-history] / usr / src / usr.bin / tip / Makefile
CommitLineData
457e067c
SL
1# Makefile 4.1 81/11/29
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 {untested}
15#
16# Configuration defines:
17# DF02, DF03, DN11 ACU's supported
18# BIZ1031, BIZ1022, VENTEL
19# ACULOG turn on tip logging of ACU use
20# PRISTINE no phone #'s put in ACU log file
21# CONNECT worthless command
22# DEFBR default baud rate to make connection at
23# DEFFS default frame size for FTP buffering of
24# writes on local side
25# BUFSIZ buffer sizing from stdio, must be fed
26# explicitly to remcap.c if not 1024
27
28ADM=/usr/adm
29BIN=/usr/bin
30OWNER=uucp
31CFLAGS=-O -DVMUNIX -DDEFBR=300 -DDEFFS=BUFSIZ -DDF02 -DVENTEL
32LDFLAGS=-z
33OBJECTS=acu.o acutab.o biz22.o biz31.o cmds.o cmdtab.o cu.o df.o dn11.o hunt.o \
34 lock.o log.o remote.o tip.o tipout.o value.o vars.o ventel.o
35SOURCES=acu.c acutab.c biz22.c biz31.c cmds.c cmdtab.c cu.c df.c dn11.c hunt.c \
36 lock.c log.c remcap.c remote.c tip.c tipout.c uucplock.c value.c \
37 vars.c ventel.c
38CXREF=/usr/ucb/ctags -xw
39DIST=./dist
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 cp tip ${BIN}/tip
50 chmod 4711 ${BIN}/tip
51 chown ${OWNER} ${BIN}/tip
52 cp aculog /etc/aculog
53 cp /dev/null ${ADM}/aculog
54 chown ${OWNER} ${ADM}/aculog
55 chmod 600 ${ADM}/aculog
56 @echo "create /etc/remote and /etc/phones"
57
58aculog: aculog.c
59 ${CC} -o aculog ${LDFLAGS} aculog.c
60 chmod 4711 aculog
61 chown ${OWNER} aculog
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
84distribution:
85 -if test ! -d ${DIST} ; then mkdir ${DIST} ; else rm -f ${DIST}/* ; fi
86 cp ${SOURCES} tip.h makefile README TODO ${DIST}
87 cp remote-file phones-file tip.1 ${DIST}
88 cd ${DIST}; tar cf dist.tar README TODO tip.h ${SOURCES} makefile \
89 remote-file phones-file tip.1