xref: /illumos-gate/usr/src/lib/libprtdiag_psr/sparc/montoya/Makefile (revision 56ffda179176d14e2fb160bdc85f6da601f1eac7)
1fd845fc0Sks34972#
2fd845fc0Sks34972# CDDL HEADER START
3fd845fc0Sks34972#
4fd845fc0Sks34972# The contents of this file are subject to the terms of the
5fd845fc0Sks34972# Common Development and Distribution License (the "License").
6fd845fc0Sks34972# You may not use this file except in compliance with the License.
7fd845fc0Sks34972#
8fd845fc0Sks34972# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9fd845fc0Sks34972# or http://www.opensolaris.org/os/licensing.
10fd845fc0Sks34972# See the License for the specific language governing permissions
11fd845fc0Sks34972# and limitations under the License.
12fd845fc0Sks34972#
13fd845fc0Sks34972# When distributing Covered Code, include this CDDL HEADER in each
14fd845fc0Sks34972# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15fd845fc0Sks34972# If applicable, add the following below this CDDL HEADER, with the
16fd845fc0Sks34972# fields enclosed by brackets "[]" replaced with your own identifying
17fd845fc0Sks34972# information: Portions Copyright [yyyy] [name of copyright owner]
18fd845fc0Sks34972#
19fd845fc0Sks34972# CDDL HEADER END
20fd845fc0Sks34972#
21fd845fc0Sks34972#
2275ce41a5SAli Bahrami# Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
23fd845fc0Sks34972# Use is subject to license terms.
24fd845fc0Sks34972#
25fd845fc0Sks34972# lib/libprtdiag_psr/sparc/montoya/Makefile
26fd845fc0Sks34972
27fd845fc0Sks34972UTSBASE   = ../../../../../src/uts
28fd845fc0Sks34972
29fd845fc0Sks34972PLATFORM_OBJECTS= montoya.o
30fd845fc0Sks34972
31fd845fc0Sks34972include ../Makefile.com
32fd845fc0Sks34972
33fd845fc0Sks34972#
34fd845fc0Sks34972# Override the PSR_MACH variable to use sun4v libraries
35fd845fc0Sks34972#
36fd845fc0Sks34972PSR_MACH=sun4v
37fd845fc0Sks34972
38fd845fc0Sks34972IFLAGS +=  -I ../../../libprtdiag/inc
39fd845fc0Sks34972IFLAGS += -I$(SRC)/cmd/picl/plugins/inc
40fd845fc0Sks34972LDLIBS += -lpicl
41fd845fc0Sks34972
42fd845fc0Sks34972
43fd845fc0Sks34972PLATFORM=SUNW,Netra-CP3060
44fd845fc0Sks34972
4575ce41a5SAli Bahrami$(USR_PLAT_DIR)/$(PLATFORM)/lib/libprtdiag_psr.so.1 := FILEMODE= 0755
4675ce41a5SAli Bahrami
47fd845fc0Sks34972.KEEP_STATE:
48fd845fc0Sks34972
49fd845fc0Sks34972PLATLIBS= $(USR_PLAT_DIR)/$(PLATFORM)/lib
50fd845fc0Sks34972
51fd845fc0Sks34972install:	all $(USR_PSM_LIBS) $(LINKED_PRTDIAG_DIRS)
52fd845fc0Sks34972
53fd845fc0Sks34972#
54fd845fc0Sks34972# install rules
55fd845fc0Sks34972#
56fd845fc0Sks34972
57fd845fc0Sks34972$(USR_PSM_LIB_DIR)/%: % $(USR_PSM_LIB_DIR)
58fd845fc0Sks34972	$(INS.file)
59fd845fc0Sks34972
60fd845fc0Sks34972$(USR_PSM_LIB_DIR):
61*48bc00d6Sjmcp	$(INS.dir)
62fd845fc0Sks34972
63fd845fc0Sks34972$(LINKED_DIRS):	$(USR_PLAT_DIR)
64*48bc00d6Sjmcp	-$(INS.dir)
65fd845fc0Sks34972
66fd845fc0Sks34972$(LINKED_LIB_DIRS):	$(LINKED_DIRS)
67*48bc00d6Sjmcp	-$(INS.dir)
68fd845fc0Sks34972
69fd845fc0Sks34972$(LINKED_PRTDIAG_DIRS):	$(USR_PLAT_DIR)
70fd845fc0Sks34972	-$(INS.slink6)
71fd845fc0Sks34972
72fd845fc0Sks34972#
73fd845fc0Sks34972# used for message files
74fd845fc0Sks34972#
75fd845fc0Sks34972POFILE=		libprtdiag_psr_monto.po
76fd845fc0Sks34972POFILES=	monto.po
77fd845fc0Sks34972
78fd845fc0Sks34972
79fd845fc0Sks34972_msg:	$(MSGDOMAIN) $(POFILE)
80fd845fc0Sks34972	$(RM) $(MSGDOMAIN)/$(POFILE)
81fd845fc0Sks34972	$(CP) $(POFILE) $(MSGDOMAIN)
82fd845fc0Sks34972
83fd845fc0Sks34972$(POFILE):	$(POFILES)
84fd845fc0Sks34972	$(RM) $@
85fd845fc0Sks34972	$(CAT) $(POFILES) > $@
86fd845fc0Sks34972
87fd845fc0Sks34972$(POFILES):
88fd845fc0Sks34972	$(RM) messages.po
89fd845fc0Sks34972	$(XGETTEXT) $(XGETFLAGS) `$(GREP) -l gettext common/montoya.c`
90fd845fc0Sks34972	$(SED) -e '/^# msg/d' -e '/^domain/d' messages.po > $@
91fd845fc0Sks34972	$(RM) messages.po
92