#	@(#)Makefile	5.9 (Berkeley) 5/11/90
#
# Files are:
#	/etc/remote		remote host description file
#	/etc/phones		phone number file, owned by ${OWNER} and
#				mode 6??
#	/var/log/aculog		ACU accounting file, owned by ${OWNER} and
#				mode 6?? {if ACULOG defined}
# Presently supports:
#	BIZCOMP
#	DEC DF02-AC, DF03-AC
#	DEC DN-11/Able Quadracall
#	HAYES and Hayes emulators
#	USR COURIER (2400 baud)
#	VENTEL 212+
#	VADIC 831 RS232 adaptor
#	VADIC 3451
#
# Configuration defines:
#	DF02, DF03, DN11	ACU's supported
#	  BIZ1031, BIZ1022, VENTEL, V831, V3451, HAYES, COURIER
#	ACULOG			turn on tip logging of ACU use
#	PRISTINE		no phone #'s put in ACU log file
#	CONNECT			worthless command
#	DEFBR			default baud rate to make connection at
#	DEFFS			default frame size for FTP buffering of
#				writes on local side
#	BUFSIZ			buffer sizing from stdio, must be fed
#				explicitly to remcap.c if not 1024

CFLAGS=	-D_MINIX $(OPT) \
	-I. -DHAYES -DDEFBR=2400 -DDEFFS=BUFSIZ -DCONNECT
LDFLAGS=-fnone
LINKS=	${BINDIR}/tip ${BINDIR}/cu
MLINKS=	tip.1 cu.1
OBJS=	acu.o acutab.o cmds.o cmdtab.o cu.o hunt.o partab.o remcap.o \
	remote.o tip.o tipout.o uucplock.o value.o vars.o \
	aculib/hayes.o

.c.o:
	$(CC) $(CFLAGS) -c $< -o $@

tip:	$(OBJS)
	$(CC) $(LDFLAGS) -o tip $(OBJS)

install:	/usr/bin/tip /usr/man/man1/tip.1

/usr/bin/tip:	tip
	install -lc -g uucp -m 2755 tip $@

/usr/man/man1/tip.1:	tip.1
	install -lc $? $@

clean:
	rm -f $(OBJS) tip core

# -- acutab is configuration dependent, and so depends on the Makefile
# -- remote.o depends on the Makefile because of DEFBR and DEFFS
# -- log.o depends on the Makefile because of ACULOG
acutab.o log.o remote.o: Makefile

acu.o acutab.o cmds.o cmdtab.o cu.o hunt.o log.o remote.o:	tip.h
tip.o tipout.o uucplock.o value.o vars.o aculib/hayes.o:	tip.h
cmds.o remcap.o tip.o uucplock.o vars.o:	pathnames.h
acutab.o aculib/hayes.o:	aculib.h
remcap.o remote.o:	remcap.h
