1161754Sru#	$OpenBSD: Makefile,v 1.11 2006/05/25 08:41:52 jmc Exp $
274848Sru# $FreeBSD$
37527Sjkh#
47527Sjkh# Files are:
57527Sjkh#	/etc/remote		remote host description file
67527Sjkh#	/etc/phones		phone number file, owned by ${OWNER} and
77527Sjkh#				mode 6??
87527Sjkh#	/var/log/aculog		ACU accounting file, owned by ${OWNER} and
97527Sjkh#				mode 6?? {if ACULOG defined}
1088276Smarkm# Presently supports:
1188276Smarkm#	BIZCOMP
1288276Smarkm#	DEC DF02-AC, DF03-AC
1388276Smarkm#	DEC DN-11/Able Quadracall
1488276Smarkm#	HAYES and Hayes emulators
1588276Smarkm#	USR COURIER (2400 baud)
1688276Smarkm#	VENTEL 212+
1788276Smarkm#	VADIC 831 RS232 adaptor
1888276Smarkm#	VADIC 3451
1988276Smarkm#	TELEBIT T3000
2088276Smarkm#
2188276Smarkm# Configuration defines:
2288276Smarkm#	DF02, DF03, DN11	ACU's supported
2388276Smarkm#	  BIZ1031, BIZ1022, VENTEL, V831, V3451, HAYES, COURIER, T3000
2488276Smarkm#	ACULOG			turn on tip logging of ACU use
2588276Smarkm#	PRISTINE		no phone #'s put in ACU log file
2688276Smarkm#	CONNECT			worthless command
2788276Smarkm#	DEFBR			default baud rate to make connection at
2888276Smarkm#	DEFFS			default frame size for FTP buffering of
2988276Smarkm#				writes on local side
3088276Smarkm#	BUFSIZ			buffer sizing from stdio, must be fed
3188276Smarkm#				explicitly to remcap.c if not 1024
3288276Smarkm#	CONNECT			enable ~C command (connect pgm to remote)
337527Sjkh
347547SjkhPROG=	tip
3586924SmarkmLINKS=	${BINDIR}/tip ${BINDIR}/cu
36161754SruMAN=	tip.1 cu.1
37161754SruCFLAGS+=-I${.CURDIR} -DDEFBR=9600 -DDEFFS=BUFSIZ -DACULOG -DPRISTINE \
38161754Sru	-DCONNECT -DV831 -DVENTEL -DHAYES -DCOURIER -DT3000
39173716SjbWARNS?=	2
4088276Smarkm.PATH:	${.CURDIR}/../libacu
417547SjkhSRCS=	acu.c acutab.c cmds.c cmdtab.c cu.c hunt.c log.c partab.c \
4288276Smarkm	remote.c tip.c tipout.c uucplock.c value.c vars.c \
4388276Smarkm	biz22.c courier.c df.c dn11.c hayes.c t3000.c v3451.c v831.c ventel.c
447547Sjkh
4588276Smarkm# -- acutab is configuration dependent, and so depends on the Makefile
4688276Smarkm# -- remote.o depends on the Makefile because of DEFBR and DEFFS
4788276Smarkm# -- log.o depends on the Makefile because of ACULOG
4888276Smarkmacutab.o log.o remote.o: Makefile
4939539Sobrien
5099874Sru.include <bsd.prog.mk>
5199874Sru
5286924Smarkm# Dirty, rotten hack. This can be removed when we are confident that there
5386924Smarkm# is no cu(1) with the schg-bit set.
5486924Smarkmbeforeinstall:
5594933Sru.if exists(${DESTDIR}${BINDIR}/cu)
5686952Sru	-@chflags noschg ${DESTDIR}${BINDIR}/cu
5794933Sru.endif
58