1fcf3ce44SJohn Forte# CDDL HEADER START 2fcf3ce44SJohn Forte# 3fcf3ce44SJohn Forte# The contents of this file are subject to the terms of the 4fcf3ce44SJohn Forte# Common Development and Distribution License (the "License"). 5fcf3ce44SJohn Forte# You may not use this file except in compliance with the License. 6fcf3ce44SJohn Forte# 7fcf3ce44SJohn Forte# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 8fcf3ce44SJohn Forte# or http://www.opensolaris.org/os/licensing. 9fcf3ce44SJohn Forte# See the License for the specific language governing permissions 10fcf3ce44SJohn Forte# and limitations under the License. 11fcf3ce44SJohn Forte# 12fcf3ce44SJohn Forte# When distributing Covered Code, include this CDDL HEADER in each 13fcf3ce44SJohn Forte# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 14fcf3ce44SJohn Forte# If applicable, add the following below this CDDL HEADER, with the 15fcf3ce44SJohn Forte# fields enclosed by brackets "[]" replaced with your own identifying 16fcf3ce44SJohn Forte# information: Portions Copyright [yyyy] [name of copyright owner] 17fcf3ce44SJohn Forte# 18fcf3ce44SJohn Forte# CDDL HEADER END 19fcf3ce44SJohn Forte# 20fcf3ce44SJohn Forte# 21a1e9eea0SSrikanth, Ramana# Copyright 2009 Sun Microsystems, Inc. All rights reserved. 22fcf3ce44SJohn Forte# Use is subject to license terms. 23fcf3ce44SJohn Forte# 24fcf3ce44SJohn Forteinclude ../../../Makefile.cmd 25fcf3ce44SJohn Forteinclude ../../Makefile.com 26fcf3ce44SJohn Forte 27fcf3ce44SJohn FortePROG1 = rdc 28fcf3ce44SJohn FortePROG2 = rdcfinish 29fcf3ce44SJohn FortePROG3 = rdc.cluster 30fcf3ce44SJohn ForteSHFILES = $(PROG1) $(PROG2) $(PROG3) 31fcf3ce44SJohn ForteROOTINIT_D = $(ROOTETC)/init.d 32fcf3ce44SJohn Forte 33fcf3ce44SJohn ForteFILEMODE = 0744 34fcf3ce44SJohn Forte 35fcf3ce44SJohn ForteROOTETCFILES= $(ETCFILES:%=$(ROOTETC)/%) 36fcf3ce44SJohn Forte 37fcf3ce44SJohn ForteROOTINIT_DPROG1 = $(ROOTINIT_D)/$(PROG1) 38fcf3ce44SJohn ForteROOTINIT_DPROG2 = $(ROOTINIT_D)/$(PROG2) 39fcf3ce44SJohn ForteROOTINIT_DPROG3 = $(ROOTINIT_D)/$(PROG3) 40fcf3ce44SJohn Forte 41fcf3ce44SJohn Forte.KEEP_STATE: 42fcf3ce44SJohn Forte 43fcf3ce44SJohn Forteall: $(SHFILES) $(ETCFILES) $(INITFILES) 44fcf3ce44SJohn Forte 45a1e9eea0SSrikanth, Ramanainstall: $(ROOTINIT_DPROG1) $(ROOTINIT_DPROG2) $(ROOTINIT_DPROG3) $(ROOTLIBSVCMETHOD) $(CLUSTERSBINDIR) 46fcf3ce44SJohn Forte -$(RM) $(CLUSTERLIBDSCFGSTOPDIR)/15rdc 47fcf3ce44SJohn Forte -$(RM) $(CLUSTERLIBDSCFGSTARTDIR)/10rdc 48a1e9eea0SSrikanth, Ramana -$(RM) $(ROOTLIBSVCMETHOD)/svc-rdc 49a1e9eea0SSrikanth, Ramana -$(RM) $(ROOTLIBSVCMETHOD)/svc-rdcsyncd 50a1e9eea0SSrikanth, Ramana -$(RM) $(CLUSTERSBINDIR)/rdc 51fcf3ce44SJohn Forte -$(SYMLINK) ../../../sbin/rdc $(CLUSTERLIBDSCFGSTOPDIR)/15rdc 52fcf3ce44SJohn Forte -$(SYMLINK) ../../../sbin/rdc $(CLUSTERLIBDSCFGSTARTDIR)/10rdc 53a1e9eea0SSrikanth, Ramana $(LN) $(ROOTINIT_D)/rdc $(ROOTLIBSVCMETHOD)/svc-rdc 54a1e9eea0SSrikanth, Ramana $(LN) $(ROOTINIT_D)/rdcfinish $(ROOTLIBSVCMETHOD)/svc-rdcsyncd 55*fb6c52f1SSrikanth, Ramana $(CP) $(ROOTINIT_D)/rdc.cluster $(CLUSTERSBINDIR)/rdc 56fcf3ce44SJohn Forte 57fcf3ce44SJohn Forte$(ROOTINIT_DPROG1): $(PROG1) 58fcf3ce44SJohn Forte $(INS.file) $(PROG1) 59fcf3ce44SJohn Forte 60fcf3ce44SJohn Forte$(ROOTINIT_DPROG2): $(PROG2) 61fcf3ce44SJohn Forte $(INS.file) $(PROG2) 62fcf3ce44SJohn Forte 63fcf3ce44SJohn Forte$(ROOTINIT_DPROG3): $(PROG3) 64fcf3ce44SJohn Forte $(INS.file) $(PROG3) 65fcf3ce44SJohn Forte 66fcf3ce44SJohn Forteclean: 67fcf3ce44SJohn Forte $(RM) $(SHFILES) 68fcf3ce44SJohn Forte 69fcf3ce44SJohn Forteclobber: clean 70fcf3ce44SJohn Forte 71fcf3ce44SJohn Fortelint: 72