Commit | Line | Data |
---|---|---|
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 | # | |
bc9f6b10 | 17 | # @(#)Makefile 5.7 (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 | 49 | ADM= usr/adm |
220dbdab DS |
50 | CONFIG= -DV831 -DVENTEL -DHAYES -DCOURIER |
51 | CFLAGS= -O -DDEFBR=1200 -DDEFFS=BUFSIZ -DACULOG -DPRISTINE | |
120e0954 KB |
52 | LIBC= /lib/libc.a |
53 | SRCS= 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 | |
55 | OBJS= 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 | |
827c6473 | 57 | MAN= tip.0 |
457e067c | 58 | |
120e0954 | 59 | all: aculib/aculib.a tip |
457e067c | 60 | |
120e0954 KB |
61 | tip: ${OBJS} ${LIBC} |
62 | ${CC} -o $@ ${OBJS} aculib/aculib.a | |
457e067c | 63 | |
f6f9e8f9 SL |
64 | # acutab is configuration dependent, and so depends on the makefile |
65 | acutab.o: Makefile | |
66 | acutab.o: acutab.c | |
67 | ${CC} -c ${CFLAGS} ${CONFIG} acutab.c | |
68 | ||
69 | # remote.o depends on the makefile because of DEFBR and DEFFS | |
f6f9e8f9 | 70 | # log.o depends on the makefile because of ACULOG |
120e0954 | 71 | log.o remote.o: Makefile |
f6f9e8f9 | 72 | |
120e0954 | 73 | aculib/aculib.a: FRC |
f6f9e8f9 SL |
74 | cd aculib; make ${MFLAGS} |
75 | ||
39a24636 | 76 | clean: |
120e0954 KB |
77 | rm -f ${OBJS} core tip |
78 | cd aculib; make ${MFLAGS} clean | |
79 | ||
39a24636 KB |
80 | cleandir: clean |
81 | rm -f ${MAN} tags .depend | |
82 | cd aculib; make ${MFLAGS} cleandir | |
83 | ||
84 | depend: | |
120e0954 KB |
85 | mkdep ${CFLAGS} ${SRCS} |
86 | cd aculib; make ${MFLAGS} depend | |
87 | ||
827c6473 | 88 | install: ${MAN} |
120e0954 | 89 | cd aculib; make ${MFLAGS} install |
bc9f6b10 | 90 | install -s -o uucp -g dialer -m 4710 tip ${DESTDIR}/usr/bin/tip |
c2ab5319 SL |
91 | rm -f ${DESTDIR}/usr/bin/cu |
92 | ln ${DESTDIR}/usr/bin/tip ${DESTDIR}/usr/bin/cu | |
827c6473 KB |
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 | |
457e067c | 96 | |
827c6473 | 97 | lint: ${SRCS} |
120e0954 | 98 | lint ${CFLAGS} ${SRCS} |
457e067c | 99 | |
827c6473 | 100 | tags: ${SRCS} |
120e0954 | 101 | ctags ${SRCS} |
39a24636 | 102 | cd aculib; make ${MFLAGS} tags |
827c6473 KB |
103 | |
104 | FRC: |