125cf1a30Sjl139090# 225cf1a30Sjl139090# CDDL HEADER START 325cf1a30Sjl139090# 425cf1a30Sjl139090# The contents of this file are subject to the terms of the 525cf1a30Sjl139090# Common Development and Distribution License (the "License"). 625cf1a30Sjl139090# You may not use this file except in compliance with the License. 725cf1a30Sjl139090# 825cf1a30Sjl139090# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 925cf1a30Sjl139090# or http://www.opensolaris.org/os/licensing. 1025cf1a30Sjl139090# See the License for the specific language governing permissions 1125cf1a30Sjl139090# and limitations under the License. 1225cf1a30Sjl139090# 1325cf1a30Sjl139090# When distributing Covered Code, include this CDDL HEADER in each 1425cf1a30Sjl139090# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 1525cf1a30Sjl139090# If applicable, add the following below this CDDL HEADER, with the 1625cf1a30Sjl139090# fields enclosed by brackets "[]" replaced with your own identifying 1725cf1a30Sjl139090# information: Portions Copyright [yyyy] [name of copyright owner] 1825cf1a30Sjl139090# 1925cf1a30Sjl139090# CDDL HEADER END 2025cf1a30Sjl139090# 2125cf1a30Sjl139090# 229d25110cSEdward Pilatowicz# Copyright 2009 Sun Microsystems, Inc. All rights reserved. 2325cf1a30Sjl139090# Use is subject to license terms. 2425cf1a30Sjl139090# 2525cf1a30Sjl139090# lib/libprtdiag_psr/sparc/opl/Makefile 2625cf1a30Sjl139090 2725cf1a30Sjl139090UTSBASE = ../../../../../src/uts 2825cf1a30Sjl139090 293d808a52SsubhanPLATFORM_OBJECTS= opl.o opl_picl.o 3025cf1a30Sjl139090 3125cf1a30Sjl139090include ../Makefile.com 3225cf1a30Sjl139090 3325cf1a30Sjl139090IFLAGS += -I$(USR_PLAT_DIR)/sun4u/include -I ../../../libprtdiag/inc 343d808a52SsubhanIFLAGS += -I$(SRC)/uts/common/ -I$(SRC)/cmd/picl/plugins/inc 359d25110cSEdward PilatowiczLDLIBS += -lpicl -lkstat 3625cf1a30Sjl139090 373d808a52SsubhanLINTFLAGS += $(IFLAGS) 3825cf1a30Sjl139090 3925cf1a30Sjl139090#IMPLEMENTED_PLATFORM = SUNW,OPL-Enterprise 4025cf1a30Sjl139090#PLATFORM=$(IMPLEMENTED_PLATFORM) 4125cf1a30Sjl139090PLATFORM = SUNW,SPARC-Enterprise 4225cf1a30Sjl139090 43*75ce41a5SAli Bahrami$(USR_PLAT_DIR)/$(PLATFORM)/lib/libprtdiag_psr.so.1 := FILEMODE= 0755 44*75ce41a5SAli Bahrami 4525cf1a30Sjl139090.KEEP_STATE: 4625cf1a30Sjl139090 4725cf1a30Sjl139090PLATLIBS= $(USR_PLAT_DIR)/$(PLATFORM)/lib/ 4825cf1a30Sjl139090 4925cf1a30Sjl139090install: all $(USR_PSM_LIBS) 5025cf1a30Sjl139090 5125cf1a30Sjl139090$(USR_PSM_LIB_DIR): 5225cf1a30Sjl139090 cd $(UTSBASE)/sun4u/opl; $(MAKE) $(USR_PSM_LIB_DIR) 5325cf1a30Sjl139090 5425cf1a30Sjl139090# 5525cf1a30Sjl139090# install rule 5625cf1a30Sjl139090# 5725cf1a30Sjl139090$(USR_PSM_LIB_DIR)/%: % $(USR_PSM_LIB_DIR) 5825cf1a30Sjl139090 $(INS.file) 5925cf1a30Sjl139090 6025cf1a30Sjl139090POFILE= libprtdiag_psr_opl.po 6125cf1a30Sjl139090POFILES= opl.po 6225cf1a30Sjl139090 6325cf1a30Sjl139090_msg: $(MSGDOMAIN) $(POFILE) 6425cf1a30Sjl139090 $(RM) $(MSGDOMAIN)/$(POFILE) 6525cf1a30Sjl139090 $(CP) $(POFILE) $(MSGDOMAIN) 6625cf1a30Sjl139090 6725cf1a30Sjl139090$(POFILE): $(POFILES) 6825cf1a30Sjl139090 $(RM) $@ 6925cf1a30Sjl139090 $(CAT) $(POFILES) > $@ 7025cf1a30Sjl139090 7125cf1a30Sjl139090$(POFILES): 7225cf1a30Sjl139090 $(RM) messages.po 7325cf1a30Sjl139090 $(XGETTEXT) $(XGETFLAGS) `$(GREP) -l gettext common/opl.c` 7425cf1a30Sjl139090 $(SED) -e '/^# msg/d' -e '/^domain/d' messages.po > $@ 7525cf1a30Sjl139090 $(RM) messages.po 76