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