1fd845fc0Sks34972# 2fd845fc0Sks34972# CDDL HEADER START 3fd845fc0Sks34972# 4fd845fc0Sks34972# The contents of this file are subject to the terms of the 5fd845fc0Sks34972# Common Development and Distribution License (the "License"). 6fd845fc0Sks34972# You may not use this file except in compliance with the License. 7fd845fc0Sks34972# 8fd845fc0Sks34972# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 9fd845fc0Sks34972# or http://www.opensolaris.org/os/licensing. 10fd845fc0Sks34972# See the License for the specific language governing permissions 11fd845fc0Sks34972# and limitations under the License. 12fd845fc0Sks34972# 13fd845fc0Sks34972# When distributing Covered Code, include this CDDL HEADER in each 14fd845fc0Sks34972# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 15fd845fc0Sks34972# If applicable, add the following below this CDDL HEADER, with the 16fd845fc0Sks34972# fields enclosed by brackets "[]" replaced with your own identifying 17fd845fc0Sks34972# information: Portions Copyright [yyyy] [name of copyright owner] 18fd845fc0Sks34972# 19fd845fc0Sks34972# CDDL HEADER END 20fd845fc0Sks34972# 21fd845fc0Sks34972# 2275ce41a5SAli Bahrami# Copyright 2009 Sun Microsystems, Inc. All rights reserved. 23fd845fc0Sks34972# Use is subject to license terms. 24fd845fc0Sks34972# 25fd845fc0Sks34972# lib/libprtdiag_psr/sparc/montoya/Makefile 26fd845fc0Sks34972 27fd845fc0Sks34972UTSCLOSED = ../../../../uts 28fd845fc0Sks34972UTSBASE = ../../../../../src/uts 29fd845fc0Sks34972 30fd845fc0Sks34972PLATFORM_OBJECTS= montoya.o 31fd845fc0Sks34972 32fd845fc0Sks34972include ../Makefile.com 33fd845fc0Sks34972 34fd845fc0Sks34972# 35fd845fc0Sks34972# Override the PSR_MACH variable to use sun4v libraries 36fd845fc0Sks34972# 37fd845fc0Sks34972PSR_MACH=sun4v 38fd845fc0Sks34972 39fd845fc0Sks34972IFLAGS += -I ../../../libprtdiag/inc 40fd845fc0Sks34972IFLAGS += -I$(SRC)/cmd/picl/plugins/inc 41fd845fc0Sks34972LDLIBS += -lpicl 42fd845fc0Sks34972 43fd845fc0Sks34972LINTFLAGS += $(IFLAGS) 44fd845fc0Sks34972 45fd845fc0Sks34972PLATFORM=SUNW,Netra-CP3060 46fd845fc0Sks34972 4775ce41a5SAli Bahrami$(USR_PLAT_DIR)/$(PLATFORM)/lib/libprtdiag_psr.so.1 := FILEMODE= 0755 4875ce41a5SAli Bahrami 49fd845fc0Sks34972.KEEP_STATE: 50fd845fc0Sks34972 51fd845fc0Sks34972PLATLIBS= $(USR_PLAT_DIR)/$(PLATFORM)/lib 52fd845fc0Sks34972 53fd845fc0Sks34972install: all $(USR_PSM_LIBS) $(LINKED_PRTDIAG_DIRS) 54fd845fc0Sks34972 55fd845fc0Sks34972# 56fd845fc0Sks34972# install rules 57fd845fc0Sks34972# 58fd845fc0Sks34972 59fd845fc0Sks34972$(USR_PSM_LIB_DIR)/%: % $(USR_PSM_LIB_DIR) 60fd845fc0Sks34972 $(INS.file) 61fd845fc0Sks34972 62fd845fc0Sks34972$(USR_PSM_LIB_DIR): 63*48bc00d6Sjmcp $(INS.dir) 64fd845fc0Sks34972 65fd845fc0Sks34972$(LINKED_DIRS): $(USR_PLAT_DIR) 66*48bc00d6Sjmcp -$(INS.dir) 67fd845fc0Sks34972 68fd845fc0Sks34972$(LINKED_LIB_DIRS): $(LINKED_DIRS) 69*48bc00d6Sjmcp -$(INS.dir) 70fd845fc0Sks34972 71fd845fc0Sks34972$(LINKED_PRTDIAG_DIRS): $(USR_PLAT_DIR) 72fd845fc0Sks34972 -$(INS.slink6) 73fd845fc0Sks34972 74fd845fc0Sks34972# 75fd845fc0Sks34972# used for message files 76fd845fc0Sks34972# 77fd845fc0Sks34972POFILE= libprtdiag_psr_monto.po 78fd845fc0Sks34972POFILES= monto.po 79fd845fc0Sks34972 80fd845fc0Sks34972 81fd845fc0Sks34972_msg: $(MSGDOMAIN) $(POFILE) 82fd845fc0Sks34972 $(RM) $(MSGDOMAIN)/$(POFILE) 83fd845fc0Sks34972 $(CP) $(POFILE) $(MSGDOMAIN) 84fd845fc0Sks34972 85fd845fc0Sks34972$(POFILE): $(POFILES) 86fd845fc0Sks34972 $(RM) $@ 87fd845fc0Sks34972 $(CAT) $(POFILES) > $@ 88fd845fc0Sks34972 89fd845fc0Sks34972$(POFILES): 90fd845fc0Sks34972 $(RM) messages.po 91fd845fc0Sks34972 $(XGETTEXT) $(XGETFLAGS) `$(GREP) -l gettext common/montoya.c` 92fd845fc0Sks34972 $(SED) -e '/^# msg/d' -e '/^domain/d' messages.po > $@ 93fd845fc0Sks34972 $(RM) messages.po 94