Commit | Line | Data |
---|---|---|
52e337b4 | 1 | # Makefile 4.3 82/01/06 |
457e067c SL |
2 | # |
3 | # makefile for intermachine communications package | |
4 | # | |
5 | # Files are: | |
6 | # /etc/remote remote host description file | |
7 | # /etc/phones phone number file, owned by ${OWNER} and | |
8 | # mode 644 | |
9 | # ${ADM}/aculog ACU accounting file, owned by ${OWNER} and | |
10 | # mode 644 {if ACULOG defined} | |
11 | # Presently supports: | |
12 | # BIZCOMP | |
13 | # DEC DF02-AC, DF03-AC | |
cdf2abc1 SL |
14 | # DEC DN-11/Able Quadracall |
15 | # VENTEL intelligent modem | |
457e067c SL |
16 | # |
17 | # Configuration defines: | |
18 | # DF02, DF03, DN11 ACU's supported | |
19 | # BIZ1031, BIZ1022, VENTEL | |
20 | # ACULOG turn on tip logging of ACU use | |
21 | # PRISTINE no phone #'s put in ACU log file | |
22 | # CONNECT worthless command | |
23 | # DEFBR default baud rate to make connection at | |
24 | # DEFFS default frame size for FTP buffering of | |
25 | # writes on local side | |
26 | # BUFSIZ buffer sizing from stdio, must be fed | |
27 | # explicitly to remcap.c if not 1024 | |
28 | ||
29 | ADM=/usr/adm | |
30 | BIN=/usr/bin | |
31 | OWNER=uucp | |
52e337b4 | 32 | CFLAGS=-O -DVMUNIX -DDEFBR=300 -DDEFFS=BUFSIZ -DDF02 -DDF03 -DACULOG |
457e067c SL |
33 | LDFLAGS=-z |
34 | OBJECTS=acu.o acutab.o biz22.o biz31.o cmds.o cmdtab.o cu.o df.o dn11.o hunt.o \ | |
35 | lock.o log.o remote.o tip.o tipout.o value.o vars.o ventel.o | |
36 | SOURCES=acu.c acutab.c biz22.c biz31.c cmds.c cmdtab.c cu.c df.c dn11.c hunt.c \ | |
37 | lock.c log.c remcap.c remote.c tip.c tipout.c uucplock.c value.c \ | |
38 | vars.c ventel.c | |
39 | CXREF=/usr/ucb/ctags -xw | |
40 | DIST=./dist | |
41 | ||
42 | tip: ${OBJECTS} remcap.o uucplock.o | |
43 | ${CC} -o tip ${LDFLAGS} ${OBJECTS} remcap.o uucplock.o | |
44 | rm -f cu | |
45 | ln tip cu | |
46 | ||
47 | all: tip aculog | |
48 | ||
49 | install: all | |
50 | cp tip ${BIN}/tip | |
51 | chmod 4711 ${BIN}/tip | |
52 | chown ${OWNER} ${BIN}/tip | |
53 | cp aculog /etc/aculog | |
52e337b4 BJ |
54 | chmod 4711 /etc/aculog |
55 | chown ${OWNER} /etc/aculog | |
56 | # cp /dev/null ${ADM}/aculog | |
457e067c SL |
57 | chown ${OWNER} ${ADM}/aculog |
58 | chmod 600 ${ADM}/aculog | |
59 | @echo "create /etc/remote and /etc/phones" | |
60 | ||
61 | aculog: aculog.c | |
62 | ${CC} -o aculog ${LDFLAGS} aculog.c | |
457e067c SL |
63 | |
64 | ${OBJECTS}: tip.h | |
65 | ||
66 | remcap.o: remcap.c | |
67 | ${CC} -c -DBUFSIZ=1024 ${CFLAGS} remcap.c | |
68 | ||
69 | tags: ${SOURCES} tip.h | |
70 | ctags -w ${SOURCES} tip.h | |
71 | ||
72 | clean: | |
73 | rm -f aculog tip cu *.o | |
74 | ||
75 | print: | |
76 | @pr README TODO makefile | |
77 | @size *.o | pr -h SIZES | |
78 | @${CXREF} ${SOURCES} tip.h | pr -h XREF | |
79 | @ls -l | pr | |
80 | @pr tip.h ${SOURCES} | |
81 | ||
82 | lint: | |
83 | -lint -hbacvx ${CFLAGS} ${SOURCES} | |
84 | ||
85 | distribution: | |
86 | -if test ! -d ${DIST} ; then mkdir ${DIST} ; else rm -f ${DIST}/* ; fi | |
87 | cp ${SOURCES} tip.h makefile README TODO ${DIST} | |
88 | cp remote-file phones-file tip.1 ${DIST} | |
89 | cd ${DIST}; tar cf dist.tar README TODO tip.h ${SOURCES} makefile \ | |
90 | remote-file phones-file tip.1 |