cleanups, add manual page
[unix-history] / usr / src / usr.bin / tip / Makefile
... / ...
CommitLineData
1#
2# Copyright (c) 1988 The Regents of the University of California.
3# All rights reserved.
4#
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.6 (Berkeley) %G%
18#
19# make file for intermachine communications package
20#
21# Files are:
22# /etc/remote remote host description file
23# /etc/phones phone number file, owned by ${OWNER} and
24# mode 6??
25# ${ADM}/aculog ACU accounting file, owned by ${OWNER} and
26# mode 6?? {if ACULOG defined}
27# Presently supports:
28# BIZCOMP
29# DEC DF02-AC, DF03-AC
30# DEC DN-11/Able Quadracall
31# HAYES and Hayes emulators
32# USR COURIER (2400 baud)
33# VENTEL 212+
34# VADIC 831 RS232 adaptor
35# VADIC 3451
36# (drivers are located in aculib.a)
37#
38# Configuration defines:
39# DF02, DF03, DN11 ACU's supported
40# BIZ1031, BIZ1022, VENTEL, V831, V3451, HAYES, COURIER
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
49ADM= usr/adm
50CONFIG= -DV831 -DVENTEL -DHAYES -DCOURIER
51CFLAGS= -O -DDEFBR=1200 -DDEFFS=BUFSIZ -DACULOG -DPRISTINE
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
57MAN= tip.0
58
59all: aculib/aculib.a tip
60
61tip: ${OBJS} ${LIBC}
62 ${CC} -o $@ ${OBJS} aculib/aculib.a
63
64# acutab is configuration dependent, and so depends on the makefile
65acutab.o: Makefile
66acutab.o: acutab.c
67 ${CC} -c ${CFLAGS} ${CONFIG} acutab.c
68
69# remote.o depends on the makefile because of DEFBR and DEFFS
70# log.o depends on the makefile because of ACULOG
71log.o remote.o: Makefile
72
73aculib/aculib.a: FRC
74 cd aculib; make ${MFLAGS}
75
76clean:
77 rm -f ${OBJS} core tip
78 cd aculib; make ${MFLAGS} clean
79
80cleandir: clean
81 rm -f ${MAN} tags .depend
82 cd aculib; make ${MFLAGS} cleandir
83
84depend:
85 mkdep ${CFLAGS} ${SRCS}
86 cd aculib; make ${MFLAGS} depend
87
88install: ${MAN}
89 cd aculib; make ${MFLAGS} install
90 install -s -o uucp -g daemon -m 4711 tip ${DESTDIR}/usr/bin/tip
91 rm -f ${DESTDIR}/usr/bin/cu
92 ln ${DESTDIR}/usr/bin/tip ${DESTDIR}/usr/bin/cu
93 install -c -o bin -g bin -m 444 tip.0 ${DESTDIR}/usr/man/cat1
94 rm -f ${DESTDIR}/usr/man/cat1/cu.0
95 ln ${DESTDIR}/usr/man/cat1/tip.0 ${DESTDIR}/usr/man/cat1/cu.0
96
97lint: ${SRCS}
98 lint ${CFLAGS} ${SRCS}
99
100tags: ${SRCS}
101 ctags ${SRCS}
102 cd aculib; make ${MFLAGS} tags
103
104FRC: