added depend label
[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#
a8629c9c 6# @(#)Makefile 5.3 (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
220dbdab
DS
20# HAYES and Hayes emulators
21# USR COURIER (2400 baud)
f6f9e8f9
SL
22# VENTEL 212+
23# VADIC 831 RS232 adaptor
6b46907f 24# VADIC 3451
f6f9e8f9 25# (drivers are located in aculib.a)
457e067c
SL
26#
27# Configuration defines:
28# DF02, DF03, DN11 ACU's supported
220dbdab 29# BIZ1031, BIZ1022, VENTEL, V831, V3451, HAYES, COURIER
457e067c
SL
30# ACULOG turn on tip logging of ACU use
31# PRISTINE no phone #'s put in ACU log file
32# CONNECT worthless command
33# DEFBR default baud rate to make connection at
34# DEFFS default frame size for FTP buffering of
35# writes on local side
36# BUFSIZ buffer sizing from stdio, must be fed
37# explicitly to remcap.c if not 1024
38
cc01ad29
SL
39ADM= usr/adm
40OWNER= uucp
6b46907f 41GROUP= daemon
220dbdab
DS
42CONFIG= -DV831 -DVENTEL -DHAYES -DCOURIER
43CFLAGS= -O -DDEFBR=1200 -DDEFFS=BUFSIZ -DACULOG -DPRISTINE
9b75ff04 44LDFLAGS=
f6f9e8f9
SL
45OBJS= acu.o cmds.o cmdtab.o cu.o hunt.o \
46 log.o partab.o remote.o tip.o tipout.o value.o vars.o
47SPECIAL=acutab.c remcap.c uucplock.c
48DRIVERS=aculib/*.c
49SOURCES=acu.c acutab.c cmds.c cmdtab.c cu.c hunt.c \
50 log.c partab.c remote.c tip.c tipout.c value.c vars.c \
51 ${SPECIAL} ${DRIVERS}
cc01ad29 52CXREF= /usr/ucb/ctags -xw
457e067c 53
f6f9e8f9
SL
54tip: ${OBJS} acutab.o remcap.o uucplock.o aculib/aculib.a
55 ${CC} -o tip ${LDFLAGS} ${OBJS} acutab.o remcap.o uucplock.o \
56 aculib/aculib.a
457e067c 57
f6f9e8f9 58${OBJS}: tip.h
457e067c 59
f6f9e8f9
SL
60remcap.o: remcap.c
61 ${CC} -c -DBUFSIZ=1024 ${CFLAGS} remcap.c
62
a8629c9c
KB
63depend:
64
f6f9e8f9
SL
65# acutab is configuration dependent, and so depends on the makefile
66acutab.o: Makefile
67acutab.o: acutab.c
68 ${CC} -c ${CFLAGS} ${CONFIG} acutab.c
69
70# remote.o depends on the makefile because of DEFBR and DEFFS
71remote.o: Makefile
72
73# log.o depends on the makefile because of ACULOG
74log.o: Makefile
75
76aculib/aculib.a: ${DRIVERS}
77 cd aculib; make ${MFLAGS}
78
79install: tip
087a6a14 80 install -s -m 4711 -o ${OWNER} -g ${GROUP} tip ${DESTDIR}/usr/bin/tip
c2ab5319
SL
81 rm -f ${DESTDIR}/usr/bin/cu
82 ln ${DESTDIR}/usr/bin/tip ${DESTDIR}/usr/bin/cu
cc01ad29
SL
83# cp /dev/null ${DESTDIR}/${ADM}/aculog
84# chown ${OWNER} ${DESTDIR}/${ADM}/aculog
85# chmod 600 ${DESTDIR}/${ADM}/aculog
f6f9e8f9 86# @echo "create /etc/remote and /etc/phones"
457e067c
SL
87
88tags: ${SOURCES} tip.h
89 ctags -w ${SOURCES} tip.h
90
91clean:
54e4521d 92 cd aculib; make ${MFLAGS} clean
f6f9e8f9 93 rm -f tip cu *.o
457e067c
SL
94
95print:
96 @pr README TODO makefile
97 @size *.o | pr -h SIZES
f6f9e8f9 98 @${CXREF} tip.h ${SOURCES} | pr -h XREF
457e067c
SL
99 @ls -l | pr
100 @pr tip.h ${SOURCES}
101
102lint:
103 -lint -hbacvx ${CFLAGS} ${SOURCES}