xref: /titanic_50/usr/src/lib/libprtdiag/sparc/sun4u/Makefile (revision 29e83d4b25fd82feb8e0e0fbe89f7e2a8438533d)
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/sun4u/Makefile
29#
30# Platform specific Makefile for libprtdiag.
31#
32# PLATFORM is the target for the binary installation.
33#
34
35PLATFORM	= sun4u
36
37OBJECTS		= io.o cpu.o memory.o kstat.o prom.o \
38			pdevinfo_funcs.o display_funcs.o \
39			pdevinfo_sun4u.o display_sun4u.o \
40			libdevinfo_sun4u.o
41
42include		../../Makefile.com
43
44SRCS		= $(OBJECTS:%.o=../../common/%.c)
45LDLIBS		+= -ldevinfo
46
47#
48# used for creating message catalogue files
49#
50TEXT_DOMAIN=	SUNW_OST_OSLIB
51SED=		sed
52GREP=		grep
53CP=		cp
54
55.KEEP_STATE:
56
57all:		$(LIBS)
58
59install:	all $(USR_PSM_LIBS) $(USR_PSMLINT)
60
61lint:		lintcheck
62
63include		$(SRC)/lib/Makefile.targ
64
65POFILE=		libprtdiag_sun4u.po
66POFILES=	generic.po
67
68_msg:	$(MSGDOMAIN) $(POFILE)
69	$(RM) $(MSGDOMAIN)/$(POFILE)
70	$(CP) $(POFILE) $(MSGDOMAIN)
71
72$(POFILE):	$(POFILES)
73	$(RM) $@
74	$(CAT) $(POFILES) > $@
75
76$(POFILES):
77	$(RM) messages.po
78	$(XGETTEXT) $(XGETFLAGS) `$(GREP) -l gettext ../../common/*.c`
79	$(SED) -e '/^# msg/d' -e '/^domain/d' messages.po > $@
80	$(RM) messages.po
81