Makefile revision 48bc00d6814e04ff3edb32cafe7d1bc580baff68
0f66aced2640d964aeb6db41210711ba0640d7f2Evan Hunt#
0f66aced2640d964aeb6db41210711ba0640d7f2Evan Hunt# CDDL HEADER START
0f66aced2640d964aeb6db41210711ba0640d7f2Evan Hunt#
0f66aced2640d964aeb6db41210711ba0640d7f2Evan Hunt# The contents of this file are subject to the terms of the
0f66aced2640d964aeb6db41210711ba0640d7f2Evan Hunt# Common Development and Distribution License (the "License").
0f66aced2640d964aeb6db41210711ba0640d7f2Evan Hunt# You may not use this file except in compliance with the License.
0f66aced2640d964aeb6db41210711ba0640d7f2Evan Hunt#
0f66aced2640d964aeb6db41210711ba0640d7f2Evan Hunt# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
0f66aced2640d964aeb6db41210711ba0640d7f2Evan Hunt# or http://www.opensolaris.org/os/licensing.
0f66aced2640d964aeb6db41210711ba0640d7f2Evan Hunt# See the License for the specific language governing permissions
0f66aced2640d964aeb6db41210711ba0640d7f2Evan Hunt# and limitations under the License.
0f66aced2640d964aeb6db41210711ba0640d7f2Evan Hunt#
0f66aced2640d964aeb6db41210711ba0640d7f2Evan Hunt# When distributing Covered Code, include this CDDL HEADER in each
0f66aced2640d964aeb6db41210711ba0640d7f2Evan Hunt# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
0f66aced2640d964aeb6db41210711ba0640d7f2Evan Hunt# If applicable, add the following below this CDDL HEADER, with the
0f66aced2640d964aeb6db41210711ba0640d7f2Evan Hunt# fields enclosed by brackets "[]" replaced with your own identifying
0f66aced2640d964aeb6db41210711ba0640d7f2Evan Hunt# information: Portions Copyright [yyyy] [name of copyright owner]
0f66aced2640d964aeb6db41210711ba0640d7f2Evan Hunt#
0f66aced2640d964aeb6db41210711ba0640d7f2Evan Hunt# CDDL HEADER END
0f66aced2640d964aeb6db41210711ba0640d7f2Evan Hunt#
0f66aced2640d964aeb6db41210711ba0640d7f2Evan Hunt#
0f66aced2640d964aeb6db41210711ba0640d7f2Evan Hunt# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
0f66aced2640d964aeb6db41210711ba0640d7f2Evan Hunt# Use is subject to license terms.
0f66aced2640d964aeb6db41210711ba0640d7f2Evan Hunt#
0f66aced2640d964aeb6db41210711ba0640d7f2Evan Hunt# lib/libprtdiag_psr/sparc/montoya/Makefile
0f66aced2640d964aeb6db41210711ba0640d7f2Evan Hunt
0f66aced2640d964aeb6db41210711ba0640d7f2Evan HuntUTSCLOSED = ../../../../uts
0f66aced2640d964aeb6db41210711ba0640d7f2Evan HuntUTSBASE = ../../../../../src/uts
0f66aced2640d964aeb6db41210711ba0640d7f2Evan Hunt
0f66aced2640d964aeb6db41210711ba0640d7f2Evan HuntPLATFORM_OBJECTS= montoya.o
0f66aced2640d964aeb6db41210711ba0640d7f2Evan Hunt
0f66aced2640d964aeb6db41210711ba0640d7f2Evan Huntinclude ../Makefile.com
0f66aced2640d964aeb6db41210711ba0640d7f2Evan Hunt
0f66aced2640d964aeb6db41210711ba0640d7f2Evan Hunt#
0f66aced2640d964aeb6db41210711ba0640d7f2Evan Hunt# Override the PSR_MACH variable to use sun4v libraries
0f66aced2640d964aeb6db41210711ba0640d7f2Evan Hunt#
0f66aced2640d964aeb6db41210711ba0640d7f2Evan HuntPSR_MACH=sun4v
0f66aced2640d964aeb6db41210711ba0640d7f2Evan Hunt
0f66aced2640d964aeb6db41210711ba0640d7f2Evan HuntIFLAGS += -I ../../../libprtdiag/inc
0f66aced2640d964aeb6db41210711ba0640d7f2Evan HuntIFLAGS += -I$(SRC)/cmd/picl/plugins/inc
0f66aced2640d964aeb6db41210711ba0640d7f2Evan HuntLDLIBS += -lpicl
0f66aced2640d964aeb6db41210711ba0640d7f2Evan Hunt
0f66aced2640d964aeb6db41210711ba0640d7f2Evan HuntLINTFLAGS += $(IFLAGS)
0f66aced2640d964aeb6db41210711ba0640d7f2Evan Hunt
0f66aced2640d964aeb6db41210711ba0640d7f2Evan HuntPLATFORM=SUNW,Netra-CP3060
0f66aced2640d964aeb6db41210711ba0640d7f2Evan Hunt
0f66aced2640d964aeb6db41210711ba0640d7f2Evan Hunt$(USR_PLAT_DIR)/$(PLATFORM)/lib/libprtdiag_psr.so.1 := FILEMODE= 0755
0f66aced2640d964aeb6db41210711ba0640d7f2Evan Hunt
0f66aced2640d964aeb6db41210711ba0640d7f2Evan Hunt.KEEP_STATE:
0f66aced2640d964aeb6db41210711ba0640d7f2Evan Hunt
0f66aced2640d964aeb6db41210711ba0640d7f2Evan HuntPLATLIBS= $(USR_PLAT_DIR)/$(PLATFORM)/lib
0f66aced2640d964aeb6db41210711ba0640d7f2Evan Hunt
0f66aced2640d964aeb6db41210711ba0640d7f2Evan Huntinstall: all $(USR_PSM_LIBS) $(LINKED_PRTDIAG_DIRS)
0f66aced2640d964aeb6db41210711ba0640d7f2Evan Hunt
0f66aced2640d964aeb6db41210711ba0640d7f2Evan Hunt#
0f66aced2640d964aeb6db41210711ba0640d7f2Evan Hunt# install rules
0f66aced2640d964aeb6db41210711ba0640d7f2Evan Hunt#
0f66aced2640d964aeb6db41210711ba0640d7f2Evan Hunt
0f66aced2640d964aeb6db41210711ba0640d7f2Evan Hunt$(USR_PSM_LIB_DIR)/%: % $(USR_PSM_LIB_DIR)
0f66aced2640d964aeb6db41210711ba0640d7f2Evan Hunt $(INS.file)
0f66aced2640d964aeb6db41210711ba0640d7f2Evan Hunt
0f66aced2640d964aeb6db41210711ba0640d7f2Evan Hunt$(USR_PSM_LIB_DIR):
0f66aced2640d964aeb6db41210711ba0640d7f2Evan Hunt $(INS.dir)
0f66aced2640d964aeb6db41210711ba0640d7f2Evan Hunt
0f66aced2640d964aeb6db41210711ba0640d7f2Evan Hunt$(LINKED_DIRS): $(USR_PLAT_DIR)
0f66aced2640d964aeb6db41210711ba0640d7f2Evan Hunt -$(INS.dir)
0f66aced2640d964aeb6db41210711ba0640d7f2Evan Hunt
0f66aced2640d964aeb6db41210711ba0640d7f2Evan Hunt$(LINKED_LIB_DIRS): $(LINKED_DIRS)
0f66aced2640d964aeb6db41210711ba0640d7f2Evan Hunt -$(INS.dir)
0f66aced2640d964aeb6db41210711ba0640d7f2Evan Hunt
0f66aced2640d964aeb6db41210711ba0640d7f2Evan Hunt$(LINKED_PRTDIAG_DIRS): $(USR_PLAT_DIR)
0f66aced2640d964aeb6db41210711ba0640d7f2Evan Hunt -$(INS.slink6)
0f66aced2640d964aeb6db41210711ba0640d7f2Evan Hunt
0f66aced2640d964aeb6db41210711ba0640d7f2Evan Hunt#
0f66aced2640d964aeb6db41210711ba0640d7f2Evan Hunt# used for message files
0f66aced2640d964aeb6db41210711ba0640d7f2Evan Hunt#
0f66aced2640d964aeb6db41210711ba0640d7f2Evan HuntPOFILE= libprtdiag_psr_monto.po
0f66aced2640d964aeb6db41210711ba0640d7f2Evan HuntPOFILES= monto.po
0f66aced2640d964aeb6db41210711ba0640d7f2Evan Hunt
0f66aced2640d964aeb6db41210711ba0640d7f2Evan Hunt
0f66aced2640d964aeb6db41210711ba0640d7f2Evan Hunt_msg: $(MSGDOMAIN) $(POFILE)
0f66aced2640d964aeb6db41210711ba0640d7f2Evan Hunt $(RM) $(MSGDOMAIN)/$(POFILE)
0f66aced2640d964aeb6db41210711ba0640d7f2Evan Hunt $(CP) $(POFILE) $(MSGDOMAIN)
$(POFILE): $(POFILES)
$(RM) $@
$(CAT) $(POFILES) > $@
$(POFILES):
$(RM) messages.po
$(XGETTEXT) $(XGETFLAGS) `$(GREP) -l gettext common/montoya.c`
$(SED) -e '/^# msg/d' -e '/^domain/d' messages.po > $@
$(RM) messages.po