xref: /illumos-gate/usr/src/lib/libprtdiag/sparc/sun4v/Makefile (revision d321a33cdd896e6b211d113a33698dd76e89b861)
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, Version 1.0 only
6# (the "License").  You may not use this file except in compliance
7# with the License.
8#
9# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
10# or http://www.opensolaris.org/os/licensing.
11# See the License for the specific language governing permissions
12# and limitations under the License.
13#
14# When distributing Covered Code, include this CDDL HEADER in each
15# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
16# If applicable, add the following below this CDDL HEADER, with the
17# fields enclosed by brackets "[]" replaced with your own identifying
18# information: Portions Copyright [yyyy] [name of copyright owner]
19#
20# CDDL HEADER END
21#
22#
23# Copyright 2005 Sun Microsystems, Inc.  All rights reserved.
24# Use is subject to license terms.
25#
26# ident	"%Z%%M%	%I%	%E% SMI"
27#
28# lib/libprtdiag/sparc/sun4v/Makefile
29#
30# Platform specific Makefile for libprtdiag.
31#
32# PLATFORM is the target for the binary installation.
33#
34
35PLATFORM	= sun4v
36
37OBJECTS		= io.o cpu.o memory.o kstat.o prom.o \
38			pdevinfo_funcs.o display_funcs.o \
39			pdevinfo_sun4v.o display_sun4v.o
40
41include		../../Makefile.com
42
43SRCS		= $(OBJECTS:%.o=../../common/%.c)
44LDLIBS		+= -lpicl -lm
45
46#
47# used for creating message catalogue files
48#
49TEXT_DOMAIN=	SUNW_OST_OSLIB
50SED=		sed
51GREP=		grep
52CP=		cp
53
54.KEEP_STATE:
55
56all:		$(LIBS)
57
58install:	all $(USR_PSM_LIBS)
59
60lint:		lintcheck
61
62include		$(SRC)/lib/Makefile.targ
63
64POFILE=		libprtdiag_sun4v.po
65POFILES=	generic.po
66
67_msg:	$(MSGDOMAIN) $(POFILE)
68	$(RM) $(MSGDOMAIN)/$(POFILE)
69	$(CP) $(POFILE) $(MSGDOMAIN)
70
71$(POFILE):	$(POFILES)
72	$(RM) $@
73	$(CAT) $(POFILES) > $@
74
75$(POFILES):
76	$(RM) messages.po
77	$(XGETTEXT) $(XGETFLAGS) `$(GREP) -l gettext ../../common/*.c`
78	$(SED) -e '/^# msg/d' -e '/^domain/d' messages.po > $@
79	$(RM) messages.po
80