51b564aca190d2a430104dded1983d3a1fff66e2mcwalter#
51b564aca190d2a430104dded1983d3a1fff66e2mcwalter# CDDL HEADER START
51b564aca190d2a430104dded1983d3a1fff66e2mcwalter#
51b564aca190d2a430104dded1983d3a1fff66e2mcwalter# The contents of this file are subject to the terms of the
51b564aca190d2a430104dded1983d3a1fff66e2mcwalter# Common Development and Distribution License (the "License").
51b564aca190d2a430104dded1983d3a1fff66e2mcwalter# You may not use this file except in compliance with the License.
51b564aca190d2a430104dded1983d3a1fff66e2mcwalter#
51b564aca190d2a430104dded1983d3a1fff66e2mcwalter# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
51b564aca190d2a430104dded1983d3a1fff66e2mcwalter# or http://www.opensolaris.org/os/licensing.
51b564aca190d2a430104dded1983d3a1fff66e2mcwalter# See the License for the specific language governing permissions
51b564aca190d2a430104dded1983d3a1fff66e2mcwalter# and limitations under the License.
51b564aca190d2a430104dded1983d3a1fff66e2mcwalter#
51b564aca190d2a430104dded1983d3a1fff66e2mcwalter# When distributing Covered Code, include this CDDL HEADER in each
51b564aca190d2a430104dded1983d3a1fff66e2mcwalter# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
51b564aca190d2a430104dded1983d3a1fff66e2mcwalter# If applicable, add the following below this CDDL HEADER, with the
51b564aca190d2a430104dded1983d3a1fff66e2mcwalter# fields enclosed by brackets "[]" replaced with your own identifying
51b564aca190d2a430104dded1983d3a1fff66e2mcwalter# information: Portions Copyright [yyyy] [name of copyright owner]
51b564aca190d2a430104dded1983d3a1fff66e2mcwalter#
51b564aca190d2a430104dded1983d3a1fff66e2mcwalter# CDDL HEADER END
51b564aca190d2a430104dded1983d3a1fff66e2mcwalter#
51b564aca190d2a430104dded1983d3a1fff66e2mcwalter#
75ce41a57ff334bd8fe2cb9ed51eea835892f944Ali Bahrami# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
51b564aca190d2a430104dded1983d3a1fff66e2mcwalter# Use is subject to license terms.
51b564aca190d2a430104dded1983d3a1fff66e2mcwalter#
51b564aca190d2a430104dded1983d3a1fff66e2mcwalter# lib/libprtdiag_psr/sparc/monza/Makefile
51b564aca190d2a430104dded1983d3a1fff66e2mcwalter
51b564aca190d2a430104dded1983d3a1fff66e2mcwalterUTSBASE = ../../../../../src/uts
51b564aca190d2a430104dded1983d3a1fff66e2mcwalter
51b564aca190d2a430104dded1983d3a1fff66e2mcwalterPLATFORM_OBJECTS= monza.o
51b564aca190d2a430104dded1983d3a1fff66e2mcwalter
51b564aca190d2a430104dded1983d3a1fff66e2mcwalterinclude ../Makefile.com
51b564aca190d2a430104dded1983d3a1fff66e2mcwalter
51b564aca190d2a430104dded1983d3a1fff66e2mcwalter#
51b564aca190d2a430104dded1983d3a1fff66e2mcwalter# Override the PSR_MACH variable to use sun4v libraries
51b564aca190d2a430104dded1983d3a1fff66e2mcwalter#
51b564aca190d2a430104dded1983d3a1fff66e2mcwalterPSR_MACH=sun4v
51b564aca190d2a430104dded1983d3a1fff66e2mcwalter
51b564aca190d2a430104dded1983d3a1fff66e2mcwalterIFLAGS += -I ../../../libprtdiag/inc
51b564aca190d2a430104dded1983d3a1fff66e2mcwalterIFLAGS += -I$(SRC)/cmd/picl/plugins/inc
51b564aca190d2a430104dded1983d3a1fff66e2mcwalterLDLIBS += -lpicl
51b564aca190d2a430104dded1983d3a1fff66e2mcwalter
51b564aca190d2a430104dded1983d3a1fff66e2mcwalterLINTFLAGS += $(IFLAGS)
51b564aca190d2a430104dded1983d3a1fff66e2mcwalter
51b564aca190d2a430104dded1983d3a1fff66e2mcwalterPLATFORM=SUNW,Netra-CP3260
51b564aca190d2a430104dded1983d3a1fff66e2mcwalter
75ce41a57ff334bd8fe2cb9ed51eea835892f944Ali Bahrami$(USR_PLAT_DIR)/$(PLATFORM)/lib/libprtdiag_psr.so.1 := FILEMODE= 0755
75ce41a57ff334bd8fe2cb9ed51eea835892f944Ali Bahrami
51b564aca190d2a430104dded1983d3a1fff66e2mcwalter.KEEP_STATE:
51b564aca190d2a430104dded1983d3a1fff66e2mcwalter
51b564aca190d2a430104dded1983d3a1fff66e2mcwalterPLATLIBS= $(USR_PLAT_DIR)/$(PLATFORM)/lib
51b564aca190d2a430104dded1983d3a1fff66e2mcwalter
51b564aca190d2a430104dded1983d3a1fff66e2mcwalterinstall: all $(USR_PSM_LIBS) $(LINKED_PRTDIAG_DIRS)
51b564aca190d2a430104dded1983d3a1fff66e2mcwalter
51b564aca190d2a430104dded1983d3a1fff66e2mcwalter#
51b564aca190d2a430104dded1983d3a1fff66e2mcwalter# install rules
51b564aca190d2a430104dded1983d3a1fff66e2mcwalter#
51b564aca190d2a430104dded1983d3a1fff66e2mcwalter
51b564aca190d2a430104dded1983d3a1fff66e2mcwalter$(USR_PSM_LIB_DIR)/%: % $(USR_PSM_LIB_DIR)
51b564aca190d2a430104dded1983d3a1fff66e2mcwalter $(INS.file)
51b564aca190d2a430104dded1983d3a1fff66e2mcwalter
51b564aca190d2a430104dded1983d3a1fff66e2mcwalter$(USR_PSM_LIB_DIR):
48bc00d6814e04ff3edb32cafe7d1bc580baff68jmcp $(INS.dir)
51b564aca190d2a430104dded1983d3a1fff66e2mcwalter
51b564aca190d2a430104dded1983d3a1fff66e2mcwalter$(LINKED_DIRS): $(USR_PLAT_DIR)
48bc00d6814e04ff3edb32cafe7d1bc580baff68jmcp -$(INS.dir)
51b564aca190d2a430104dded1983d3a1fff66e2mcwalter
51b564aca190d2a430104dded1983d3a1fff66e2mcwalter$(LINKED_LIB_DIRS): $(LINKED_DIRS)
48bc00d6814e04ff3edb32cafe7d1bc580baff68jmcp -$(INS.dir)
51b564aca190d2a430104dded1983d3a1fff66e2mcwalter
51b564aca190d2a430104dded1983d3a1fff66e2mcwalter$(LINKED_PRTDIAG_DIRS): $(USR_PLAT_DIR)
51b564aca190d2a430104dded1983d3a1fff66e2mcwalter -$(INS.slink6)
51b564aca190d2a430104dded1983d3a1fff66e2mcwalter
51b564aca190d2a430104dded1983d3a1fff66e2mcwalter#
51b564aca190d2a430104dded1983d3a1fff66e2mcwalter# used for message files
51b564aca190d2a430104dded1983d3a1fff66e2mcwalter#
51b564aca190d2a430104dded1983d3a1fff66e2mcwalterPOFILE= libprtdiag_psr_monto.po
51b564aca190d2a430104dded1983d3a1fff66e2mcwalterPOFILES= monto.po
51b564aca190d2a430104dded1983d3a1fff66e2mcwalter
51b564aca190d2a430104dded1983d3a1fff66e2mcwalter
51b564aca190d2a430104dded1983d3a1fff66e2mcwalter_msg: $(MSGDOMAIN) $(POFILE)
51b564aca190d2a430104dded1983d3a1fff66e2mcwalter $(RM) $(MSGDOMAIN)/$(POFILE)
51b564aca190d2a430104dded1983d3a1fff66e2mcwalter $(CP) $(POFILE) $(MSGDOMAIN)
51b564aca190d2a430104dded1983d3a1fff66e2mcwalter
51b564aca190d2a430104dded1983d3a1fff66e2mcwalter$(POFILE): $(POFILES)
51b564aca190d2a430104dded1983d3a1fff66e2mcwalter $(RM) $@
51b564aca190d2a430104dded1983d3a1fff66e2mcwalter $(CAT) $(POFILES) > $@
51b564aca190d2a430104dded1983d3a1fff66e2mcwalter
51b564aca190d2a430104dded1983d3a1fff66e2mcwalter$(POFILES):
51b564aca190d2a430104dded1983d3a1fff66e2mcwalter $(RM) messages.po
51b564aca190d2a430104dded1983d3a1fff66e2mcwalter $(XGETTEXT) $(XGETFLAGS) `$(GREP) -l gettext common/monza.c`
51b564aca190d2a430104dded1983d3a1fff66e2mcwalter $(SED) -e '/^# msg/d' -e '/^domain/d' messages.po > $@
51b564aca190d2a430104dded1983d3a1fff66e2mcwalter $(RM) messages.po