Makefile revision 75ce41a57ff334bd8fe2cb9ed51eea835892f944
085bc29163eb87e345acaae02789e4c233d51f3bvboxsync#
c7769c4b7e84511fcc4a12a85a04dd7fbfd82b46vboxsync# CDDL HEADER START
085bc29163eb87e345acaae02789e4c233d51f3bvboxsync#
085bc29163eb87e345acaae02789e4c233d51f3bvboxsync# The contents of this file are subject to the terms of the
085bc29163eb87e345acaae02789e4c233d51f3bvboxsync# Common Development and Distribution License (the "License").
c7769c4b7e84511fcc4a12a85a04dd7fbfd82b46vboxsync# You may not use this file except in compliance with the License.
085bc29163eb87e345acaae02789e4c233d51f3bvboxsync#
085bc29163eb87e345acaae02789e4c233d51f3bvboxsync# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
085bc29163eb87e345acaae02789e4c233d51f3bvboxsync# or http://www.opensolaris.org/os/licensing.
085bc29163eb87e345acaae02789e4c233d51f3bvboxsync# See the License for the specific language governing permissions
085bc29163eb87e345acaae02789e4c233d51f3bvboxsync# and limitations under the License.
085bc29163eb87e345acaae02789e4c233d51f3bvboxsync#
085bc29163eb87e345acaae02789e4c233d51f3bvboxsync# When distributing Covered Code, include this CDDL HEADER in each
085bc29163eb87e345acaae02789e4c233d51f3bvboxsync# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
085bc29163eb87e345acaae02789e4c233d51f3bvboxsync# If applicable, add the following below this CDDL HEADER, with the
085bc29163eb87e345acaae02789e4c233d51f3bvboxsync# fields enclosed by brackets "[]" replaced with your own identifying
c7769c4b7e84511fcc4a12a85a04dd7fbfd82b46vboxsync# information: Portions Copyright [yyyy] [name of copyright owner]
c7769c4b7e84511fcc4a12a85a04dd7fbfd82b46vboxsync#
085bc29163eb87e345acaae02789e4c233d51f3bvboxsync# CDDL HEADER END
8bf8c6b1914c9e7e60b1547888400668f1774497vboxsync#
085bc29163eb87e345acaae02789e4c233d51f3bvboxsync#
0de1998ac52682bb5322df476e45f237265ea9b7vboxsync# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
9f72be0517ae135bdd3e6ee140d3321b40aeb6e7vboxsync# Use is subject to license terms.
18b80092844ac2b9171ddf150c54eefda051d771vboxsync#
085bc29163eb87e345acaae02789e4c233d51f3bvboxsync# lib/libprtdiag_psr/sparc/ontario/Makefile
8bf8c6b1914c9e7e60b1547888400668f1774497vboxsync
d05e0aca826e72aa0cc78aced33dc8fc036c4483vboxsyncUTSBASE = ../../../../uts
085bc29163eb87e345acaae02789e4c233d51f3bvboxsync
8bf8c6b1914c9e7e60b1547888400668f1774497vboxsyncPLATFORM_OBJECTS= ontario.o erie.o pelton.o stpaul.o huron.o
8bf8c6b1914c9e7e60b1547888400668f1774497vboxsync
8bf8c6b1914c9e7e60b1547888400668f1774497vboxsyncinclude ../Makefile.com
8bf8c6b1914c9e7e60b1547888400668f1774497vboxsync
83fd17a3a00dc7bf6a36e23bbd2393dfc953da06vboxsync#
0ae258e7d0d2520036514d896a9eea58bf285f03vboxsync# links in /usr/platform
40b38a663dc0fd3003f7cdb0a69a01959d79b1f0vboxsync#
0019a5195e700f7380e64717fcb10e1ce0fcfd91vboxsyncLINKED_PLATFORMS = SUNW,Sun-Blade-T6300
9161d9a8318db73b2848c1feaef3880980474e64vboxsync
8bf8c6b1914c9e7e60b1547888400668f1774497vboxsyncLINKED_DIRS = $(LINKED_PLATFORMS:%=$(USR_PLAT_DIR)/%)
8bf8c6b1914c9e7e60b1547888400668f1774497vboxsyncLINKED_LIB_DIRS = $(LINKED_PLATFORMS:%=$(USR_PLAT_DIR)/%/lib)
8bf8c6b1914c9e7e60b1547888400668f1774497vboxsyncLINKED_PRTDIAG_DIRS = \
8bf8c6b1914c9e7e60b1547888400668f1774497vboxsync $(LINKED_PLATFORMS:%=$(USR_PLAT_DIR)/%/lib/libprtdiag_psr.so.1)
cd2563833557c14e1739f8e10c4922061708caf1vboxsync
cd2563833557c14e1739f8e10c4922061708caf1vboxsync#
cd2563833557c14e1739f8e10c4922061708caf1vboxsync# Override the PSR_MACH variable to use sun4v libraries
04e845ee9ef813501cd2570a4188cb852d170408vboxsync#
085bc29163eb87e345acaae02789e4c233d51f3bvboxsyncPSR_MACH=sun4v
085bc29163eb87e345acaae02789e4c233d51f3bvboxsync
085bc29163eb87e345acaae02789e4c233d51f3bvboxsyncIFLAGS += -I ../../../libprtdiag/inc
085bc29163eb87e345acaae02789e4c233d51f3bvboxsyncIFLAGS += -I$(SRC)/cmd/picl/plugins/inc
085bc29163eb87e345acaae02789e4c233d51f3bvboxsyncLDLIBS += -lpicl
085bc29163eb87e345acaae02789e4c233d51f3bvboxsync
085bc29163eb87e345acaae02789e4c233d51f3bvboxsyncLINTFLAGS += $(IFLAGS)
085bc29163eb87e345acaae02789e4c233d51f3bvboxsync
085bc29163eb87e345acaae02789e4c233d51f3bvboxsyncPLATFORM=SUNW,Sun-Fire-T200
22500d40977b2e17949f8598de4f3c6d59ab405avboxsync
22500d40977b2e17949f8598de4f3c6d59ab405avboxsync$(USR_PLAT_DIR)/$(PLATFORM)/lib/libprtdiag_psr.so.1 := FILEMODE= 0755
22500d40977b2e17949f8598de4f3c6d59ab405avboxsync
085bc29163eb87e345acaae02789e4c233d51f3bvboxsync.KEEP_STATE:
22500d40977b2e17949f8598de4f3c6d59ab405avboxsync
3933885bc0c2c93436d858a14564c6179ec72872vboxsyncPLATLIBS= $(USR_PLAT_DIR)/$(PLATFORM)/lib
3933885bc0c2c93436d858a14564c6179ec72872vboxsync
085bc29163eb87e345acaae02789e4c233d51f3bvboxsyncinstall: all $(USR_PSM_LIBS) $(LINKED_PRTDIAG_DIRS)
085bc29163eb87e345acaae02789e4c233d51f3bvboxsync
085bc29163eb87e345acaae02789e4c233d51f3bvboxsync#
085bc29163eb87e345acaae02789e4c233d51f3bvboxsync# install rules
085bc29163eb87e345acaae02789e4c233d51f3bvboxsync#
085bc29163eb87e345acaae02789e4c233d51f3bvboxsync
085bc29163eb87e345acaae02789e4c233d51f3bvboxsync$(USR_PSM_LIB_DIR)/%: % $(USR_PSM_LIB_DIR)
085bc29163eb87e345acaae02789e4c233d51f3bvboxsync $(INS.file)
085bc29163eb87e345acaae02789e4c233d51f3bvboxsync
085bc29163eb87e345acaae02789e4c233d51f3bvboxsync$(USR_PSM_LIB_DIR):
085bc29163eb87e345acaae02789e4c233d51f3bvboxsync $(INS.dir.root.sys)
085bc29163eb87e345acaae02789e4c233d51f3bvboxsync
085bc29163eb87e345acaae02789e4c233d51f3bvboxsync$(LINKED_DIRS): $(USR_PLAT_DIR)
085bc29163eb87e345acaae02789e4c233d51f3bvboxsync -$(INS.dir.root.sys)
085bc29163eb87e345acaae02789e4c233d51f3bvboxsync
7e77c8f54449be6f28ccbf32f7e651554d9f4060vboxsync$(LINKED_LIB_DIRS): $(LINKED_DIRS)
7e77c8f54449be6f28ccbf32f7e651554d9f4060vboxsync -$(INS.dir.root.sys)
085bc29163eb87e345acaae02789e4c233d51f3bvboxsync
085bc29163eb87e345acaae02789e4c233d51f3bvboxsync$(LINKED_PRTDIAG_DIRS): $(USR_PLAT_DIR)
3ccee5c41caa6fc3f805f12d4bf92174aca739e3vboxsync -$(INS.slink6)
d9d070cfd2c99624fe6974842b7ad4a30d5b71e7vboxsync
17b7eff404131866d50161b72ce9cc739536e26evboxsync#
8a85d6fc8b2f19b9a9b64b2bcbd4f56033edb1b9vboxsync# used for message files
17b7eff404131866d50161b72ce9cc739536e26evboxsync#
3ccee5c41caa6fc3f805f12d4bf92174aca739e3vboxsyncPOFILE= libprtdiag_psr_ontari.po
d9d070cfd2c99624fe6974842b7ad4a30d5b71e7vboxsyncPOFILES= ontari.po
0de1998ac52682bb5322df476e45f237265ea9b7vboxsync
085bc29163eb87e345acaae02789e4c233d51f3bvboxsync
74e03e3bff53d9ff9b266e0a8af97f59d54f4e23vboxsync_msg: $(MSGDOMAIN) $(POFILE)
0de1998ac52682bb5322df476e45f237265ea9b7vboxsync $(RM) $(MSGDOMAIN)/$(POFILE)
9161d9a8318db73b2848c1feaef3880980474e64vboxsync $(CP) $(POFILE) $(MSGDOMAIN)
2bb5e094693f5a82438792bb7946cee00db72f66vboxsync
83fd17a3a00dc7bf6a36e23bbd2393dfc953da06vboxsync$(POFILE): $(POFILES)
04e845ee9ef813501cd2570a4188cb852d170408vboxsync $(RM) $@
cd2563833557c14e1739f8e10c4922061708caf1vboxsync $(CAT) $(POFILES) > $@
cd2563833557c14e1739f8e10c4922061708caf1vboxsync
cd2563833557c14e1739f8e10c4922061708caf1vboxsync$(POFILES):
cd2563833557c14e1739f8e10c4922061708caf1vboxsync $(RM) messages.po
cd2563833557c14e1739f8e10c4922061708caf1vboxsync $(XGETTEXT) $(XGETFLAGS) `$(GREP) -l gettext common/ontario.c`
a57db78fdd56b8e90281836fad06e1e2558fcc84vboxsync $(SED) -e '/^# msg/d' -e '/^domain/d' messages.po > $@
a57db78fdd56b8e90281836fad06e1e2558fcc84vboxsync $(RM) messages.po
cd2563833557c14e1739f8e10c4922061708caf1vboxsync