Makefile revision 3afe87ebb25691cb6d158edaa34a6fb9b703a691
0f081398cf0eef8cc7c66a535d450110a92dc8aefielding#
0f081398cf0eef8cc7c66a535d450110a92dc8aefielding# CDDL HEADER START
8d1cf9fc1abcce38714c9f54a51d40e718774decjim#
8d1cf9fc1abcce38714c9f54a51d40e718774decjim# The contents of this file are subject to the terms of the
8d1cf9fc1abcce38714c9f54a51d40e718774decjim# Common Development and Distribution License (the "License").
0f081398cf0eef8cc7c66a535d450110a92dc8aefielding# You may not use this file except in compliance with the License.
8d1cf9fc1abcce38714c9f54a51d40e718774decjim#
0f081398cf0eef8cc7c66a535d450110a92dc8aefielding# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
8d1cf9fc1abcce38714c9f54a51d40e718774decjim# or http://www.opensolaris.org/os/licensing.
8d1cf9fc1abcce38714c9f54a51d40e718774decjim# See the License for the specific language governing permissions
8d1cf9fc1abcce38714c9f54a51d40e718774decjim# and limitations under the License.
0f081398cf0eef8cc7c66a535d450110a92dc8aefielding#
8d1cf9fc1abcce38714c9f54a51d40e718774decjim# When distributing Covered Code, include this CDDL HEADER in each
8d1cf9fc1abcce38714c9f54a51d40e718774decjim# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
0f081398cf0eef8cc7c66a535d450110a92dc8aefielding# If applicable, add the following below this CDDL HEADER, with the
8d1cf9fc1abcce38714c9f54a51d40e718774decjim# fields enclosed by brackets "[]" replaced with your own identifying
0f081398cf0eef8cc7c66a535d450110a92dc8aefielding# information: Portions Copyright [yyyy] [name of copyright owner]
8d1cf9fc1abcce38714c9f54a51d40e718774decjim#
0f081398cf0eef8cc7c66a535d450110a92dc8aefielding# CDDL HEADER END
0f081398cf0eef8cc7c66a535d450110a92dc8aefielding#
0f081398cf0eef8cc7c66a535d450110a92dc8aefielding#
0f081398cf0eef8cc7c66a535d450110a92dc8aefielding# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
0f081398cf0eef8cc7c66a535d450110a92dc8aefielding# Use is subject to license terms.
0f081398cf0eef8cc7c66a535d450110a92dc8aefielding#
8d1cf9fc1abcce38714c9f54a51d40e718774decjim
8d1cf9fc1abcce38714c9f54a51d40e718774decjimMANIFEST = mpxio-upgrade.xml
8d1cf9fc1abcce38714c9f54a51d40e718774decjimSVCMETHOD = mpxio-upgrade
8d1cf9fc1abcce38714c9f54a51d40e718774decjim
8d1cf9fc1abcce38714c9f54a51d40e718774decjiminclude ../Makefile.cmd
8d1cf9fc1abcce38714c9f54a51d40e718774decjim
8d1cf9fc1abcce38714c9f54a51d40e718774decjimSHFILES = stmsboot
8d1cf9fc1abcce38714c9f54a51d40e718774decjimSTMSBOOT_UTIL = stmsboot_util
8d1cf9fc1abcce38714c9f54a51d40e718774decjimOBJS = $(STMSBOOT_UTIL).o
8d1cf9fc1abcce38714c9f54a51d40e718774decjimSRCS = $(OBJS:%.o=%.c)
8d1cf9fc1abcce38714c9f54a51d40e718774decjim
8d1cf9fc1abcce38714c9f54a51d40e718774decjimPOFILES = $(SRCS:.c=.po) $(SHFILES:%=%.po)
8d1cf9fc1abcce38714c9f54a51d40e718774decjimPOFILE = pstmsboot.po
8d1cf9fc1abcce38714c9f54a51d40e718774decjimCLOBBERFILES = $(SHFILES) $(STMSBOOT_UTIL) $(POFILE) $(OBJS)
8d1cf9fc1abcce38714c9f54a51d40e718774decjimROOTFSLIB_MPXIO = $(ROOT)/lib/mpxio
0f081398cf0eef8cc7c66a535d450110a92dc8aefielding
8d1cf9fc1abcce38714c9f54a51d40e718774decjimROOTMANIFESTDIR = $(ROOTSVCSYSTEMDEVICE)
8d1cf9fc1abcce38714c9f54a51d40e718774decjimLDLIBS += -ldevinfo -ldevid -lnvpair -lumem
8d1cf9fc1abcce38714c9f54a51d40e718774decjim
8d1cf9fc1abcce38714c9f54a51d40e718774decjim.KEEP_STATE:
8d1cf9fc1abcce38714c9f54a51d40e718774decjim
8d1cf9fc1abcce38714c9f54a51d40e718774decjimall: $(STMSBOOT_UTIL) $(SHFILES)
8d1cf9fc1abcce38714c9f54a51d40e718774decjim
b8d55029467b9f139d081cf38c6d06ff45e742a9ndinstall: all \
8d1cf9fc1abcce38714c9f54a51d40e718774decjim $(ROOTFSLIB_MPXIO) \
8d1cf9fc1abcce38714c9f54a51d40e718774decjim $(ROOTFSLIB_MPXIO)/$(STMSBOOT_UTIL) \
0f081398cf0eef8cc7c66a535d450110a92dc8aefielding $(ROOTMANIFEST) \
0f081398cf0eef8cc7c66a535d450110a92dc8aefielding $(ROOTSVCMETHOD) \
0f081398cf0eef8cc7c66a535d450110a92dc8aefielding $(ROOTUSRSBIN)/stmsboot
0f081398cf0eef8cc7c66a535d450110a92dc8aefielding
check: $(CHKMANIFEST)
$(CSTYLE) -pP $(SRCS)
clean:
$(RM) $(POFILES)
lint: lint_SRCS
$(STMSBOOT_UTIL): $(OBJS)
$(LINK.c) -o $@ $(OBJS) $< $(LDLIBS)
$(POST_PROCESS)
include ../Makefile.targ
$(ROOTFSLIB_MPXIO):
$(INS.dir)
$(ROOTFSLIB_MPXIO)/%: %
$(INS.file)
$(POFILE): $(POFILES)
$(RM) $@; cat $(POFILES) > $@