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