03831d35f7499c87d51205817c93e9a8d42c4baestevel# CDDL HEADER START
03831d35f7499c87d51205817c93e9a8d42c4baestevel# The contents of this file are subject to the terms of the
03831d35f7499c87d51205817c93e9a8d42c4baestevel# Common Development and Distribution License (the "License").
03831d35f7499c87d51205817c93e9a8d42c4baestevel# You may not use this file except in compliance with the License.
03831d35f7499c87d51205817c93e9a8d42c4baestevel# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
03831d35f7499c87d51205817c93e9a8d42c4baestevel# See the License for the specific language governing permissions
03831d35f7499c87d51205817c93e9a8d42c4baestevel# and limitations under the License.
03831d35f7499c87d51205817c93e9a8d42c4baestevel# When distributing Covered Code, include this CDDL HEADER in each
03831d35f7499c87d51205817c93e9a8d42c4baestevel# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
03831d35f7499c87d51205817c93e9a8d42c4baestevel# If applicable, add the following below this CDDL HEADER, with the
03831d35f7499c87d51205817c93e9a8d42c4baestevel# fields enclosed by brackets "[]" replaced with your own identifying
03831d35f7499c87d51205817c93e9a8d42c4baestevel# information: Portions Copyright [yyyy] [name of copyright owner]
03831d35f7499c87d51205817c93e9a8d42c4baestevel# CDDL HEADER END
75ce41a57ff334bd8fe2cb9ed51eea835892f944Ali Bahrami# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
03831d35f7499c87d51205817c93e9a8d42c4baestevel# Use is subject to license terms.
03831d35f7499c87d51205817c93e9a8d42c4baestevelIFLAGS = -I$(USR_PLAT_DIR)/sun4u/include -I../../../libprtdiag/inc -I$(LIBBASE)/libdevinfo
03831d35f7499c87d51205817c93e9a8d42c4baestevelLDLIBS += -L$(LIBBASE)/libdevinfo -ldevinfo -L$(LIBBASE)/libcfgadm -lcfgadm \
03831d35f7499c87d51205817c93e9a8d42c4baestevelLINKED_LIB_DIRS = $(LINKED_PLATFORMS:%=$(USR_PLAT_DIR)/%/lib)
03831d35f7499c87d51205817c93e9a8d42c4baestevel $(LINKED_PLATFORMS:%=$(USR_PLAT_DIR)/%/lib/libprtdiag_psr.so.1)
03831d35f7499c87d51205817c93e9a8d42c4baestevel# SUNW,UltraSPARC-IIi-Netract and SUNW,UltraSPARC-IIe-NetraCT-40 platform
03831d35f7499c87d51205817c93e9a8d42c4baestevel# should install into SUNW,UltraSPARC-IIi-Netract.
03831d35f7499c87d51205817c93e9a8d42c4baestevel# SUNW,UltraSPARC-IIe-NetraCT-40 platform can link to
03831d35f7499c87d51205817c93e9a8d42c4baestevel# /usr/platform/SUNW,UltraSPARC-IIi-Netract/lib/libprtdiag_psr.so
75ce41a57ff334bd8fe2cb9ed51eea835892f944Ali Bahrami$(USR_PLAT_DIR)/$(PLATFORM)/lib/libprtdiag_psr.so.1 := FILEMODE= 0755
03831d35f7499c87d51205817c93e9a8d42c4baestevel# install rules for SUNW,UltraSPARC-IIi-Netract/lib/libprtdiag_psr.so
03831d35f7499c87d51205817c93e9a8d42c4baestevel cd $(UTSBASE)/sun4u/montecarlo; $(MAKE) $(USR_PSM_LIB_DIR)
03831d35f7499c87d51205817c93e9a8d42c4baestevel# New additions to generate msg file
03831d35f7499c87d51205817c93e9a8d42c4baestevel $(XGETTEXT) $(XGETFLAGS) `$(GREP) -l gettext common/montecarlo.c`
03831d35f7499c87d51205817c93e9a8d42c4baestevel $(SED) -e '/^# msg/d' -e '/^domain/d' messages.po > $@