103831d35Sstevel# 203831d35Sstevel# CDDL HEADER START 303831d35Sstevel# 403831d35Sstevel# The contents of this file are subject to the terms of the 503831d35Sstevel# Common Development and Distribution License (the "License"). 603831d35Sstevel# You may not use this file except in compliance with the License. 703831d35Sstevel# 803831d35Sstevel# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 903831d35Sstevel# or http://www.opensolaris.org/os/licensing. 1003831d35Sstevel# See the License for the specific language governing permissions 1103831d35Sstevel# and limitations under the License. 1203831d35Sstevel# 1303831d35Sstevel# When distributing Covered Code, include this CDDL HEADER in each 1403831d35Sstevel# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 1503831d35Sstevel# If applicable, add the following below this CDDL HEADER, with the 1603831d35Sstevel# fields enclosed by brackets "[]" replaced with your own identifying 1703831d35Sstevel# information: Portions Copyright [yyyy] [name of copyright owner] 1803831d35Sstevel# 1903831d35Sstevel# CDDL HEADER END 2003831d35Sstevel# 2103831d35Sstevel# 22*e2e882f7SGary Mills# Copyright 2016 Gary Mills 2375ce41a5SAli Bahrami# Copyright 2009 Sun Microsystems, Inc. All rights reserved. 2403831d35Sstevel# Use is subject to license terms. 2503831d35Sstevel# 2603831d35Sstevel# lib/libprtdiag_psr/sparc/ontario/Makefile 2703831d35Sstevel 2803831d35SstevelUTSBASE = ../../../../uts 2903831d35Sstevel 300c46f359SanovickPLATFORM_OBJECTS= ontario.o erie.o pelton.o stpaul.o huron.o 3103831d35Sstevel 3203831d35Sstevelinclude ../Makefile.com 3303831d35Sstevel 3403831d35Sstevel# 359ef7884dSanovick# links in /usr/platform 369ef7884dSanovick# 379ef7884dSanovickLINKED_PLATFORMS = SUNW,Sun-Blade-T6300 389ef7884dSanovick 399ef7884dSanovickLINKED_DIRS = $(LINKED_PLATFORMS:%=$(USR_PLAT_DIR)/%) 409ef7884dSanovickLINKED_LIB_DIRS = $(LINKED_PLATFORMS:%=$(USR_PLAT_DIR)/%/lib) 419ef7884dSanovickLINKED_PRTDIAG_DIRS = \ 429ef7884dSanovick $(LINKED_PLATFORMS:%=$(USR_PLAT_DIR)/%/lib/libprtdiag_psr.so.1) 439ef7884dSanovick 449ef7884dSanovick# 4503831d35Sstevel# Override the PSR_MACH variable to use sun4v libraries 4603831d35Sstevel# 4703831d35SstevelPSR_MACH=sun4v 4803831d35Sstevel 4903831d35SstevelIFLAGS += -I ../../../libprtdiag/inc 5003831d35SstevelIFLAGS += -I$(SRC)/cmd/picl/plugins/inc 5103831d35SstevelLDLIBS += -lpicl 5203831d35Sstevel 5303831d35SstevelLINTFLAGS += $(IFLAGS) 5403831d35Sstevel 5503831d35SstevelPLATFORM=SUNW,Sun-Fire-T200 5603831d35Sstevel 5775ce41a5SAli Bahrami$(USR_PLAT_DIR)/$(PLATFORM)/lib/libprtdiag_psr.so.1 := FILEMODE= 0755 5875ce41a5SAli Bahrami 5903831d35Sstevel.KEEP_STATE: 6003831d35Sstevel 6103831d35SstevelPLATLIBS= $(USR_PLAT_DIR)/$(PLATFORM)/lib 6203831d35Sstevel 6303831d35Sstevelinstall: all $(USR_PSM_LIBS) $(LINKED_PRTDIAG_DIRS) 6403831d35Sstevel 6503831d35Sstevel# 6603831d35Sstevel# install rules 6703831d35Sstevel# 6803831d35Sstevel 6903831d35Sstevel$(USR_PSM_LIB_DIR)/%: % $(USR_PSM_LIB_DIR) 7003831d35Sstevel $(INS.file) 7103831d35Sstevel 7203831d35Sstevel$(USR_PSM_LIB_DIR): 7348bc00d6Sjmcp $(INS.dir) 7403831d35Sstevel 7503831d35Sstevel$(LINKED_DIRS): $(USR_PLAT_DIR) 7648bc00d6Sjmcp -$(INS.dir) 7703831d35Sstevel 7803831d35Sstevel$(LINKED_LIB_DIRS): $(LINKED_DIRS) 7948bc00d6Sjmcp -$(INS.dir) 8003831d35Sstevel 81*e2e882f7SGary Mills$(LINKED_PRTDIAG_DIRS): $(LINKED_LIB_DIRS) 8203831d35Sstevel -$(INS.slink6) 8303831d35Sstevel 8403831d35Sstevel# 8503831d35Sstevel# used for message files 8603831d35Sstevel# 8703831d35SstevelPOFILE= libprtdiag_psr_ontari.po 8803831d35SstevelPOFILES= ontari.po 8903831d35Sstevel 9003831d35Sstevel 9103831d35Sstevel_msg: $(MSGDOMAIN) $(POFILE) 9203831d35Sstevel $(RM) $(MSGDOMAIN)/$(POFILE) 9303831d35Sstevel $(CP) $(POFILE) $(MSGDOMAIN) 9403831d35Sstevel 9503831d35Sstevel$(POFILE): $(POFILES) 9603831d35Sstevel $(RM) $@ 9703831d35Sstevel $(CAT) $(POFILES) > $@ 9803831d35Sstevel 9903831d35Sstevel$(POFILES): 10003831d35Sstevel $(RM) messages.po 10103831d35Sstevel $(XGETTEXT) $(XGETFLAGS) `$(GREP) -l gettext common/ontario.c` 10203831d35Sstevel $(SED) -e '/^# msg/d' -e '/^domain/d' messages.po > $@ 10303831d35Sstevel $(RM) messages.po 104