10Sstevel@tonic-gate# 2*10207SJames.McPherson@Sun.COM# Copyright 2009 Sun Microsystems, Inc. All rights reserved. 30Sstevel@tonic-gate# Use is subject to license terms. 40Sstevel@tonic-gate# 50Sstevel@tonic-gate# Makefile for intermachine communications package. 60Sstevel@tonic-gate# 70Sstevel@tonic-gate# Files are: 80Sstevel@tonic-gate# /etc/remote remote host description file 9*10207SJames.McPherson@Sun.COM# /etc/phones phone number file, owned by uucp and 100Sstevel@tonic-gate# mode 6?? 11*10207SJames.McPherson@Sun.COM# /var/adm/aculog ACU accounting file, owned by uucp and 120Sstevel@tonic-gate# mode 6?? (if ACULOG defined) 130Sstevel@tonic-gate# Presently supports: 140Sstevel@tonic-gate# BIZCOMP 150Sstevel@tonic-gate# DEC DF02-AC, DF03-AC 160Sstevel@tonic-gate# DEC DN-11/Able Quadracall 170Sstevel@tonic-gate# VENTEL 212+ 180Sstevel@tonic-gate# VADIC 831 RS232 adaptor 190Sstevel@tonic-gate# VADIC 3451 200Sstevel@tonic-gate# HAYES SmartModem 210Sstevel@tonic-gate# (drivers are located in aculib.a) 220Sstevel@tonic-gate# 230Sstevel@tonic-gate# Configuration defines: 240Sstevel@tonic-gate# DF02, DF03, DN11 ACU's supported 250Sstevel@tonic-gate# BIZ1031, BIZ1022, VENTEL, V831, V3451, HAYES 260Sstevel@tonic-gate# ACULOG turn on tip logging of ACU use 270Sstevel@tonic-gate# PRISTINE no phone #'s put in ACU log file 280Sstevel@tonic-gate# DEFBR default baud rate to make connection at 290Sstevel@tonic-gate# DEFFS default frame size for FTP buffering of 300Sstevel@tonic-gate# writes on local side 310Sstevel@tonic-gate# BUFSIZ buffer sizing from stdio, must be fed 320Sstevel@tonic-gate# explicitly to remcap.c if not 1024 330Sstevel@tonic-gate# 340Sstevel@tonic-gate# cmd/tip/Makefile 350Sstevel@tonic-gate 360Sstevel@tonic-gatePROG= tip 370Sstevel@tonic-gate 380Sstevel@tonic-gateOBJS= acu.o cmds.o cmdtab.o cu.o hunt.o \ 390Sstevel@tonic-gate log.o partab.o remote.o tip.o tipout.o value.o vars.o \ 400Sstevel@tonic-gate acutab.o remcap.o uucplock.o 410Sstevel@tonic-gate 420Sstevel@tonic-gate# sigh, NSE can't handle wildcards 430Sstevel@tonic-gate#DRIVERS= aculib/*.c 440Sstevel@tonic-gate 450Sstevel@tonic-gateSRCS= $(OBJS:.o=.c) 460Sstevel@tonic-gate 470Sstevel@tonic-gateSOURCES=$(SRCS) $(DRIVERS) 480Sstevel@tonic-gate 490Sstevel@tonic-gateinclude ../Makefile.cmd 500Sstevel@tonic-gate 510Sstevel@tonic-gateREMOTE= etc.remote 520Sstevel@tonic-gateACULOG= aculog 530Sstevel@tonic-gateROOTETCREMOTE= $(ROOTETC)/remote 540Sstevel@tonic-gateROOTACULOGD= $(ROOT)/var/adm 550Sstevel@tonic-gateROOTACULOG= $(ROOTACULOGD)/aculog 560Sstevel@tonic-gate 570Sstevel@tonic-gate$(ROOTPROG) := FILEMODE = 4511 580Sstevel@tonic-gate$(ROOTETCREMOTE) := FILEMODE = 644 590Sstevel@tonic-gate$(ROOTACULOG) := FILEMODE = 600 600Sstevel@tonic-gate 61549SmuffinLINTFLAGS += -u 620Sstevel@tonic-gateCPPFLAGS += -DDEFBR=300 -DDEFFS=BUFSIZ -DACULOG -DUSG 630Sstevel@tonic-gateCONFIG= -DV831 -DVENTEL -DV3451 -DDF02 -DDF03 -DBIZ1031 -DBIZ1022 -DHAYES 640Sstevel@tonic-gateACULIB= aculib/aculib.a 650Sstevel@tonic-gateLDLIBS= $(ACULIB) $(LDLIBS.cmd) 660Sstevel@tonic-gate 670Sstevel@tonic-gate# install rules 680Sstevel@tonic-gate$(ROOTACULOGD)/% : % 690Sstevel@tonic-gate $(INS.file) 700Sstevel@tonic-gate 710Sstevel@tonic-gate$(ROOTETC)/% : etc.% 720Sstevel@tonic-gate $(INS.rename) 730Sstevel@tonic-gate 740Sstevel@tonic-gate.KEEP_STATE: 750Sstevel@tonic-gate 760Sstevel@tonic-gate.PARALLEL: $(OBJS) 770Sstevel@tonic-gate 780Sstevel@tonic-gateall: $(PROG) $(REMOTE) $(ACULOG) 790Sstevel@tonic-gate 800Sstevel@tonic-gate$(PROG): $(OBJS) $(ACULIB) 810Sstevel@tonic-gate $(LINK.c) -o $@ $(OBJS) $(LDLIBS) 820Sstevel@tonic-gate $(POST_PROCESS) 830Sstevel@tonic-gate 840Sstevel@tonic-gate# special build rules 850Sstevel@tonic-gateremcap.o := CPPFLAGS += -DBUFSIZ=1024 860Sstevel@tonic-gateacutab.o := CPPFLAGS += $(CONFIG) 870Sstevel@tonic-gate 880Sstevel@tonic-gate# acutab is configuration dependent, and so depends on the makefile 890Sstevel@tonic-gateacutab.o: Makefile 900Sstevel@tonic-gate 910Sstevel@tonic-gate# remote.o depends on the makefile because of DEFBR and DEFFS 920Sstevel@tonic-gateremote.o: Makefile 930Sstevel@tonic-gate 940Sstevel@tonic-gate# log.o depends on the makefile because of ACULOG 950Sstevel@tonic-gatelog.o: Makefile 960Sstevel@tonic-gate 970Sstevel@tonic-gate$(ACULIB): FRC 980Sstevel@tonic-gate cd aculib; $(MAKE) 990Sstevel@tonic-gate 1000Sstevel@tonic-gateinstall: all $(ROOTPROG) $(ROOTETCREMOTE) $(ROOTACULOG) 1010Sstevel@tonic-gate 1020Sstevel@tonic-gate$(ACULOG): 1030Sstevel@tonic-gate cp /dev/null $(ACULOG) 1040Sstevel@tonic-gate 1050Sstevel@tonic-gateclean: FRC 1060Sstevel@tonic-gate cd aculib; $(MAKE) clean 1070Sstevel@tonic-gate $(RM) $(OBJS) 1080Sstevel@tonic-gate 1090Sstevel@tonic-gatelint: 110549Smuffin cd aculib; $(MAKE) lint 111549Smuffin $(LINT.c) $(SRCS) $(LDLIBS.cmd) 112549Smuffin 1130Sstevel@tonic-gate 1140Sstevel@tonic-gateinclude ../Makefile.targ 1150Sstevel@tonic-gate 1160Sstevel@tonic-gateFRC: 117