| 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.5 (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 |
| 49 | ADM= usr/adm |
| 50 | CONFIG= -DV831 -DVENTEL -DHAYES -DCOURIER |
| 51 | CFLAGS= -O -DDEFBR=1200 -DDEFFS=BUFSIZ -DACULOG -DPRISTINE |
| 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 |
| 57 | |
| 58 | all: aculib/aculib.a tip |
| 59 | |
| 60 | tip: ${OBJS} ${LIBC} |
| 61 | ${CC} -o $@ ${OBJS} aculib/aculib.a |
| 62 | |
| 63 | # acutab is configuration dependent, and so depends on the makefile |
| 64 | acutab.o: Makefile |
| 65 | acutab.o: acutab.c |
| 66 | ${CC} -c ${CFLAGS} ${CONFIG} acutab.c |
| 67 | |
| 68 | # remote.o depends on the makefile because of DEFBR and DEFFS |
| 69 | # log.o depends on the makefile because of ACULOG |
| 70 | log.o remote.o: Makefile |
| 71 | |
| 72 | aculib/aculib.a: FRC |
| 73 | cd aculib; make ${MFLAGS} |
| 74 | |
| 75 | clean: |
| 76 | rm -f ${OBJS} core tip |
| 77 | cd aculib; make ${MFLAGS} clean |
| 78 | |
| 79 | cleandir: clean |
| 80 | rm -f ${MAN} tags .depend |
| 81 | cd aculib; make ${MFLAGS} cleandir |
| 82 | |
| 83 | depend: |
| 84 | mkdep ${CFLAGS} ${SRCS} |
| 85 | cd aculib; make ${MFLAGS} depend |
| 86 | |
| 87 | install: FRC |
| 88 | cd aculib; make ${MFLAGS} install |
| 89 | install -s -o uucp -g daemon -m 4711 tip ${DESTDIR}/usr/bin/tip |
| 90 | rm -f ${DESTDIR}/usr/bin/cu |
| 91 | ln ${DESTDIR}/usr/bin/tip ${DESTDIR}/usr/bin/cu |
| 92 | |
| 93 | lint: |
| 94 | lint ${CFLAGS} ${SRCS} |
| 95 | |
| 96 | tags: |
| 97 | ctags ${SRCS} |
| 98 | cd aculib; make ${MFLAGS} tags |