Add copyright
[unix-history] / usr / src / usr.bin / tip / Makefile
CommitLineData
d0aeaf5a
DF
1#
2# Copyright (c) 1983 Regents of the University of California.
3# All rights reserved. The Berkeley software License Agreement
4# specifies the terms and conditions for redistribution.
5#
6# @(#)Makefile 5.1 (Berkeley) %G%
457e067c 7#
f6f9e8f9 8# make file for intermachine communications package
457e067c
SL
9#
10# Files are:
11# /etc/remote remote host description file
12# /etc/phones phone number file, owned by ${OWNER} and
f6f9e8f9 13# mode 6??
457e067c 14# ${ADM}/aculog ACU accounting file, owned by ${OWNER} and
f6f9e8f9 15# mode 6?? {if ACULOG defined}
457e067c
SL
16# Presently supports:
17# BIZCOMP
18# DEC DF02-AC, DF03-AC
cdf2abc1 19# DEC DN-11/Able Quadracall
f6f9e8f9
SL
20# VENTEL 212+
21# VADIC 831 RS232 adaptor
6b46907f 22# VADIC 3451
f6f9e8f9 23# (drivers are located in aculib.a)
457e067c
SL
24#
25# Configuration defines:
26# DF02, DF03, DN11 ACU's supported
f6f9e8f9 27# BIZ1031, BIZ1022, VENTEL, V831, V3451
457e067c
SL
28# ACULOG turn on tip logging of ACU use
29# PRISTINE no phone #'s put in ACU log file
30# CONNECT worthless command
31# DEFBR default baud rate to make connection at
32# DEFFS default frame size for FTP buffering of
33# writes on local side
34# BUFSIZ buffer sizing from stdio, must be fed
35# explicitly to remcap.c if not 1024
36
cc01ad29
SL
37ADM= usr/adm
38OWNER= uucp
6b46907f 39GROUP= daemon
a821daa6 40CONFIG= -DV831 -DVENTEL -DHAYES
de74fa05 41CFLAGS= -O -DDEFBR=300 -DDEFFS=BUFSIZ -DACULOG -DPRISTINE
9b75ff04 42LDFLAGS=
f6f9e8f9
SL
43OBJS= acu.o cmds.o cmdtab.o cu.o hunt.o \
44 log.o partab.o remote.o tip.o tipout.o value.o vars.o
45SPECIAL=acutab.c remcap.c uucplock.c
46DRIVERS=aculib/*.c
47SOURCES=acu.c acutab.c cmds.c cmdtab.c cu.c hunt.c \
48 log.c partab.c remote.c tip.c tipout.c value.c vars.c \
49 ${SPECIAL} ${DRIVERS}
cc01ad29 50CXREF= /usr/ucb/ctags -xw
457e067c 51
f6f9e8f9
SL
52tip: ${OBJS} acutab.o remcap.o uucplock.o aculib/aculib.a
53 ${CC} -o tip ${LDFLAGS} ${OBJS} acutab.o remcap.o uucplock.o \
54 aculib/aculib.a
457e067c 55
f6f9e8f9 56${OBJS}: tip.h
457e067c 57
f6f9e8f9
SL
58remcap.o: remcap.c
59 ${CC} -c -DBUFSIZ=1024 ${CFLAGS} remcap.c
60
61# acutab is configuration dependent, and so depends on the makefile
62acutab.o: Makefile
63acutab.o: acutab.c
64 ${CC} -c ${CFLAGS} ${CONFIG} acutab.c
65
66# remote.o depends on the makefile because of DEFBR and DEFFS
67remote.o: Makefile
68
69# log.o depends on the makefile because of ACULOG
70log.o: Makefile
71
72aculib/aculib.a: ${DRIVERS}
73 cd aculib; make ${MFLAGS}
74
75install: tip
087a6a14 76 install -s -m 4711 -o ${OWNER} -g ${GROUP} tip ${DESTDIR}/usr/bin/tip
c2ab5319
SL
77 rm -f ${DESTDIR}/usr/bin/cu
78 ln ${DESTDIR}/usr/bin/tip ${DESTDIR}/usr/bin/cu
cc01ad29
SL
79# cp /dev/null ${DESTDIR}/${ADM}/aculog
80# chown ${OWNER} ${DESTDIR}/${ADM}/aculog
81# chmod 600 ${DESTDIR}/${ADM}/aculog
f6f9e8f9 82# @echo "create /etc/remote and /etc/phones"
457e067c
SL
83
84tags: ${SOURCES} tip.h
85 ctags -w ${SOURCES} tip.h
86
87clean:
54e4521d 88 cd aculib; make ${MFLAGS} clean
f6f9e8f9 89 rm -f tip cu *.o
457e067c
SL
90
91print:
92 @pr README TODO makefile
93 @size *.o | pr -h SIZES
f6f9e8f9 94 @${CXREF} tip.h ${SOURCES} | pr -h XREF
457e067c
SL
95 @ls -l | pr
96 @pr tip.h ${SOURCES}
97
98lint:
99 -lint -hbacvx ${CFLAGS} ${SOURCES}