103831d35Sstevel#
203831d35Sstevel# CDDL HEADER START
303831d35Sstevel#
403831d35Sstevel# The contents of this file are subject to the terms of the
503831d35Sstevel# Common Development and Distribution License, Version 1.0 only
603831d35Sstevel# (the "License").  You may not use this file except in compliance
703831d35Sstevel# with the License.
803831d35Sstevel#
903831d35Sstevel# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
1003831d35Sstevel# or http://www.opensolaris.org/os/licensing.
1103831d35Sstevel# See the License for the specific language governing permissions
1203831d35Sstevel# and limitations under the License.
1303831d35Sstevel#
1403831d35Sstevel# When distributing Covered Code, include this CDDL HEADER in each
1503831d35Sstevel# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
1603831d35Sstevel# If applicable, add the following below this CDDL HEADER, with the
1703831d35Sstevel# fields enclosed by brackets "[]" replaced with your own identifying
1803831d35Sstevel# information: Portions Copyright [yyyy] [name of copyright owner]
1903831d35Sstevel#
2003831d35Sstevel# CDDL HEADER END
2103831d35Sstevel#
2203831d35Sstevel#
2303831d35Sstevel# Copyright 2005 Sun Microsystems, Inc.  All rights reserved.
2403831d35Sstevel# Use is subject to license terms.
2503831d35Sstevel#
2603831d35Sstevel# ident	"%Z%%M%	%I%	%E% SMI"
2703831d35Sstevel#
2803831d35Sstevel# lib/libprtdiag/sparc/sun4v/Makefile
2903831d35Sstevel#
3003831d35Sstevel# Platform specific Makefile for libprtdiag.
3103831d35Sstevel#
3203831d35Sstevel# PLATFORM is the target for the binary installation.
3303831d35Sstevel#
3403831d35Sstevel
3503831d35SstevelPLATFORM	= sun4v
3603831d35Sstevel
3703831d35SstevelOBJECTS		= io.o cpu.o memory.o kstat.o prom.o \
3803831d35Sstevel			pdevinfo_funcs.o display_funcs.o \
3903831d35Sstevel			pdevinfo_sun4v.o display_sun4v.o
4003831d35Sstevel
4103831d35Sstevelinclude		../../Makefile.com
4203831d35Sstevel
4303831d35SstevelSRCS		= $(OBJECTS:%.o=../../common/%.c)
44*aa52b40eSfwLDLIBS		+= -lpicl -lm
4503831d35Sstevel
4603831d35Sstevel#
4703831d35Sstevel# used for creating message catalogue files
4803831d35Sstevel#
4903831d35SstevelTEXT_DOMAIN=	SUNW_OST_OSLIB
5003831d35SstevelSED=		sed
5103831d35SstevelGREP=		grep
5203831d35SstevelCP=		cp
5303831d35Sstevel
5403831d35Sstevel.KEEP_STATE:
5503831d35Sstevel
5603831d35Sstevelall:		$(LIBS)
5703831d35Sstevel
5803831d35Sstevelinstall:	all $(USR_PSM_LIBS)
5903831d35Sstevel
6003831d35Sstevellint:		lintcheck
6103831d35Sstevel
6203831d35Sstevelinclude		$(SRC)/lib/Makefile.targ
6303831d35Sstevel
6403831d35SstevelPOFILE=		libprtdiag_sun4v.po
6503831d35SstevelPOFILES=	generic.po
6603831d35Sstevel
6703831d35Sstevel_msg:	$(MSGDOMAIN) $(POFILE)
6803831d35Sstevel	$(RM) $(MSGDOMAIN)/$(POFILE)
6903831d35Sstevel	$(CP) $(POFILE) $(MSGDOMAIN)
7003831d35Sstevel
7103831d35Sstevel$(POFILE):	$(POFILES)
7203831d35Sstevel	$(RM) $@
7303831d35Sstevel	$(CAT) $(POFILES) > $@
7403831d35Sstevel
7503831d35Sstevel$(POFILES):
7603831d35Sstevel	$(RM) messages.po
7703831d35Sstevel	$(XGETTEXT) $(XGETFLAGS) `$(GREP) -l gettext ../../common/*.c`
7803831d35Sstevel	$(SED) -e '/^# msg/d' -e '/^domain/d' messages.po > $@
7903831d35Sstevel	$(RM) messages.po
80