X-Git-Url: https://git.subgeniuskitty.com/unix-history/.git/blobdiff_plain/457e067c62cb51d136d8552e2777a5ba02902098..0f4556f12c8f75078501c9d1338ae7648a97f975:/usr/src/usr.bin/tip/Makefile diff --git a/usr/src/usr.bin/tip/Makefile b/usr/src/usr.bin/tip/Makefile index 5e069abf38..2ba0b0e1dd 100644 --- a/usr/src/usr.bin/tip/Makefile +++ b/usr/src/usr.bin/tip/Makefile @@ -1,21 +1,25 @@ -# Makefile 4.1 81/11/29 +# Makefile 4.11 83/06/25 # -# makefile for intermachine communications package +# make file for intermachine communications package # # Files are: # /etc/remote remote host description file # /etc/phones phone number file, owned by ${OWNER} and -# mode 644 +# mode 6?? # ${ADM}/aculog ACU accounting file, owned by ${OWNER} and -# mode 644 {if ACULOG defined} +# mode 6?? {if ACULOG defined} # Presently supports: # BIZCOMP # DEC DF02-AC, DF03-AC -# DEC DN-11/Able Quadracall {untested} +# DEC DN-11/Able Quadracall +# VENTEL 212+ +# VADIC 831 RS232 adaptor +# VADIC 3451 +# (drivers are located in aculib.a) # # Configuration defines: # DF02, DF03, DN11 ACU's supported -# BIZ1031, BIZ1022, VENTEL +# BIZ1031, BIZ1022, VENTEL, V831, V3451 # ACULOG turn on tip logging of ACU use # PRISTINE no phone #'s put in ACU log file # CONNECT worthless command @@ -25,65 +29,66 @@ # BUFSIZ buffer sizing from stdio, must be fed # explicitly to remcap.c if not 1024 -ADM=/usr/adm -BIN=/usr/bin -OWNER=uucp -CFLAGS=-O -DVMUNIX -DDEFBR=300 -DDEFFS=BUFSIZ -DDF02 -DVENTEL -LDFLAGS=-z -OBJECTS=acu.o acutab.o biz22.o biz31.o cmds.o cmdtab.o cu.o df.o dn11.o hunt.o \ - lock.o log.o remote.o tip.o tipout.o value.o vars.o ventel.o -SOURCES=acu.c acutab.c biz22.c biz31.c cmds.c cmdtab.c cu.c df.c dn11.c hunt.c \ - lock.c log.c remcap.c remote.c tip.c tipout.c uucplock.c value.c \ - vars.c ventel.c -CXREF=/usr/ucb/ctags -xw -DIST=./dist +ADM= usr/adm +OWNER= uucp +GROUP= daemon +CONFIG= -DV831 -DVENTEL +CFLAGS= -O -DDEFBR=300 -DDEFFS=BUFSIZ -DACULOG +LDFLAGS= +OBJS= acu.o cmds.o cmdtab.o cu.o hunt.o \ + log.o partab.o remote.o tip.o tipout.o value.o vars.o +SPECIAL=acutab.c remcap.c uucplock.c +DRIVERS=aculib/*.c +SOURCES=acu.c acutab.c cmds.c cmdtab.c cu.c hunt.c \ + log.c partab.c remote.c tip.c tipout.c value.c vars.c \ + ${SPECIAL} ${DRIVERS} +CXREF= /usr/ucb/ctags -xw -tip: ${OBJECTS} remcap.o uucplock.o - ${CC} -o tip ${LDFLAGS} ${OBJECTS} remcap.o uucplock.o - rm -f cu - ln tip cu +tip: ${OBJS} acutab.o remcap.o uucplock.o aculib/aculib.a + ${CC} -o tip ${LDFLAGS} ${OBJS} acutab.o remcap.o uucplock.o \ + aculib/aculib.a -all: tip aculog +${OBJS}: tip.h -install: all - cp tip ${BIN}/tip - chmod 4711 ${BIN}/tip - chown ${OWNER} ${BIN}/tip - cp aculog /etc/aculog - cp /dev/null ${ADM}/aculog - chown ${OWNER} ${ADM}/aculog - chmod 600 ${ADM}/aculog - @echo "create /etc/remote and /etc/phones" +remcap.o: remcap.c + ${CC} -c -DBUFSIZ=1024 ${CFLAGS} remcap.c -aculog: aculog.c - ${CC} -o aculog ${LDFLAGS} aculog.c - chmod 4711 aculog - chown ${OWNER} aculog +# acutab is configuration dependent, and so depends on the makefile +acutab.o: Makefile +acutab.o: acutab.c + ${CC} -c ${CFLAGS} ${CONFIG} acutab.c -${OBJECTS}: tip.h +# remote.o depends on the makefile because of DEFBR and DEFFS +remote.o: Makefile -remcap.o: remcap.c - ${CC} -c -DBUFSIZ=1024 ${CFLAGS} remcap.c +# log.o depends on the makefile because of ACULOG +log.o: Makefile + +aculib/aculib.a: ${DRIVERS} + cd aculib; make ${MFLAGS} + +install: tip + install -m 4711 -o ${OWNER} -g ${GROUP} tip ${DESTDIR}/usr/bin/tip + rm -f ${DESTDIR}/usr/bin/cu + ln ${DESTDIR}/usr/bin/tip ${DESTDIR}/usr/bin/cu +# cp /dev/null ${DESTDIR}/${ADM}/aculog +# chown ${OWNER} ${DESTDIR}/${ADM}/aculog +# chmod 600 ${DESTDIR}/${ADM}/aculog +# @echo "create /etc/remote and /etc/phones" tags: ${SOURCES} tip.h ctags -w ${SOURCES} tip.h clean: - rm -f aculog tip cu *.o + cd aculib; make ${MFLAGS} clean + rm -f tip cu *.o print: @pr README TODO makefile @size *.o | pr -h SIZES - @${CXREF} ${SOURCES} tip.h | pr -h XREF + @${CXREF} tip.h ${SOURCES} | pr -h XREF @ls -l | pr @pr tip.h ${SOURCES} lint: -lint -hbacvx ${CFLAGS} ${SOURCES} - -distribution: - -if test ! -d ${DIST} ; then mkdir ${DIST} ; else rm -f ${DIST}/* ; fi - cp ${SOURCES} tip.h makefile README TODO ${DIST} - cp remote-file phones-file tip.1 ${DIST} - cd ${DIST}; tar cf dist.tar README TODO tip.h ${SOURCES} makefile \ - remote-file phones-file tip.1