Makefile revision 75ce41a57ff334bd8fe2cb9ed51eea835892f944
279N/A#
279N/A# CDDL HEADER START
279N/A#
279N/A# The contents of this file are subject to the terms of the
279N/A# Common Development and Distribution License (the "License").
279N/A# You may not use this file except in compliance with the License.
279N/A#
279N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
279N/A# or http://www.opensolaris.org/os/licensing.
279N/A# See the License for the specific language governing permissions
279N/A# and limitations under the License.
279N/A#
279N/A# When distributing Covered Code, include this CDDL HEADER in each
279N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
279N/A# If applicable, add the following below this CDDL HEADER, with the
279N/A# fields enclosed by brackets "[]" replaced with your own identifying
279N/A# information: Portions Copyright [yyyy] [name of copyright owner]
279N/A#
279N/A# CDDL HEADER END
279N/A#
279N/A#
5566N/A# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
279N/A# Use is subject to license terms.
279N/A#
279N/A# lib/libprtdiag_psr/sparc/ontario/Makefile
279N/A
279N/AUTSBASE = ../../../../uts
5566N/A
5566N/APLATFORM_OBJECTS= ontario.o erie.o pelton.o stpaul.o huron.o
5566N/A
279N/Ainclude ../Makefile.com
279N/A
5566N/A#
5566N/A# links in /usr/platform
5566N/A#
5566N/ALINKED_PLATFORMS = SUNW,Sun-Blade-T6300
279N/A
844N/ALINKED_DIRS = $(LINKED_PLATFORMS:%=$(USR_PLAT_DIR)/%)
5566N/ALINKED_LIB_DIRS = $(LINKED_PLATFORMS:%=$(USR_PLAT_DIR)/%/lib)
279N/ALINKED_PRTDIAG_DIRS = \
279N/A $(LINKED_PLATFORMS:%=$(USR_PLAT_DIR)/%/lib/libprtdiag_psr.so.1)
1273N/A
279N/A#
5566N/A# Override the PSR_MACH variable to use sun4v libraries
2985N/A#
3996N/APSR_MACH=sun4v
3996N/A
3996N/AIFLAGS += -I ../../../libprtdiag/inc
279N/AIFLAGS += -I$(SRC)/cmd/picl/plugins/inc
5566N/ALDLIBS += -lpicl
5566N/A
5566N/ALINTFLAGS += $(IFLAGS)
5566N/A
2635N/APLATFORM=SUNW,Sun-Fire-T200
2635N/A
279N/A$(USR_PLAT_DIR)/$(PLATFORM)/lib/libprtdiag_psr.so.1 := FILEMODE= 0755
1604N/A
279N/A.KEEP_STATE:
279N/A
2985N/APLATLIBS= $(USR_PLAT_DIR)/$(PLATFORM)/lib
279N/A
279N/Ainstall: all $(USR_PSM_LIBS) $(LINKED_PRTDIAG_DIRS)
279N/A
5566N/A#
3697N/A# install rules
3697N/A#
3697N/A
447N/A$(USR_PSM_LIB_DIR)/%: % $(USR_PSM_LIB_DIR)
447N/A $(INS.file)
447N/A
447N/A$(USR_PSM_LIB_DIR):
2635N/A $(INS.dir.root.sys)
447N/A
924N/A$(LINKED_DIRS): $(USR_PLAT_DIR)
279N/A -$(INS.dir.root.sys)
279N/A
279N/A$(LINKED_LIB_DIRS): $(LINKED_DIRS)
279N/A -$(INS.dir.root.sys)
447N/A
2985N/A$(LINKED_PRTDIAG_DIRS): $(USR_PLAT_DIR)
2985N/A -$(INS.slink6)
2985N/A
5566N/A#
5566N/A# used for message files
279N/A#
2635N/APOFILE= libprtdiag_psr_ontari.po
2635N/APOFILES= ontari.po
2635N/A
279N/A
279N/A_msg: $(MSGDOMAIN) $(POFILE)
2985N/A $(RM) $(MSGDOMAIN)/$(POFILE)
447N/A $(CP) $(POFILE) $(MSGDOMAIN)
279N/A
447N/A$(POFILE): $(POFILES)
279N/A $(RM) $@
2985N/A $(CAT) $(POFILES) > $@
2985N/A
2985N/A$(POFILES):
2985N/A $(RM) messages.po
2985N/A $(XGETTEXT) $(XGETFLAGS) `$(GREP) -l gettext common/ontario.c`
2985N/A $(SED) -e '/^# msg/d' -e '/^domain/d' messages.po > $@
2985N/A $(RM) messages.po
2985N/A