xref: /titanic_52/usr/src/cmd/tip/Makefile (revision 8d489c7a815fcac696803219572e95aa01532b0f)
17c478bd9Sstevel@tonic-gate#
2*8d489c7aSmuffin# Copyright 2002 Sun Microsystems, Inc.  All rights reserved.
37c478bd9Sstevel@tonic-gate# Use is subject to license terms.
47c478bd9Sstevel@tonic-gate#
57c478bd9Sstevel@tonic-gate# ident	"%Z%%M%	%I%	%E% SMI"
67c478bd9Sstevel@tonic-gate#
77c478bd9Sstevel@tonic-gate# Makefile for intermachine communications package.
87c478bd9Sstevel@tonic-gate#
97c478bd9Sstevel@tonic-gate# Files are:
107c478bd9Sstevel@tonic-gate#	/etc/remote		remote host description file
117c478bd9Sstevel@tonic-gate#	/etc/phones		phone number file, owned by $(OWNER) and
127c478bd9Sstevel@tonic-gate#				  mode 6??
137c478bd9Sstevel@tonic-gate#	/var/adm/aculog		ACU accounting file, owned by $(OWNER) and
147c478bd9Sstevel@tonic-gate#				  mode 6?? (if ACULOG defined)
157c478bd9Sstevel@tonic-gate# Presently supports:
167c478bd9Sstevel@tonic-gate#	BIZCOMP
177c478bd9Sstevel@tonic-gate#	DEC DF02-AC, DF03-AC
187c478bd9Sstevel@tonic-gate#	DEC DN-11/Able Quadracall
197c478bd9Sstevel@tonic-gate#	VENTEL 212+
207c478bd9Sstevel@tonic-gate#	VADIC 831 RS232 adaptor
217c478bd9Sstevel@tonic-gate#	VADIC 3451
227c478bd9Sstevel@tonic-gate#	HAYES SmartModem
237c478bd9Sstevel@tonic-gate# (drivers are located in aculib.a)
247c478bd9Sstevel@tonic-gate#
257c478bd9Sstevel@tonic-gate# Configuration defines:
267c478bd9Sstevel@tonic-gate#	DF02, DF03, DN11	ACU's supported
277c478bd9Sstevel@tonic-gate#	  BIZ1031, BIZ1022, VENTEL, V831, V3451, HAYES
287c478bd9Sstevel@tonic-gate#	ACULOG			turn on tip logging of ACU use
297c478bd9Sstevel@tonic-gate#	PRISTINE		no phone #'s put in ACU log file
307c478bd9Sstevel@tonic-gate#	DEFBR			default baud rate to make connection at
317c478bd9Sstevel@tonic-gate#	DEFFS			default frame size for FTP buffering of
327c478bd9Sstevel@tonic-gate#				writes on local side
337c478bd9Sstevel@tonic-gate#	BUFSIZ			buffer sizing from stdio, must be fed
347c478bd9Sstevel@tonic-gate#				explicitly to remcap.c if not 1024
357c478bd9Sstevel@tonic-gate#
367c478bd9Sstevel@tonic-gate# cmd/tip/Makefile
377c478bd9Sstevel@tonic-gate
387c478bd9Sstevel@tonic-gatePROG=	tip
397c478bd9Sstevel@tonic-gate
407c478bd9Sstevel@tonic-gateOBJS=	acu.o cmds.o cmdtab.o cu.o hunt.o \
417c478bd9Sstevel@tonic-gate	log.o partab.o remote.o tip.o tipout.o value.o vars.o \
427c478bd9Sstevel@tonic-gate	acutab.o remcap.o uucplock.o
437c478bd9Sstevel@tonic-gate
447c478bd9Sstevel@tonic-gate# sigh, NSE can't handle wildcards
457c478bd9Sstevel@tonic-gate#DRIVERS=	aculib/*.c
467c478bd9Sstevel@tonic-gate
477c478bd9Sstevel@tonic-gateSRCS=	$(OBJS:.o=.c)
487c478bd9Sstevel@tonic-gate
497c478bd9Sstevel@tonic-gateSOURCES=$(SRCS) $(DRIVERS)
507c478bd9Sstevel@tonic-gate
517c478bd9Sstevel@tonic-gateinclude	../Makefile.cmd
527c478bd9Sstevel@tonic-gate
537c478bd9Sstevel@tonic-gateREMOTE=		etc.remote
547c478bd9Sstevel@tonic-gateACULOG=		aculog
557c478bd9Sstevel@tonic-gateROOTETCREMOTE=	$(ROOTETC)/remote
567c478bd9Sstevel@tonic-gateROOTACULOGD=	$(ROOT)/var/adm
577c478bd9Sstevel@tonic-gateROOTACULOG=	$(ROOTACULOGD)/aculog
587c478bd9Sstevel@tonic-gate
597c478bd9Sstevel@tonic-gate$(ROOTPROG) :=		FILEMODE =	4511
607c478bd9Sstevel@tonic-gate$(ROOTPROG) :=		OWNER =		uucp
617c478bd9Sstevel@tonic-gate$(ROOTETCREMOTE) :=	FILEMODE =	644
627c478bd9Sstevel@tonic-gate$(ROOTACULOG) :=	FILEMODE =	600
637c478bd9Sstevel@tonic-gate$(ROOTACULOG) :=	OWNER =		uucp
647c478bd9Sstevel@tonic-gate
65*8d489c7aSmuffinLINTFLAGS +=	-u
667c478bd9Sstevel@tonic-gateCPPFLAGS +=	-DDEFBR=300 -DDEFFS=BUFSIZ -DACULOG -DUSG
677c478bd9Sstevel@tonic-gateCONFIG=	-DV831 -DVENTEL -DV3451 -DDF02 -DDF03 -DBIZ1031 -DBIZ1022 -DHAYES
687c478bd9Sstevel@tonic-gateACULIB=	aculib/aculib.a
697c478bd9Sstevel@tonic-gateLDLIBS=	$(ACULIB) $(LDLIBS.cmd)
707c478bd9Sstevel@tonic-gate
717c478bd9Sstevel@tonic-gate# install rules
727c478bd9Sstevel@tonic-gate$(ROOTACULOGD)/% : %
737c478bd9Sstevel@tonic-gate	$(INS.file)
747c478bd9Sstevel@tonic-gate
757c478bd9Sstevel@tonic-gate$(ROOTETC)/% : etc.%
767c478bd9Sstevel@tonic-gate	$(INS.rename)
777c478bd9Sstevel@tonic-gate
787c478bd9Sstevel@tonic-gate.KEEP_STATE:
797c478bd9Sstevel@tonic-gate
807c478bd9Sstevel@tonic-gate.PARALLEL: $(OBJS)
817c478bd9Sstevel@tonic-gate
827c478bd9Sstevel@tonic-gateall:	$(PROG) $(REMOTE) $(ACULOG)
837c478bd9Sstevel@tonic-gate
847c478bd9Sstevel@tonic-gate$(PROG):	$(OBJS) $(ACULIB)
857c478bd9Sstevel@tonic-gate	$(LINK.c) -o $@ $(OBJS) $(LDLIBS)
867c478bd9Sstevel@tonic-gate	$(POST_PROCESS)
877c478bd9Sstevel@tonic-gate
887c478bd9Sstevel@tonic-gate# special build rules
897c478bd9Sstevel@tonic-gateremcap.o :=	CPPFLAGS += -DBUFSIZ=1024
907c478bd9Sstevel@tonic-gateacutab.o :=	CPPFLAGS += $(CONFIG)
917c478bd9Sstevel@tonic-gate
927c478bd9Sstevel@tonic-gate# acutab is configuration dependent, and so depends on the makefile
937c478bd9Sstevel@tonic-gateacutab.o: Makefile
947c478bd9Sstevel@tonic-gate
957c478bd9Sstevel@tonic-gate# remote.o depends on the makefile because of DEFBR and DEFFS
967c478bd9Sstevel@tonic-gateremote.o: Makefile
977c478bd9Sstevel@tonic-gate
987c478bd9Sstevel@tonic-gate# log.o depends on the makefile because of ACULOG
997c478bd9Sstevel@tonic-gatelog.o:	Makefile
1007c478bd9Sstevel@tonic-gate
1017c478bd9Sstevel@tonic-gate$(ACULIB): FRC
1027c478bd9Sstevel@tonic-gate	cd aculib; $(MAKE)
1037c478bd9Sstevel@tonic-gate
1047c478bd9Sstevel@tonic-gateinstall: all $(ROOTPROG) $(ROOTETCREMOTE) $(ROOTACULOG)
1057c478bd9Sstevel@tonic-gate
1067c478bd9Sstevel@tonic-gate$(ACULOG):
1077c478bd9Sstevel@tonic-gate	cp /dev/null $(ACULOG)
1087c478bd9Sstevel@tonic-gate
1097c478bd9Sstevel@tonic-gateclean:	FRC
1107c478bd9Sstevel@tonic-gate	cd aculib; $(MAKE) clean
1117c478bd9Sstevel@tonic-gate	$(RM) $(OBJS)
1127c478bd9Sstevel@tonic-gate
1137c478bd9Sstevel@tonic-gatelint:
114*8d489c7aSmuffin	cd aculib; $(MAKE) lint
115*8d489c7aSmuffin	$(LINT.c) $(SRCS) $(LDLIBS.cmd)
116*8d489c7aSmuffin
1177c478bd9Sstevel@tonic-gate
1187c478bd9Sstevel@tonic-gateinclude ../Makefile.targ
1197c478bd9Sstevel@tonic-gate
1207c478bd9Sstevel@tonic-gateFRC:
121