xref: /titanic_41/usr/src/lib/libprtdiag_psr/sparc/monza/Makefile (revision d24234c24aeaca4ca56ee3ac2794507968f274c4)
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/monza/Makefile
26
27UTSBASE   = ../../../../../src/uts
28
29PLATFORM_OBJECTS= monza.o
30
31include ../Makefile.com
32
33#
34# Override the PSR_MACH variable to use sun4v libraries
35#
36PSR_MACH=sun4v
37
38IFLAGS +=  -I ../../../libprtdiag/inc
39IFLAGS += -I$(SRC)/cmd/picl/plugins/inc
40LDLIBS += -lpicl
41
42LINTFLAGS += $(IFLAGS)
43
44PLATFORM=SUNW,Netra-CP3260
45
46$(USR_PLAT_DIR)/$(PLATFORM)/lib/libprtdiag_psr.so.1 := FILEMODE= 0755
47
48.KEEP_STATE:
49
50PLATLIBS= $(USR_PLAT_DIR)/$(PLATFORM)/lib
51
52install:	all $(USR_PSM_LIBS) $(LINKED_PRTDIAG_DIRS)
53
54#
55# install rules
56#
57
58$(USR_PSM_LIB_DIR)/%: % $(USR_PSM_LIB_DIR)
59	$(INS.file)
60
61$(USR_PSM_LIB_DIR):
62	$(INS.dir)
63
64$(LINKED_DIRS):	$(USR_PLAT_DIR)
65	-$(INS.dir)
66
67$(LINKED_LIB_DIRS):	$(LINKED_DIRS)
68	-$(INS.dir)
69
70$(LINKED_PRTDIAG_DIRS):	$(USR_PLAT_DIR)
71	-$(INS.slink6)
72
73#
74# used for message files
75#
76POFILE=		libprtdiag_psr_monto.po
77POFILES=	monto.po
78
79
80_msg:	$(MSGDOMAIN) $(POFILE)
81	$(RM) $(MSGDOMAIN)/$(POFILE)
82	$(CP) $(POFILE) $(MSGDOMAIN)
83
84$(POFILE):	$(POFILES)
85	$(RM) $@
86	$(CAT) $(POFILES) > $@
87
88$(POFILES):
89	$(RM) messages.po
90	$(XGETTEXT) $(XGETFLAGS) `$(GREP) -l gettext common/monza.c`
91	$(SED) -e '/^# msg/d' -e '/^domain/d' messages.po > $@
92	$(RM) messages.po
93