|
|
1.1 root 1: # Makefile 4.11 83/06/25
2: #
3: # make file 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 6??
9: # ${ADM}/aculog ACU accounting file, owned by ${OWNER} and
10: # mode 6?? {if ACULOG defined}
11: # Presently supports:
12: # BIZCOMP
13: # DEC DF02-AC, DF03-AC
14: # DEC DN-11/Able Quadracall
15: # VENTEL 212+
16: # VADIC 831 RS232 adaptor
17: # VADIC 3451
18: # HAYES SMART1200
19: # ANCHOR SIGNALMAN XII
20: # (drivers are located in aculib.a)
21: #
22: # Configuration defines:
23: # DF02, DF03, DN11 ACU's supported
24: # BIZ1031, BIZ1022, VENTEL, V831, V3451, HAYES
25: # ACULOG turn on tip logging of ACU use
26: # PRISTINE no phone #'s put in ACU log file
27: # CONNECT worthless command
28: # DEFBR default baud rate to make connection at
29: # DEFFS default frame size for FTP buffering of
30: # writes on local side
31: # BUFSIZ buffer sizing from stdio, must be fed
32: # explicitly to remcap.c if not 1024
33:
34: MAKEPARAM = AS=${AS} CC=${CC} LD=${LD} INCLDIR=${INCLDIR} LIBDIR=${LIBDIR} ULIBDIR=${ULIBDIR} DESTDIR=${DESTDIR}
35: ADM= usr/adm
36: OWNER= uucp
37: GROUP= daemon
1.1.1.2 ! root 38: CONFIG=-DHAYES -DANCHOR -DV831 -DV3451 -DVENTEL
1.1 root 39: CFLAGS= -O -DDEFBR=300 -DDEFFS=BUFSIZ
40: LDFLAGS=
41: OBJS= acu.o cmds.o cmdtab.o cu.o hunt.o \
42: log.o partab.o remote.o tip.o tipout.o value.o vars.o
43: SPECIAL=acutab.c remcap.c uucplock.c
44: DRIVERS=aculib/*.c
45: SOURCES=acu.c acutab.c cmds.c cmdtab.c cu.c hunt.c \
46: log.c partab.c remote.c tip.c tipout.c value.c vars.c \
47: ${SPECIAL} ${DRIVERS}
48: CXREF= /usr/ucb/ctags -xw
49:
50: tip: ${OBJS} acutab.o remcap.o uucplock.o aculib/aculib.a
51: ${CC} -o tip ${LDFLAGS} ${OBJS} acutab.o remcap.o uucplock.o \
52: aculib/aculib.a
53:
54: ${OBJS}: tip.h
55:
56: remcap.o: remcap.c
57: ${CC} -c -DBUFSIZ=1024 ${CFLAGS} remcap.c
58:
59: # acutab is configuration dependent, and so depends on the makefile
60: acutab.o: Makefile
61: acutab.o: acutab.c
62: ${CC} -c ${CFLAGS} ${CONFIG} acutab.c
63:
64: # remote.o depends on the makefile because of DEFBR and DEFFS
65: remote.o: Makefile
66:
67: # log.o depends on the makefile because of ACULOG
68: log.o: Makefile
69:
70: aculib/aculib.a: ${DRIVERS}
71: cd aculib; make ${MFLAGS} ${MAKEPARAM}
72:
73: install: tip
1.1.1.2 ! root 74: install -m 6711 -o ${OWNER} -g ${GROUP} tip ${DESTDIR}/usr/bin/tip
1.1 root 75: rm -f ${DESTDIR}/usr/bin/cu
76: ln ${DESTDIR}/usr/bin/tip ${DESTDIR}/usr/bin/cu
77: # cp /dev/null ${DESTDIR}/${ADM}/aculog
78: # chown ${OWNER} ${DESTDIR}/${ADM}/aculog
79: # chmod 600 ${DESTDIR}/${ADM}/aculog
80: cp remote-file ${DESTDIR}/etc/remote
81:
82: tags: ${SOURCES} tip.h
83: ctags -w ${SOURCES} tip.h
84:
85: clean:
86: cd aculib; make ${MFLAGS} clean
87: rm -f tip cu *.o
88:
89: cleansrc:
90: rm -f *.[ch] *file TODO README Makefile
91:
92: print:
93: @pr README TODO makefile
94: @size *.o | pr -h SIZES
95: @${CXREF} tip.h ${SOURCES} | pr -h XREF
96: @ls -l | pr
97: @pr tip.h ${SOURCES}
98:
99: lint:
100: -lint -hbacvx ${CFLAGS} ${SOURCES}
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.