Makefile revision 75ce41a57ff334bd8fe2cb9ed51eea835892f944
25cc5fbba63f84b47e389af749f55abbbde71c8cChristian Maeder# CDDL HEADER START
25cc5fbba63f84b47e389af749f55abbbde71c8cChristian Maeder# The contents of this file are subject to the terms of the
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder# Common Development and Distribution License (the "License").
43b4c41fbb07705c9df321221ab9cb9832460407Christian Maeder# You may not use this file except in compliance with the License.
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder# or http://www.opensolaris.org/os/licensing.
43b4c41fbb07705c9df321221ab9cb9832460407Christian Maeder# See the License for the specific language governing permissions
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder# and limitations under the License.
f2f9df2e17e70674f0bf426ed1763c973ee4cde0Christian Maeder# When distributing Covered Code, include this CDDL HEADER in each
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder# If applicable, add the following below this CDDL HEADER, with the
5191fa24c532d1f67e7a642e9aece65efb8a0975Christian Maeder# fields enclosed by brackets "[]" replaced with your own identifying
1aee4aaddde105264c1faf394d88e302c05094ffChristian Maeder# information: Portions Copyright [yyyy] [name of copyright owner]
a53841f6d6e86ac751c12a33dc8aadf53f59d977Klaus Luettich# CDDL HEADER END
a737caf82de97c1907027c03e4b4509eb492b4b8Christian Maeder# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
3e61f574717499939bd8e0ff538ea9e7b72d4e2dKlaus Luettich# Use is subject to license terms.
01e383014b555bbcf639c0ca60c5810b3eff83c0Christian Maeder# lib/libprtdiag_psr/sparc/snowbird/Makefile
df29370ae8d8b41587957f6bcdcb43a3f1927e47Christian Maeder# Need to make libctsmc library first.
1aee4aaddde105264c1faf394d88e302c05094ffChristian MaederLIBCTSMC = ../../../../../src/cmd/picl/plugins/sun4u/snowbird/lib/libctsmc
e7757995211bd395dc79d26fe017d99375f7d2a6Christian Maederctsmclib: $(LIBCTSMC)/libctsmc.c $(LIBCTSMC)/smclib.h
6a79849bed67264c396dddb3e9c184bdfc1a1bc9Christian MaederIFLAGS = -I$(USR_PLAT_DIR)/sun4u/include -I../../../libprtdiag/inc -I$(LIBBASE)/libdevinfo
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian MaederIFLAGS += -I$(SUN4U_INC_BASE) -I$(SB_INC_BASE) -I$(SRC)/cmd/picl/plugins/inc
3e61f574717499939bd8e0ff538ea9e7b72d4e2dKlaus LuettichLDLIBS += -L$(LIBBASE)/libdevinfo -ldevinfo -L$(LIBBASE)/libcfgadm \
4d56f2fa72e4aec20eb827c11ed49c8cbb7014bdChristian MaederDYNFLAGS += -R/usr/platform/SUNW,Netra-CP2300/lib
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian Maeder# SUNW,Netra-CP2300 platform can link to
356fa49fe3e6a8398f92d13e9f920d0f093697ecChristian Maeder# /usr/platform/SUNW,Netra-CP2300/lib/libprtdiag_psr.so
8d97ef4f234681b11bb5924bd4d03adef858d2d2Christian Maeder$(USR_PLAT_DIR)/$(PLATFORM)/lib/libprtdiag_psr.so.1 := FILEMODE= 0755
63f0e65a37b95621334db9ee4ba0cd9d826f5c0fChristian MaederPLATLIBS= $(PLATFORM:%=$(USR_PLAT_DIR)/%/lib/)
7cc09dd93962a2155c34d209d1d4cd7d7b838264Christian Maeder# install rules for SUNW,Netra-CP2300/lib/libprtdiag_psr.so
dcbd32289a7bdf1e6edd06c6ab0698c6a9dbf37aChristian Maeder cd $(UTSBASE)/sun4u/snowbird; $(MAKE) $(USR_PSM_LIB_DIR)
356fa49fe3e6a8398f92d13e9f920d0f093697ecChristian Maeder# New additions to generate msg file
c55a0f77be7e88d3620b419ec8961f4379a586e3Klaus Luettich $(XGETTEXT) $(XGETFLAGS) `$(GREP) -l gettext common/snowbird.c`
36f63902db2b3463faa9f59912ad106e2d5aaa24Klaus Luettich $(SED) -e '/^# msg/d' -e '/^domain/d' messages.po > $@