03831d35f7499c87d51205817c93e9a8d42c4baestevel#
03831d35f7499c87d51205817c93e9a8d42c4baestevel# CDDL HEADER START
03831d35f7499c87d51205817c93e9a8d42c4baestevel#
03831d35f7499c87d51205817c93e9a8d42c4baestevel# The contents of this file are subject to the terms of the
ed31198c686205a26320612d2a5dd7b26ae63a15John Sonnenschein# Common Development and Distribution License (the "License").
ed31198c686205a26320612d2a5dd7b26ae63a15John Sonnenschein# You may not use this file except in compliance with the License.
03831d35f7499c87d51205817c93e9a8d42c4baestevel#
03831d35f7499c87d51205817c93e9a8d42c4baestevel# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
03831d35f7499c87d51205817c93e9a8d42c4baestevel# or http://www.opensolaris.org/os/licensing.
03831d35f7499c87d51205817c93e9a8d42c4baestevel# See the License for the specific language governing permissions
03831d35f7499c87d51205817c93e9a8d42c4baestevel# and limitations under the License.
03831d35f7499c87d51205817c93e9a8d42c4baestevel#
03831d35f7499c87d51205817c93e9a8d42c4baestevel# When distributing Covered Code, include this CDDL HEADER in each
03831d35f7499c87d51205817c93e9a8d42c4baestevel# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
03831d35f7499c87d51205817c93e9a8d42c4baestevel# If applicable, add the following below this CDDL HEADER, with the
03831d35f7499c87d51205817c93e9a8d42c4baestevel# fields enclosed by brackets "[]" replaced with your own identifying
03831d35f7499c87d51205817c93e9a8d42c4baestevel# information: Portions Copyright [yyyy] [name of copyright owner]
03831d35f7499c87d51205817c93e9a8d42c4baestevel#
03831d35f7499c87d51205817c93e9a8d42c4baestevel# CDDL HEADER END
03831d35f7499c87d51205817c93e9a8d42c4baestevel#
ed31198c686205a26320612d2a5dd7b26ae63a15John Sonnenschein
03831d35f7499c87d51205817c93e9a8d42c4baestevel#
ed31198c686205a26320612d2a5dd7b26ae63a15John Sonnenschein# Copyright 2008 Sun Microsystems, Inc. All rights reserved.
03831d35f7499c87d51205817c93e9a8d42c4baestevel# Use is subject to license terms.
03831d35f7499c87d51205817c93e9a8d42c4baestevel#
03831d35f7499c87d51205817c93e9a8d42c4baestevel# lib/libprtdiag/sparc/sun4u/Makefile
03831d35f7499c87d51205817c93e9a8d42c4baestevel#
03831d35f7499c87d51205817c93e9a8d42c4baestevel# Platform specific Makefile for libprtdiag.
03831d35f7499c87d51205817c93e9a8d42c4baestevel#
03831d35f7499c87d51205817c93e9a8d42c4baestevel# PLATFORM is the target for the binary installation.
03831d35f7499c87d51205817c93e9a8d42c4baestevel#
03831d35f7499c87d51205817c93e9a8d42c4baestevel
03831d35f7499c87d51205817c93e9a8d42c4baestevelPLATFORM = sun4u
03831d35f7499c87d51205817c93e9a8d42c4baestevel
03831d35f7499c87d51205817c93e9a8d42c4baestevelOBJECTS = io.o cpu.o memory.o kstat.o prom.o \
03831d35f7499c87d51205817c93e9a8d42c4baestevel pdevinfo_funcs.o display_funcs.o \
03831d35f7499c87d51205817c93e9a8d42c4baestevel pdevinfo_sun4u.o display_sun4u.o \
03831d35f7499c87d51205817c93e9a8d42c4baestevel libdevinfo_sun4u.o
03831d35f7499c87d51205817c93e9a8d42c4baestevel
03831d35f7499c87d51205817c93e9a8d42c4baestevelinclude ../../Makefile.com
03831d35f7499c87d51205817c93e9a8d42c4baestevel
03831d35f7499c87d51205817c93e9a8d42c4baestevelSRCS = $(OBJECTS:%.o=../../common/%.c)
03831d35f7499c87d51205817c93e9a8d42c4baestevelLDLIBS += -ldevinfo
03831d35f7499c87d51205817c93e9a8d42c4baestevel
03831d35f7499c87d51205817c93e9a8d42c4baestevel#
03831d35f7499c87d51205817c93e9a8d42c4baestevel# used for creating message catalogue files
03831d35f7499c87d51205817c93e9a8d42c4baestevel#
03831d35f7499c87d51205817c93e9a8d42c4baestevelTEXT_DOMAIN= SUNW_OST_OSLIB
03831d35f7499c87d51205817c93e9a8d42c4baestevelSED= sed
03831d35f7499c87d51205817c93e9a8d42c4baestevelGREP= grep
03831d35f7499c87d51205817c93e9a8d42c4baestevel
03831d35f7499c87d51205817c93e9a8d42c4baestevel.KEEP_STATE:
03831d35f7499c87d51205817c93e9a8d42c4baestevel
03831d35f7499c87d51205817c93e9a8d42c4baestevelall: $(LIBS)
03831d35f7499c87d51205817c93e9a8d42c4baestevel
03831d35f7499c87d51205817c93e9a8d42c4baestevelinstall: all $(USR_PSM_LIBS) $(USR_PSMLINT)
03831d35f7499c87d51205817c93e9a8d42c4baestevel
03831d35f7499c87d51205817c93e9a8d42c4baestevellint: lintcheck
03831d35f7499c87d51205817c93e9a8d42c4baestevel
03831d35f7499c87d51205817c93e9a8d42c4baestevelinclude $(SRC)/lib/Makefile.targ
03831d35f7499c87d51205817c93e9a8d42c4baestevel
03831d35f7499c87d51205817c93e9a8d42c4baestevelPOFILE= libprtdiag_sun4u.po
03831d35f7499c87d51205817c93e9a8d42c4baestevelPOFILES= generic.po
03831d35f7499c87d51205817c93e9a8d42c4baestevel
03831d35f7499c87d51205817c93e9a8d42c4baestevel_msg: $(MSGDOMAIN) $(POFILE)
03831d35f7499c87d51205817c93e9a8d42c4baestevel $(RM) $(MSGDOMAIN)/$(POFILE)
03831d35f7499c87d51205817c93e9a8d42c4baestevel $(CP) $(POFILE) $(MSGDOMAIN)
03831d35f7499c87d51205817c93e9a8d42c4baestevel
03831d35f7499c87d51205817c93e9a8d42c4baestevel$(POFILE): $(POFILES)
03831d35f7499c87d51205817c93e9a8d42c4baestevel $(RM) $@
03831d35f7499c87d51205817c93e9a8d42c4baestevel $(CAT) $(POFILES) > $@
03831d35f7499c87d51205817c93e9a8d42c4baestevel
03831d35f7499c87d51205817c93e9a8d42c4baestevel$(POFILES):
03831d35f7499c87d51205817c93e9a8d42c4baestevel $(RM) messages.po
03831d35f7499c87d51205817c93e9a8d42c4baestevel $(XGETTEXT) $(XGETFLAGS) `$(GREP) -l gettext ../../common/*.c`
03831d35f7499c87d51205817c93e9a8d42c4baestevel $(SED) -e '/^# msg/d' -e '/^domain/d' messages.po > $@
03831d35f7499c87d51205817c93e9a8d42c4baestevel $(RM) messages.po