Makefile revision 75ce41a57ff334bd8fe2cb9ed51eea835892f944
351b62535d4c4f89883bfdba025999dd32490266Evan Hunt#
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews# CDDL HEADER START
351b62535d4c4f89883bfdba025999dd32490266Evan Hunt#
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews# The contents of this file are subject to the terms of the
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews# Common Development and Distribution License (the "License").
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews# You may not use this file except in compliance with the License.
351b62535d4c4f89883bfdba025999dd32490266Evan Hunt#
2eeb74d1cf5355dd98f6d507a10086e16bb08c4bTinderbox User# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt# or http://www.opensolaris.org/os/licensing.
83a28ca274521e15086fc39febde507bcc4e145eMark Andrews# See the License for the specific language governing permissions
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt# and limitations under the License.
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt#
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt# When distributing Covered Code, include this CDDL HEADER in each
351b62535d4c4f89883bfdba025999dd32490266Evan Hunt# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt# If applicable, add the following below this CDDL HEADER, with the
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt# fields enclosed by brackets "[]" replaced with your own identifying
351b62535d4c4f89883bfdba025999dd32490266Evan Hunt# information: Portions Copyright [yyyy] [name of copyright owner]
351b62535d4c4f89883bfdba025999dd32490266Evan Hunt#
351b62535d4c4f89883bfdba025999dd32490266Evan Hunt# CDDL HEADER END
351b62535d4c4f89883bfdba025999dd32490266Evan Hunt#
351b62535d4c4f89883bfdba025999dd32490266Evan Hunt#
351b62535d4c4f89883bfdba025999dd32490266Evan Hunt# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
351b62535d4c4f89883bfdba025999dd32490266Evan Hunt# Use is subject to license terms.
351b62535d4c4f89883bfdba025999dd32490266Evan Hunt#
351b62535d4c4f89883bfdba025999dd32490266Evan Hunt# lib/libprtdiag_psr/sparc/tazmo/Makefile
351b62535d4c4f89883bfdba025999dd32490266Evan Hunt
351b62535d4c4f89883bfdba025999dd32490266Evan HuntUTSBASE = ../../../../uts
351b62535d4c4f89883bfdba025999dd32490266Evan Hunt
351b62535d4c4f89883bfdba025999dd32490266Evan HuntPLATFORM_OBJECTS= tazmo.o
351b62535d4c4f89883bfdba025999dd32490266Evan Hunt
351b62535d4c4f89883bfdba025999dd32490266Evan Huntinclude ../Makefile.com
351b62535d4c4f89883bfdba025999dd32490266Evan Hunt
938440694b33cd752e9e4b71a526368b4811c177Tinderbox UserIFLAGS += -I$(USR_PLAT_DIR)/sun4u/include -I ../../../libprtdiag/inc
19c7b1a0293498a3e36692c59646ed6e15ffc8d0Tinderbox UserLINTFLAGS += $(IFLAGS)
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark AndrewsLDLIBS += -lkstat
351b62535d4c4f89883bfdba025999dd32490266Evan Hunt
351b62535d4c4f89883bfdba025999dd32490266Evan Hunt#
351b62535d4c4f89883bfdba025999dd32490266Evan Hunt# Workgroup Server platform library should install into
351b62535d4c4f89883bfdba025999dd32490266Evan Hunt# SUNW,Ultra-4. All other desktop platforms can
351b62535d4c4f89883bfdba025999dd32490266Evan Hunt# link to /usr/platform/SUNW,Ultra-4/lib/libprtdiag_psr.so
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt#
46bc64f4b1a0e84ab0397943453fe83a17baf2c4Evan HuntPLATFORM=SUNW,Ultra-4
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt$(USR_PLAT_DIR)/$(PLATFORM)/lib/libprtdiag_psr.so.1 := FILEMODE= 0755
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt.KEEP_STATE:
46bc64f4b1a0e84ab0397943453fe83a17baf2c4Evan Hunt
14a656f94b1fd0ababd84a772228dfa52276ba15Evan HuntPLATLIBS= $(USR_PLAT_DIR)/$(PLATFORM)/lib/
351b62535d4c4f89883bfdba025999dd32490266Evan Hunt
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Huntinstall: all $(USR_PSM_LIBS)
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt$(USR_PSM_LIB_DIR):
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt cd $(UTSBASE)/sun4u/tazmo; $(MAKE) $(USR_PSM_LIB_DIR)
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt#
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt# install rule
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt#
b67b58ebe73b98f2907d7f3ea02e69a7fa8ba35eFrancis Dupont$(USR_PSM_LIB_DIR)/%: % $(USR_PSM_LIB_DIR)
351b62535d4c4f89883bfdba025999dd32490266Evan Hunt $(INS.file)
351b62535d4c4f89883bfdba025999dd32490266Evan Hunt
351b62535d4c4f89883bfdba025999dd32490266Evan HuntPOFILE= libprtdiag_psr_tazmo.po
14a656f94b1fd0ababd84a772228dfa52276ba15Evan HuntPOFILES= tazmo.po
30eec077db2bdcb6f2a0dc388a3cdde2ede75ec1Mark Andrews
46bc64f4b1a0e84ab0397943453fe83a17baf2c4Evan Hunt_msg: $(MSGDOMAIN) $(POFILE)
46bc64f4b1a0e84ab0397943453fe83a17baf2c4Evan Hunt $(RM) $(MSGDOMAIN)/$(POFILE)
d51e441520ac756af17e4b5589e31e8eac60d1e2Evan Hunt $(CP) $(POFILE) $(MSGDOMAIN)
46bc64f4b1a0e84ab0397943453fe83a17baf2c4Evan Hunt
46bc64f4b1a0e84ab0397943453fe83a17baf2c4Evan Hunt$(POFILE): $(POFILES)
46bc64f4b1a0e84ab0397943453fe83a17baf2c4Evan Hunt $(RM) $@
46bc64f4b1a0e84ab0397943453fe83a17baf2c4Evan Hunt $(CAT) $(POFILES) > $@
46bc64f4b1a0e84ab0397943453fe83a17baf2c4Evan Hunt
46bc64f4b1a0e84ab0397943453fe83a17baf2c4Evan Hunt$(POFILES):
46bc64f4b1a0e84ab0397943453fe83a17baf2c4Evan Hunt $(RM) messages.po
46bc64f4b1a0e84ab0397943453fe83a17baf2c4Evan Hunt $(XGETTEXT) $(XGETFLAGS) `$(GREP) -l gettext common/tazmo.c`
46bc64f4b1a0e84ab0397943453fe83a17baf2c4Evan Hunt $(SED) -e '/^# msg/d' -e '/^domain/d' messages.po > $@
46bc64f4b1a0e84ab0397943453fe83a17baf2c4Evan Hunt $(RM) messages.po
351b62535d4c4f89883bfdba025999dd32490266Evan Hunt