1*7c478bd9Sstevel@tonic-gate# 2*7c478bd9Sstevel@tonic-gate# Copyright 1998-2002 Sun Microsystems, Inc. All rights reserved. 3*7c478bd9Sstevel@tonic-gate# Use is subject to license terms. 4*7c478bd9Sstevel@tonic-gate# 5*7c478bd9Sstevel@tonic-gate# ident "%Z%%M% %I% %E% SMI" 6*7c478bd9Sstevel@tonic-gate# 7*7c478bd9Sstevel@tonic-gate# Makefile for intermachine communications package. 8*7c478bd9Sstevel@tonic-gate# 9*7c478bd9Sstevel@tonic-gate# Files are: 10*7c478bd9Sstevel@tonic-gate# /etc/remote remote host description file 11*7c478bd9Sstevel@tonic-gate# /etc/phones phone number file, owned by $(OWNER) and 12*7c478bd9Sstevel@tonic-gate# mode 6?? 13*7c478bd9Sstevel@tonic-gate# /var/adm/aculog ACU accounting file, owned by $(OWNER) and 14*7c478bd9Sstevel@tonic-gate# mode 6?? (if ACULOG defined) 15*7c478bd9Sstevel@tonic-gate# Presently supports: 16*7c478bd9Sstevel@tonic-gate# BIZCOMP 17*7c478bd9Sstevel@tonic-gate# DEC DF02-AC, DF03-AC 18*7c478bd9Sstevel@tonic-gate# DEC DN-11/Able Quadracall 19*7c478bd9Sstevel@tonic-gate# VENTEL 212+ 20*7c478bd9Sstevel@tonic-gate# VADIC 831 RS232 adaptor 21*7c478bd9Sstevel@tonic-gate# VADIC 3451 22*7c478bd9Sstevel@tonic-gate# HAYES SmartModem 23*7c478bd9Sstevel@tonic-gate# (drivers are located in aculib.a) 24*7c478bd9Sstevel@tonic-gate# 25*7c478bd9Sstevel@tonic-gate# Configuration defines: 26*7c478bd9Sstevel@tonic-gate# DF02, DF03, DN11 ACU's supported 27*7c478bd9Sstevel@tonic-gate# BIZ1031, BIZ1022, VENTEL, V831, V3451, HAYES 28*7c478bd9Sstevel@tonic-gate# ACULOG turn on tip logging of ACU use 29*7c478bd9Sstevel@tonic-gate# PRISTINE no phone #'s put in ACU log file 30*7c478bd9Sstevel@tonic-gate# DEFBR default baud rate to make connection at 31*7c478bd9Sstevel@tonic-gate# DEFFS default frame size for FTP buffering of 32*7c478bd9Sstevel@tonic-gate# writes on local side 33*7c478bd9Sstevel@tonic-gate# BUFSIZ buffer sizing from stdio, must be fed 34*7c478bd9Sstevel@tonic-gate# explicitly to remcap.c if not 1024 35*7c478bd9Sstevel@tonic-gate# 36*7c478bd9Sstevel@tonic-gate# cmd/tip/Makefile 37*7c478bd9Sstevel@tonic-gate 38*7c478bd9Sstevel@tonic-gatePROG= tip 39*7c478bd9Sstevel@tonic-gate 40*7c478bd9Sstevel@tonic-gateOBJS= acu.o cmds.o cmdtab.o cu.o hunt.o \ 41*7c478bd9Sstevel@tonic-gate log.o partab.o remote.o tip.o tipout.o value.o vars.o \ 42*7c478bd9Sstevel@tonic-gate acutab.o remcap.o uucplock.o 43*7c478bd9Sstevel@tonic-gate 44*7c478bd9Sstevel@tonic-gate# sigh, NSE can't handle wildcards 45*7c478bd9Sstevel@tonic-gate#DRIVERS= aculib/*.c 46*7c478bd9Sstevel@tonic-gate 47*7c478bd9Sstevel@tonic-gateSRCS= $(OBJS:.o=.c) 48*7c478bd9Sstevel@tonic-gate 49*7c478bd9Sstevel@tonic-gateSOURCES=$(SRCS) $(DRIVERS) 50*7c478bd9Sstevel@tonic-gate 51*7c478bd9Sstevel@tonic-gateinclude ../Makefile.cmd 52*7c478bd9Sstevel@tonic-gate 53*7c478bd9Sstevel@tonic-gateREMOTE= etc.remote 54*7c478bd9Sstevel@tonic-gateACULOG= aculog 55*7c478bd9Sstevel@tonic-gateROOTETCREMOTE= $(ROOTETC)/remote 56*7c478bd9Sstevel@tonic-gateROOTACULOGD= $(ROOT)/var/adm 57*7c478bd9Sstevel@tonic-gateROOTACULOG= $(ROOTACULOGD)/aculog 58*7c478bd9Sstevel@tonic-gate 59*7c478bd9Sstevel@tonic-gate$(ROOTPROG) := FILEMODE = 4511 60*7c478bd9Sstevel@tonic-gate$(ROOTPROG) := OWNER = uucp 61*7c478bd9Sstevel@tonic-gate$(ROOTETCREMOTE) := FILEMODE = 644 62*7c478bd9Sstevel@tonic-gate$(ROOTACULOG) := FILEMODE = 600 63*7c478bd9Sstevel@tonic-gate$(ROOTACULOG) := OWNER = uucp 64*7c478bd9Sstevel@tonic-gate 65*7c478bd9Sstevel@tonic-gateCPPFLAGS += -DDEFBR=300 -DDEFFS=BUFSIZ -DACULOG -DUSG 66*7c478bd9Sstevel@tonic-gateCONFIG= -DV831 -DVENTEL -DV3451 -DDF02 -DDF03 -DBIZ1031 -DBIZ1022 -DHAYES 67*7c478bd9Sstevel@tonic-gateACULIB= aculib/aculib.a 68*7c478bd9Sstevel@tonic-gateLDLIBS= $(ACULIB) $(LDLIBS.cmd) 69*7c478bd9Sstevel@tonic-gate 70*7c478bd9Sstevel@tonic-gate# install rules 71*7c478bd9Sstevel@tonic-gate$(ROOTACULOGD)/% : % 72*7c478bd9Sstevel@tonic-gate $(INS.file) 73*7c478bd9Sstevel@tonic-gate 74*7c478bd9Sstevel@tonic-gate$(ROOTETC)/% : etc.% 75*7c478bd9Sstevel@tonic-gate $(INS.rename) 76*7c478bd9Sstevel@tonic-gate 77*7c478bd9Sstevel@tonic-gate.KEEP_STATE: 78*7c478bd9Sstevel@tonic-gate 79*7c478bd9Sstevel@tonic-gate.PARALLEL: $(OBJS) 80*7c478bd9Sstevel@tonic-gate 81*7c478bd9Sstevel@tonic-gateall: $(PROG) $(REMOTE) $(ACULOG) 82*7c478bd9Sstevel@tonic-gate 83*7c478bd9Sstevel@tonic-gate$(PROG): $(OBJS) $(ACULIB) 84*7c478bd9Sstevel@tonic-gate $(LINK.c) -o $@ $(OBJS) $(LDLIBS) 85*7c478bd9Sstevel@tonic-gate $(POST_PROCESS) 86*7c478bd9Sstevel@tonic-gate 87*7c478bd9Sstevel@tonic-gate# special build rules 88*7c478bd9Sstevel@tonic-gateremcap.o := CPPFLAGS += -DBUFSIZ=1024 89*7c478bd9Sstevel@tonic-gateacutab.o := CPPFLAGS += $(CONFIG) 90*7c478bd9Sstevel@tonic-gate 91*7c478bd9Sstevel@tonic-gate# acutab is configuration dependent, and so depends on the makefile 92*7c478bd9Sstevel@tonic-gateacutab.o: Makefile 93*7c478bd9Sstevel@tonic-gate 94*7c478bd9Sstevel@tonic-gate# remote.o depends on the makefile because of DEFBR and DEFFS 95*7c478bd9Sstevel@tonic-gateremote.o: Makefile 96*7c478bd9Sstevel@tonic-gate 97*7c478bd9Sstevel@tonic-gate# log.o depends on the makefile because of ACULOG 98*7c478bd9Sstevel@tonic-gatelog.o: Makefile 99*7c478bd9Sstevel@tonic-gate 100*7c478bd9Sstevel@tonic-gate$(ACULIB): FRC 101*7c478bd9Sstevel@tonic-gate cd aculib; $(MAKE) 102*7c478bd9Sstevel@tonic-gate 103*7c478bd9Sstevel@tonic-gateinstall: all $(ROOTPROG) $(ROOTETCREMOTE) $(ROOTACULOG) 104*7c478bd9Sstevel@tonic-gate 105*7c478bd9Sstevel@tonic-gate$(ACULOG): 106*7c478bd9Sstevel@tonic-gate cp /dev/null $(ACULOG) 107*7c478bd9Sstevel@tonic-gate 108*7c478bd9Sstevel@tonic-gateclean: FRC 109*7c478bd9Sstevel@tonic-gate cd aculib; $(MAKE) clean 110*7c478bd9Sstevel@tonic-gate $(RM) $(OBJS) 111*7c478bd9Sstevel@tonic-gate 112*7c478bd9Sstevel@tonic-gatelint: 113*7c478bd9Sstevel@tonic-gate -lint -hbacvx $(CFLAGS) $(SOURCES) 114*7c478bd9Sstevel@tonic-gate 115*7c478bd9Sstevel@tonic-gateinclude ../Makefile.targ 116*7c478bd9Sstevel@tonic-gate 117*7c478bd9Sstevel@tonic-gateFRC: 118