03831d35f7499c87d51205817c93e9a8d42c4baestevel#
03831d35f7499c87d51205817c93e9a8d42c4baestevel# CDDL HEADER START
03831d35f7499c87d51205817c93e9a8d42c4baestevel#
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#
03831d35f7499c87d51205817c93e9a8d42c4baestevel# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
03831d35f7499c87d51205817c93e9a8d42c4baestevel# or http://www.opensolaris.org/os/licensing.
03831d35f7499c87d51205817c93e9a8d42c4baestevel# See the License for the specific language governing permissions
03831d35f7499c87d51205817c93e9a8d42c4baestevel# and limitations under the License.
03831d35f7499c87d51205817c93e9a8d42c4baestevel#
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#
03831d35f7499c87d51205817c93e9a8d42c4baestevel# CDDL HEADER END
03831d35f7499c87d51205817c93e9a8d42c4baestevel#
03831d35f7499c87d51205817c93e9a8d42c4baestevel#
75ce41a57ff334bd8fe2cb9ed51eea835892f944Ali Bahrami# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
03831d35f7499c87d51205817c93e9a8d42c4baestevel# Use is subject to license terms.
03831d35f7499c87d51205817c93e9a8d42c4baestevel#
03831d35f7499c87d51205817c93e9a8d42c4baestevel# lib/libprtdiag_psr/sparc/littleneck/Makefile
03831d35f7499c87d51205817c93e9a8d42c4baestevel
03831d35f7499c87d51205817c93e9a8d42c4baestevelUTSBASE = ../../../../uts
03831d35f7499c87d51205817c93e9a8d42c4baestevel
03831d35f7499c87d51205817c93e9a8d42c4baestevelPLATFORM_OBJECTS= littleneck.o
03831d35f7499c87d51205817c93e9a8d42c4baestevel
03831d35f7499c87d51205817c93e9a8d42c4baestevelinclude ../Makefile.com
03831d35f7499c87d51205817c93e9a8d42c4baestevel
03831d35f7499c87d51205817c93e9a8d42c4baestevelIFLAGS += -I$(USR_PLAT_DIR)/sun4u/include -I ../../../libprtdiag/inc
03831d35f7499c87d51205817c93e9a8d42c4baestevelIFLAGS += -I $(SRC)/cmd/picl/plugins/sun4u/psvc/psvcobj
03831d35f7499c87d51205817c93e9a8d42c4baestevelIFLAGS += -I$(UTSBASE)/sun4u
03831d35f7499c87d51205817c93e9a8d42c4baestevel
03831d35f7499c87d51205817c93e9a8d42c4baestevelLDLIBS += -lpicl
03831d35f7499c87d51205817c93e9a8d42c4baestevel
03831d35f7499c87d51205817c93e9a8d42c4baestevelLINTFLAGS += $(IFLAGS)
03831d35f7499c87d51205817c93e9a8d42c4baestevel
03831d35f7499c87d51205817c93e9a8d42c4baestevel#
03831d35f7499c87d51205817c93e9a8d42c4baestevel# Workgroup Server platform library should install into
03831d35f7499c87d51205817c93e9a8d42c4baestevel# SUNW,Ultra-4. All other desktop platforms can
03831d35f7499c87d51205817c93e9a8d42c4baestevel# link to /usr/platform/SUNW,Ultra-4/lib/libprtdiag_psr.so
03831d35f7499c87d51205817c93e9a8d42c4baestevel#
03831d35f7499c87d51205817c93e9a8d42c4baestevelPLATFORM=SUNW,Sun-Fire-280R
03831d35f7499c87d51205817c93e9a8d42c4baestevel
75ce41a57ff334bd8fe2cb9ed51eea835892f944Ali Bahrami$(USR_PLAT_DIR)/$(PLATFORM)/lib/libprtdiag_psr.so.1 := FILEMODE= 0755
75ce41a57ff334bd8fe2cb9ed51eea835892f944Ali Bahrami
03831d35f7499c87d51205817c93e9a8d42c4baestevel.KEEP_STATE:
03831d35f7499c87d51205817c93e9a8d42c4baestevel
03831d35f7499c87d51205817c93e9a8d42c4baestevelPLATLIBS= $(USR_PLAT_DIR)/$(PLATFORM)/lib/
03831d35f7499c87d51205817c93e9a8d42c4baestevel
03831d35f7499c87d51205817c93e9a8d42c4baestevelinstall: all $(USR_PSM_LIBS)
03831d35f7499c87d51205817c93e9a8d42c4baestevel
03831d35f7499c87d51205817c93e9a8d42c4baestevel$(USR_PSM_LIB_DIR):
03831d35f7499c87d51205817c93e9a8d42c4baestevel cd $(UTSBASE)/sun4u/littleneck; pwd; $(MAKE) $(USR_PSM_LIB_DIR)
03831d35f7499c87d51205817c93e9a8d42c4baestevel
03831d35f7499c87d51205817c93e9a8d42c4baestevel#
03831d35f7499c87d51205817c93e9a8d42c4baestevel# install rule
03831d35f7499c87d51205817c93e9a8d42c4baestevel#
03831d35f7499c87d51205817c93e9a8d42c4baestevel$(USR_PSM_LIB_DIR)/%: % $(USR_PSM_LIB_DIR)
03831d35f7499c87d51205817c93e9a8d42c4baestevel $(INS.file)
03831d35f7499c87d51205817c93e9a8d42c4baestevel
03831d35f7499c87d51205817c93e9a8d42c4baestevel#
03831d35f7499c87d51205817c93e9a8d42c4baestevel# used for message files
03831d35f7499c87d51205817c93e9a8d42c4baestevel#
03831d35f7499c87d51205817c93e9a8d42c4baestevelPOFILE= libprtdiag_psr_littleneck.po
03831d35f7499c87d51205817c93e9a8d42c4baestevelPOFILES= littleneck.po
03831d35f7499c87d51205817c93e9a8d42c4baestevel
03831d35f7499c87d51205817c93e9a8d42c4baestevel_msg: $(MSGDOMAIN) $(POFILE)
03831d35f7499c87d51205817c93e9a8d42c4baestevel $(RM) $(MSGDOMAIN)/$(POFILE)
03831d35f7499c87d51205817c93e9a8d42c4baestevel $(CP) $(POFILE) $(MSGDOMAIN)
03831d35f7499c87d51205817c93e9a8d42c4baestevel
03831d35f7499c87d51205817c93e9a8d42c4baestevel$(POFILE): $(POFILES)
03831d35f7499c87d51205817c93e9a8d42c4baestevel $(RM) $@
03831d35f7499c87d51205817c93e9a8d42c4baestevel $(CAT) $(POFILES) > $@
03831d35f7499c87d51205817c93e9a8d42c4baestevel
03831d35f7499c87d51205817c93e9a8d42c4baestevel$(POFILES):
03831d35f7499c87d51205817c93e9a8d42c4baestevel $(RM) messages.po
03831d35f7499c87d51205817c93e9a8d42c4baestevel $(XGETTEXT) $(XGETFLAGS) `$(GREP) -l gettext common/*.c`
03831d35f7499c87d51205817c93e9a8d42c4baestevel $(SED) -e '/^# msg/d' -e '/^domain/d' messages.po > $@
03831d35f7499c87d51205817c93e9a8d42c4baestevel $(RM) messages.po
03831d35f7499c87d51205817c93e9a8d42c4baestevel