xref: /illumos-gate/usr/src/lib/libprtdiag_psr/sparc/ontario/Makefile (revision 1a220b56b93ff1dc80855691548503117af4cc10)
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 2006 Sun Microsystems, Inc.  All rights reserved.
23# Use is subject to license terms.
24#
25#ident	"%Z%%M%	%I%	%E% SMI"
26#
27# lib/libprtdiag_psr/sparc/ontario/Makefile
28
29UTSBASE   = ../../../../uts
30
31PLATFORM_OBJECTS= ontario.o erie.o pelton.o
32
33include ../Makefile.com
34
35#
36# Override the PSR_MACH variable to use sun4v libraries
37#
38PSR_MACH=sun4v
39
40IFLAGS +=  -I ../../../libprtdiag/inc
41IFLAGS += -I$(SRC)/cmd/picl/plugins/inc
42LDLIBS += -lpicl
43
44LINTFLAGS += $(IFLAGS)
45
46PLATFORM=SUNW,Sun-Fire-T200
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.root.sys)
63
64$(LINKED_DIRS):	$(USR_PLAT_DIR)
65	-$(INS.dir.root.sys)
66
67$(LINKED_LIB_DIRS):	$(LINKED_DIRS)
68	-$(INS.dir.root.sys)
69
70$(LINKED_PRTDIAG_DIRS):	$(USR_PLAT_DIR)
71	-$(INS.slink6)
72
73#
74# used for message files
75#
76POFILE=		libprtdiag_psr_ontari.po
77POFILES=	ontari.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/ontario.c`
91	$(SED) -e '/^# msg/d' -e '/^domain/d' messages.po > $@
92	$(RM) messages.po
93