cleanup, add Berkeley header
[unix-history] / usr / src / usr.bin / tip / Makefile
CommitLineData
d0aeaf5a 1#
39a24636
KB
2# Copyright (c) 1988 The Regents of the University of California.
3# All rights reserved.
d0aeaf5a 4#
39a24636
KB
5# Redistribution and use in source and binary forms are permitted
6# provided that the above copyright notice and this paragraph are
7# duplicated in all such forms and that any documentation,
8# advertising materials, and other materials related to such
9# distribution and use acknowledge that the software was developed
10# by the University of California, Berkeley. The name of the
11# University may not be used to endorse or promote products derived
12# from this software without specific prior written permission.
13# THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
14# IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
15# WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
16#
17# @(#)Makefile 5.5 (Berkeley) %G%
457e067c 18#
f6f9e8f9 19# make file for intermachine communications package
457e067c
SL
20#
21# Files are:
22# /etc/remote remote host description file
23# /etc/phones phone number file, owned by ${OWNER} and
f6f9e8f9 24# mode 6??
457e067c 25# ${ADM}/aculog ACU accounting file, owned by ${OWNER} and
f6f9e8f9 26# mode 6?? {if ACULOG defined}
457e067c
SL
27# Presently supports:
28# BIZCOMP
29# DEC DF02-AC, DF03-AC
cdf2abc1 30# DEC DN-11/Able Quadracall
220dbdab
DS
31# HAYES and Hayes emulators
32# USR COURIER (2400 baud)
f6f9e8f9
SL
33# VENTEL 212+
34# VADIC 831 RS232 adaptor
6b46907f 35# VADIC 3451
f6f9e8f9 36# (drivers are located in aculib.a)
457e067c
SL
37#
38# Configuration defines:
39# DF02, DF03, DN11 ACU's supported
220dbdab 40# BIZ1031, BIZ1022, VENTEL, V831, V3451, HAYES, COURIER
457e067c
SL
41# ACULOG turn on tip logging of ACU use
42# PRISTINE no phone #'s put in ACU log file
43# CONNECT worthless command
44# DEFBR default baud rate to make connection at
45# DEFFS default frame size for FTP buffering of
46# writes on local side
47# BUFSIZ buffer sizing from stdio, must be fed
48# explicitly to remcap.c if not 1024
cc01ad29 49ADM= usr/adm
220dbdab
DS
50CONFIG= -DV831 -DVENTEL -DHAYES -DCOURIER
51CFLAGS= -O -DDEFBR=1200 -DDEFFS=BUFSIZ -DACULOG -DPRISTINE
120e0954
KB
52LIBC= /lib/libc.a
53SRCS= acu.c acutab.c cmds.c cmdtab.c cu.c hunt.c log.c partab.c remcap.c \
54 remote.c tip.c tipout.c uucplock.c value.c vars.c
55OBJS= acu.o acutab.o cmds.o cmdtab.o cu.o hunt.o log.o partab.o remcap.o \
56 remote.o tip.o tipout.o uucplock.o value.o vars.o
457e067c 57
120e0954 58all: aculib/aculib.a tip
457e067c 59
120e0954
KB
60tip: ${OBJS} ${LIBC}
61 ${CC} -o $@ ${OBJS} aculib/aculib.a
457e067c 62
f6f9e8f9
SL
63# acutab is configuration dependent, and so depends on the makefile
64acutab.o: Makefile
65acutab.o: acutab.c
66 ${CC} -c ${CFLAGS} ${CONFIG} acutab.c
67
68# remote.o depends on the makefile because of DEFBR and DEFFS
f6f9e8f9 69# log.o depends on the makefile because of ACULOG
120e0954 70log.o remote.o: Makefile
f6f9e8f9 71
120e0954 72aculib/aculib.a: FRC
f6f9e8f9
SL
73 cd aculib; make ${MFLAGS}
74
39a24636 75clean:
120e0954
KB
76 rm -f ${OBJS} core tip
77 cd aculib; make ${MFLAGS} clean
78
39a24636
KB
79cleandir: clean
80 rm -f ${MAN} tags .depend
81 cd aculib; make ${MFLAGS} cleandir
82
83depend:
120e0954
KB
84 mkdep ${CFLAGS} ${SRCS}
85 cd aculib; make ${MFLAGS} depend
86
87install: FRC
88 cd aculib; make ${MFLAGS} install
89 install -s -o uucp -g daemon -m 4711 tip ${DESTDIR}/usr/bin/tip
c2ab5319
SL
90 rm -f ${DESTDIR}/usr/bin/cu
91 ln ${DESTDIR}/usr/bin/tip ${DESTDIR}/usr/bin/cu
457e067c 92
39a24636 93lint:
120e0954 94 lint ${CFLAGS} ${SRCS}
457e067c 95
39a24636 96tags:
120e0954 97 ctags ${SRCS}
39a24636 98 cd aculib; make ${MFLAGS} tags