Makefile revision 48bc00d6814e04ff3edb32cafe7d1bc580baff68
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin#
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin# CDDL HEADER START
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin#
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin# The contents of this file are subject to the terms of the
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin# Common Development and Distribution License (the "License").
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin# You may not use this file except in compliance with the License.
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin#
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin# or http://www.opensolaris.org/os/licensing.
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin# See the License for the specific language governing permissions
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin# and limitations under the License.
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin#
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin# When distributing Covered Code, include this CDDL HEADER in each
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin# If applicable, add the following below this CDDL HEADER, with the
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin# fields enclosed by brackets "[]" replaced with your own identifying
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin# information: Portions Copyright [yyyy] [name of copyright owner]
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin#
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin# CDDL HEADER END
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin#
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin#
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin# Use is subject to license terms.
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin#
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin# lib/libprtdiag_psr/sparc/ontario/Makefile
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chinUTSBASE = ../../../../uts
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chinPLATFORM_OBJECTS= ontario.o erie.o pelton.o stpaul.o huron.o
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chininclude ../Makefile.com
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin#
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin# links in /usr/platform
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin#
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chinLINKED_PLATFORMS = SUNW,Sun-Blade-T6300
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chinLINKED_DIRS = $(LINKED_PLATFORMS:%=$(USR_PLAT_DIR)/%)
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chinLINKED_LIB_DIRS = $(LINKED_PLATFORMS:%=$(USR_PLAT_DIR)/%/lib)
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chinLINKED_PRTDIAG_DIRS = \
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin $(LINKED_PLATFORMS:%=$(USR_PLAT_DIR)/%/lib/libprtdiag_psr.so.1)
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin#
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin# Override the PSR_MACH variable to use sun4v libraries
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin#
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chinPSR_MACH=sun4v
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chinIFLAGS += -I ../../../libprtdiag/inc
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chinIFLAGS += -I$(SRC)/cmd/picl/plugins/inc
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chinLDLIBS += -lpicl
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chinLINTFLAGS += $(IFLAGS)
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chinPLATFORM=SUNW,Sun-Fire-T200
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin$(USR_PLAT_DIR)/$(PLATFORM)/lib/libprtdiag_psr.so.1 := FILEMODE= 0755
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin.KEEP_STATE:
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chinPLATLIBS= $(USR_PLAT_DIR)/$(PLATFORM)/lib
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chininstall: all $(USR_PSM_LIBS) $(LINKED_PRTDIAG_DIRS)
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin#
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin# install rules
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin#
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin$(USR_PSM_LIB_DIR)/%: % $(USR_PSM_LIB_DIR)
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin $(INS.file)
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin$(USR_PSM_LIB_DIR):
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin $(INS.dir)
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin$(LINKED_DIRS): $(USR_PLAT_DIR)
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin -$(INS.dir)
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin$(LINKED_LIB_DIRS): $(LINKED_DIRS)
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin -$(INS.dir)
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin$(LINKED_PRTDIAG_DIRS): $(USR_PLAT_DIR)
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin -$(INS.slink6)
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin#
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin# used for message files
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin#
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chinPOFILE= libprtdiag_psr_ontari.po
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chinPOFILES= ontari.po
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin_msg: $(MSGDOMAIN) $(POFILE)
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin $(RM) $(MSGDOMAIN)/$(POFILE)
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin $(CP) $(POFILE) $(MSGDOMAIN)
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin$(POFILE): $(POFILES)
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin $(RM) $@
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin $(CAT) $(POFILES) > $@
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin$(POFILES):
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin $(RM) messages.po
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin $(XGETTEXT) $(XGETFLAGS) `$(GREP) -l gettext common/ontario.c`
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin $(SED) -e '/^# msg/d' -e '/^domain/d' messages.po > $@
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin $(RM) messages.po
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin