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
24fe0b3bf671e123467ce1df0b67cadd3614c8e4jmcp# 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
03831d35f7499c87d51205817c93e9a8d42c4baestevel# desktop platform library should install into
03831d35f7499c87d51205817c93e9a8d42c4baestevel# SUNW,Ultra-2. All other desktop platforms can
03831d35f7499c87d51205817c93e9a8d42c4baestevel# link to /usr/platform/SUNW,Ultra-2/lib/libprtdiag_psr.so
03831d35f7499c87d51205817c93e9a8d42c4baestevel# For all other sun4u platforms NOT delivered by ON (ie. delivered
03831d35f7499c87d51205817c93e9a8d42c4baestevel# by SME or external hardware vendors) we add a default library in
03831d35f7499c87d51205817c93e9a8d42c4baestevel# /usr/platform/sun4u/lib so that prtdiag will default to using
03831d35f7499c87d51205817c93e9a8d42c4baestevel# the desktop library for any of these platforms. (this will be a
03831d35f7499c87d51205817c93e9a8d42c4baestevel# link to ../../SUNW,Ultra-2/lib
03831d35f7499c87d51205817c93e9a8d42c4baestevelUSR_DEF_PSM_LIB_DIR=$(USR_PLAT_DIR)/$(DEF_PLATFORM)/lib
75ce41a57ff334bd8fe2cb9ed51eea835892f944Ali Bahrami$(USR_PLAT_DIR)/$(PLATFORM)/lib/libprtdiag_psr.so.1 := FILEMODE= 0755
03831d35f7499c87d51205817c93e9a8d42c4baestevel# install rules for SUNW,Ultra-2/lib/libprtdiag_psr.so.1
03831d35f7499c87d51205817c93e9a8d42c4baestevel# install rules for sun4u/lib/libprtdiag_psr.so.1
03831d35f7499c87d51205817c93e9a8d42c4baestevel $(RM) -r $@; \
24fe0b3bf671e123467ce1df0b67cadd3614c8e4jmcp $(SYMLINK) ../../$(PLATFORM)/lib/libprtdiag_psr.so.1 $@
03831d35f7499c87d51205817c93e9a8d42c4baestevel# Rules for making message files
03831d35f7499c87d51205817c93e9a8d42c4baestevel $(XGETTEXT) $(XGETFLAGS) `$(GREP) -l gettext ../common/desktop.c`
03831d35f7499c87d51205817c93e9a8d42c4baestevel $(SED) -e '/^# msg/d' -e '/^domain/d' messages.po > $@