xref: /freebsd/usr.bin/tip/tip/Makefile (revision 61e21613)
1#	$OpenBSD: Makefile,v 1.11 2006/05/25 08:41:52 jmc Exp $
2#
3# Files are:
4#	/etc/remote		remote host description file
5#	/etc/phones		phone number file, owned by ${OWNER} and
6#				mode 6??
7#	/var/log/aculog		ACU accounting file, owned by ${OWNER} and
8#				mode 6?? {if ACULOG defined}
9# Presently supports:
10#	BIZCOMP
11#	DEC DF02-AC, DF03-AC
12#	DEC DN-11/Able Quadracall
13#	HAYES and Hayes emulators
14#	USR COURIER (2400 baud)
15#	VENTEL 212+
16#	VADIC 831 RS232 adaptor
17#	VADIC 3451
18#	TELEBIT T3000
19#
20# Configuration defines:
21#	DF02, DF03, DN11	ACU's supported
22#	  BIZ1031, BIZ1022, VENTEL, V831, V3451, HAYES, COURIER, T3000
23#	ACULOG			turn on tip logging of ACU use
24#	PRISTINE		no phone #'s put in ACU log file
25#	CONNECT			worthless command
26#	DEFBR			default baud rate to make connection at
27#	DEFFS			default frame size for FTP buffering of
28#				writes on local side
29#	BUFSIZ			buffer sizing from stdio, must be fed
30#				explicitly to remcap.c if not 1024
31#	CONNECT			enable ~C command (connect pgm to remote)
32
33CONFS=	phones remote
34PROG=	tip
35LINKS=	${BINDIR}/tip ${BINDIR}/cu
36MAN=	tip.1 cu.1
37CFLAGS+=-I${.CURDIR} -DDEFBR=9600 -DDEFFS=BUFSIZ -DACULOG -DPRISTINE \
38	-DCONNECT -DV831 -DVENTEL -DHAYES -DCOURIER -DT3000
39WARNS?=	2
40.PATH:	${.CURDIR}/../libacu
41SRCS=	acu.c acutab.c cmds.c cmdtab.c cu.c hunt.c log.c partab.c \
42	remote.c tip.c tipout.c uucplock.c value.c vars.c \
43	biz22.c courier.c df.c dn11.c hayes.c t3000.c v3451.c v831.c ventel.c
44
45# -- acutab is configuration dependent, and so depends on the Makefile
46# -- remote.o depends on the Makefile because of DEFBR and DEFFS
47# -- log.o depends on the Makefile because of ACULOG
48acutab.o log.o remote.o: Makefile
49
50# Don't rebuild based on remote.c
51remote: .MADE
52
53.include <bsd.prog.mk>
54
55# Dirty, rotten hack. This can be removed when we are confident that there
56# is no cu(1) with the schg-bit set.
57beforeinstall:
58.if exists(${DESTDIR}${BINDIR}/cu)
59	-chflags noschg ${DESTDIR}${BINDIR}/cu
60.endif
61