10Sstevel@tonic-gate# 20Sstevel@tonic-gate# CDDL HEADER START 30Sstevel@tonic-gate# 40Sstevel@tonic-gate# The contents of this file are subject to the terms of the 53048Samaguire# Common Development and Distribution License (the "License"). 63048Samaguire# You may not use this file except in compliance with the License. 70Sstevel@tonic-gate# 80Sstevel@tonic-gate# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 90Sstevel@tonic-gate# or http://www.opensolaris.org/os/licensing. 100Sstevel@tonic-gate# See the License for the specific language governing permissions 110Sstevel@tonic-gate# and limitations under the License. 120Sstevel@tonic-gate# 130Sstevel@tonic-gate# When distributing Covered Code, include this CDDL HEADER in each 140Sstevel@tonic-gate# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 150Sstevel@tonic-gate# If applicable, add the following below this CDDL HEADER, with the 160Sstevel@tonic-gate# fields enclosed by brackets "[]" replaced with your own identifying 170Sstevel@tonic-gate# information: Portions Copyright [yyyy] [name of copyright owner] 180Sstevel@tonic-gate# 190Sstevel@tonic-gate# CDDL HEADER END 200Sstevel@tonic-gate# 210Sstevel@tonic-gate# 22*8613SRoger.Faulkner@Sun.COM# Copyright 2009 Sun Microsystems, Inc. All rights reserved. 230Sstevel@tonic-gate# Use is subject to license terms. 240Sstevel@tonic-gate# 250Sstevel@tonic-gate 263048SamaguireMANIFEST = mpxio-upgrade.xml 273048SamaguireSVCMETHOD = mpxio-upgrade 283048Samaguire 290Sstevel@tonic-gateinclude ../Makefile.cmd 300Sstevel@tonic-gate 310Sstevel@tonic-gateSHFILES = stmsboot 320Sstevel@tonic-gateSTMSBOOT_UTIL = stmsboot_util 333409Sqh201292OBJS = $(STMSBOOT_UTIL).o 343409Sqh201292SRCS = $(OBJS:%.o=%.c) 350Sstevel@tonic-gate 360Sstevel@tonic-gatePOFILES = $(SRCS:.c=.po) $(SHFILES:%=%.po) 370Sstevel@tonic-gatePOFILE = pstmsboot.po 383409Sqh201292CLOBBERFILES = $(SHFILES) $(STMSBOOT_UTIL) $(POFILE) $(OBJS) 390Sstevel@tonic-gateROOTFSLIB_MPXIO = $(ROOT)/lib/mpxio 400Sstevel@tonic-gate 413385Sqh201292ROOTMANIFESTDIR = $(ROOTSVCSYSTEMDEVICE) 427498SJames.McPherson@Sun.COMLDLIBS += -ldevinfo -ldevid -lnvpair -lumem 430Sstevel@tonic-gate 440Sstevel@tonic-gate.KEEP_STATE: 450Sstevel@tonic-gate 460Sstevel@tonic-gateall: $(STMSBOOT_UTIL) $(SHFILES) 470Sstevel@tonic-gate 480Sstevel@tonic-gateinstall: all \ 490Sstevel@tonic-gate $(ROOTFSLIB_MPXIO) \ 500Sstevel@tonic-gate $(ROOTFSLIB_MPXIO)/$(STMSBOOT_UTIL) \ 510Sstevel@tonic-gate $(ROOTMANIFEST) \ 52*8613SRoger.Faulkner@Sun.COM $(ROOTSVCMETHOD) \ 530Sstevel@tonic-gate $(ROOTUSRSBIN)/stmsboot 540Sstevel@tonic-gate 55*8613SRoger.Faulkner@Sun.COMcheck: $(CHKMANIFEST) 560Sstevel@tonic-gate $(CSTYLE) -pP $(SRCS) 570Sstevel@tonic-gate 580Sstevel@tonic-gateclean: 590Sstevel@tonic-gate $(RM) $(POFILES) 600Sstevel@tonic-gate 610Sstevel@tonic-gatelint: lint_SRCS 620Sstevel@tonic-gate 633409Sqh201292$(STMSBOOT_UTIL): $(OBJS) 643409Sqh201292 $(LINK.c) -o $@ $(OBJS) $< $(LDLIBS) 653409Sqh201292 $(POST_PROCESS) 663409Sqh201292 670Sstevel@tonic-gateinclude ../Makefile.targ 680Sstevel@tonic-gate 690Sstevel@tonic-gate$(ROOTFSLIB_MPXIO): 700Sstevel@tonic-gate $(INS.dir) 710Sstevel@tonic-gate 720Sstevel@tonic-gate$(ROOTFSLIB_MPXIO)/%: % 730Sstevel@tonic-gate $(INS.file) 740Sstevel@tonic-gate 750Sstevel@tonic-gate$(POFILE): $(POFILES) 760Sstevel@tonic-gate $(RM) $@; cat $(POFILES) > $@ 77