xref: /titanic_41/usr/src/lib/libprtdiag_psr/sparc/monza/Makefile (revision 48bc00d6814e04ff3edb32cafe7d1bc580baff68)
151b564acSmcwalter#
251b564acSmcwalter# CDDL HEADER START
351b564acSmcwalter#
451b564acSmcwalter# The contents of this file are subject to the terms of the
551b564acSmcwalter# Common Development and Distribution License (the "License").
651b564acSmcwalter# You may not use this file except in compliance with the License.
751b564acSmcwalter#
851b564acSmcwalter# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
951b564acSmcwalter# or http://www.opensolaris.org/os/licensing.
1051b564acSmcwalter# See the License for the specific language governing permissions
1151b564acSmcwalter# and limitations under the License.
1251b564acSmcwalter#
1351b564acSmcwalter# When distributing Covered Code, include this CDDL HEADER in each
1451b564acSmcwalter# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
1551b564acSmcwalter# If applicable, add the following below this CDDL HEADER, with the
1651b564acSmcwalter# fields enclosed by brackets "[]" replaced with your own identifying
1751b564acSmcwalter# information: Portions Copyright [yyyy] [name of copyright owner]
1851b564acSmcwalter#
1951b564acSmcwalter# CDDL HEADER END
2051b564acSmcwalter#
2151b564acSmcwalter#
2275ce41a5SAli Bahrami# Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
2351b564acSmcwalter# Use is subject to license terms.
2451b564acSmcwalter#
2551b564acSmcwalter# lib/libprtdiag_psr/sparc/monza/Makefile
2651b564acSmcwalter
2751b564acSmcwalterUTSBASE   = ../../../../../src/uts
2851b564acSmcwalter
2951b564acSmcwalterPLATFORM_OBJECTS= monza.o
3051b564acSmcwalter
3151b564acSmcwalterinclude ../Makefile.com
3251b564acSmcwalter
3351b564acSmcwalter#
3451b564acSmcwalter# Override the PSR_MACH variable to use sun4v libraries
3551b564acSmcwalter#
3651b564acSmcwalterPSR_MACH=sun4v
3751b564acSmcwalter
3851b564acSmcwalterIFLAGS +=  -I ../../../libprtdiag/inc
3951b564acSmcwalterIFLAGS += -I$(SRC)/cmd/picl/plugins/inc
4051b564acSmcwalterLDLIBS += -lpicl
4151b564acSmcwalter
4251b564acSmcwalterLINTFLAGS += $(IFLAGS)
4351b564acSmcwalter
4451b564acSmcwalterPLATFORM=SUNW,Netra-CP3260
4551b564acSmcwalter
4675ce41a5SAli Bahrami$(USR_PLAT_DIR)/$(PLATFORM)/lib/libprtdiag_psr.so.1 := FILEMODE= 0755
4775ce41a5SAli Bahrami
4851b564acSmcwalter.KEEP_STATE:
4951b564acSmcwalter
5051b564acSmcwalterPLATLIBS= $(USR_PLAT_DIR)/$(PLATFORM)/lib
5151b564acSmcwalter
5251b564acSmcwalterinstall:	all $(USR_PSM_LIBS) $(LINKED_PRTDIAG_DIRS)
5351b564acSmcwalter
5451b564acSmcwalter#
5551b564acSmcwalter# install rules
5651b564acSmcwalter#
5751b564acSmcwalter
5851b564acSmcwalter$(USR_PSM_LIB_DIR)/%: % $(USR_PSM_LIB_DIR)
5951b564acSmcwalter	$(INS.file)
6051b564acSmcwalter
6151b564acSmcwalter$(USR_PSM_LIB_DIR):
62*48bc00d6Sjmcp	$(INS.dir)
6351b564acSmcwalter
6451b564acSmcwalter$(LINKED_DIRS):	$(USR_PLAT_DIR)
65*48bc00d6Sjmcp	-$(INS.dir)
6651b564acSmcwalter
6751b564acSmcwalter$(LINKED_LIB_DIRS):	$(LINKED_DIRS)
68*48bc00d6Sjmcp	-$(INS.dir)
6951b564acSmcwalter
7051b564acSmcwalter$(LINKED_PRTDIAG_DIRS):	$(USR_PLAT_DIR)
7151b564acSmcwalter	-$(INS.slink6)
7251b564acSmcwalter
7351b564acSmcwalter#
7451b564acSmcwalter# used for message files
7551b564acSmcwalter#
7651b564acSmcwalterPOFILE=		libprtdiag_psr_monto.po
7751b564acSmcwalterPOFILES=	monto.po
7851b564acSmcwalter
7951b564acSmcwalter
8051b564acSmcwalter_msg:	$(MSGDOMAIN) $(POFILE)
8151b564acSmcwalter	$(RM) $(MSGDOMAIN)/$(POFILE)
8251b564acSmcwalter	$(CP) $(POFILE) $(MSGDOMAIN)
8351b564acSmcwalter
8451b564acSmcwalter$(POFILE):	$(POFILES)
8551b564acSmcwalter	$(RM) $@
8651b564acSmcwalter	$(CAT) $(POFILES) > $@
8751b564acSmcwalter
8851b564acSmcwalter$(POFILES):
8951b564acSmcwalter	$(RM) messages.po
9051b564acSmcwalter	$(XGETTEXT) $(XGETFLAGS) `$(GREP) -l gettext common/monza.c`
9151b564acSmcwalter	$(SED) -e '/^# msg/d' -e '/^domain/d' messages.po > $@
9251b564acSmcwalter	$(RM) messages.po
93