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