Makefile revision 03831d35f7499c87d51205817c93e9a8d42c4bae
b897c52f865b2fc4e220e2110b874e59c716456bBob Halley#
5fbced719b71e659322b4ce3e4a39c9b039674c7Bob Halley# CDDL HEADER START
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews#
499b34cea04a46823d003d4c0520c8b03e8513cbBrian Wellington# The contents of this file are subject to the terms of the
f4a7d04843eb62c92f2d4ff338da49ae86e3279bDavid Lawrence# Common Development and Distribution License, Version 1.0 only
5fbced719b71e659322b4ce3e4a39c9b039674c7Bob Halley# (the "License"). You may not use this file except in compliance
5fbced719b71e659322b4ce3e4a39c9b039674c7Bob Halley# with the License.
5fbced719b71e659322b4ce3e4a39c9b039674c7Bob Halley#
f4a7d04843eb62c92f2d4ff338da49ae86e3279bDavid Lawrence# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews# or http://www.opensolaris.org/os/licensing.
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews# See the License for the specific language governing permissions
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews# and limitations under the License.
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews#
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews# When distributing Covered Code, include this CDDL HEADER in each
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews# If applicable, add the following below this CDDL HEADER, with the
15a44745412679c30a6d022733925af70a38b715David Lawrence# fields enclosed by brackets "[]" replaced with your own identifying
34158349b49add1ad63eede5ab7e694c589eb3cdMark Andrews# information: Portions Copyright [yyyy] [name of copyright owner]
e85ffb301b294d70ddc1d90234788403666bb944David Lawrence#
5a6e6c2c9b2f6cf426aa2a682aa800765e26d540Andreas Gustafsson# CDDL HEADER END
5a6e6c2c9b2f6cf426aa2a682aa800765e26d540Andreas Gustafsson#
5a6e6c2c9b2f6cf426aa2a682aa800765e26d540Andreas Gustafsson#
5a6e6c2c9b2f6cf426aa2a682aa800765e26d540Andreas Gustafsson# Copyright 2005 Sun Microsystems, Inc. All rights reserved.
f4a7d04843eb62c92f2d4ff338da49ae86e3279bDavid Lawrence# Use is subject to license terms.
5a6e6c2c9b2f6cf426aa2a682aa800765e26d540Andreas Gustafsson#
5a6e6c2c9b2f6cf426aa2a682aa800765e26d540Andreas Gustafsson# ident "%Z%%M% %I% %E% SMI"
f4a7d04843eb62c92f2d4ff338da49ae86e3279bDavid Lawrence#
f4a7d04843eb62c92f2d4ff338da49ae86e3279bDavid Lawrence# lib/libprtdiag/sparc/sun4u/Makefile
cb3e854e181373807f7f011e5050c1a8013b4841Brian Wellington#
f4a7d04843eb62c92f2d4ff338da49ae86e3279bDavid Lawrence# Platform specific Makefile for libprtdiag.
f4a7d04843eb62c92f2d4ff338da49ae86e3279bDavid Lawrence#
f4a7d04843eb62c92f2d4ff338da49ae86e3279bDavid Lawrence# PLATFORM is the target for the binary installation.
5a6e6c2c9b2f6cf426aa2a682aa800765e26d540Andreas Gustafsson#
5a6e6c2c9b2f6cf426aa2a682aa800765e26d540Andreas Gustafsson
5a6e6c2c9b2f6cf426aa2a682aa800765e26d540Andreas GustafssonPLATFORM = sun4u
5a6e6c2c9b2f6cf426aa2a682aa800765e26d540Andreas Gustafsson
5a6e6c2c9b2f6cf426aa2a682aa800765e26d540Andreas GustafssonOBJECTS = io.o cpu.o memory.o kstat.o prom.o \
5a6e6c2c9b2f6cf426aa2a682aa800765e26d540Andreas Gustafsson pdevinfo_funcs.o display_funcs.o \
5a6e6c2c9b2f6cf426aa2a682aa800765e26d540Andreas Gustafsson pdevinfo_sun4u.o display_sun4u.o \
c968a9ca37964ae0bdc5d452ad784ec93bd04c57David Lawrence libdevinfo_sun4u.o
c968a9ca37964ae0bdc5d452ad784ec93bd04c57David Lawrence
5a6e6c2c9b2f6cf426aa2a682aa800765e26d540Andreas Gustafssoninclude ../../Makefile.com
f4a7d04843eb62c92f2d4ff338da49ae86e3279bDavid Lawrence
f4a7d04843eb62c92f2d4ff338da49ae86e3279bDavid LawrenceSRCS = $(OBJECTS:%.o=../../common/%.c)
f4a7d04843eb62c92f2d4ff338da49ae86e3279bDavid LawrenceLDLIBS += -ldevinfo
f4a7d04843eb62c92f2d4ff338da49ae86e3279bDavid Lawrence
f4a7d04843eb62c92f2d4ff338da49ae86e3279bDavid Lawrence#
b897c52f865b2fc4e220e2110b874e59c716456bBob Halley# used for creating message catalogue files
b897c52f865b2fc4e220e2110b874e59c716456bBob Halley#
b897c52f865b2fc4e220e2110b874e59c716456bBob HalleyTEXT_DOMAIN= SUNW_OST_OSLIB
f4a7d04843eb62c92f2d4ff338da49ae86e3279bDavid LawrenceSED= sed
f4a7d04843eb62c92f2d4ff338da49ae86e3279bDavid LawrenceGREP= grep
f4a7d04843eb62c92f2d4ff338da49ae86e3279bDavid LawrenceCP= cp
f4a7d04843eb62c92f2d4ff338da49ae86e3279bDavid Lawrence
f4a7d04843eb62c92f2d4ff338da49ae86e3279bDavid Lawrence.KEEP_STATE:
f4a7d04843eb62c92f2d4ff338da49ae86e3279bDavid Lawrence
4b598d8ae578861d5f3fc1333c9f84c9c9c8be7cDavid Lawrenceall: $(LIBS)
4b598d8ae578861d5f3fc1333c9f84c9c9c8be7cDavid Lawrence
f4a7d04843eb62c92f2d4ff338da49ae86e3279bDavid Lawrenceinstall: all $(USR_PSM_LIBS) $(USR_PSMLINT)
f4a7d04843eb62c92f2d4ff338da49ae86e3279bDavid Lawrence
f4a7d04843eb62c92f2d4ff338da49ae86e3279bDavid Lawrencelint: lintcheck
f4a7d04843eb62c92f2d4ff338da49ae86e3279bDavid Lawrence
f4a7d04843eb62c92f2d4ff338da49ae86e3279bDavid Lawrenceinclude $(SRC)/lib/Makefile.targ
f4a7d04843eb62c92f2d4ff338da49ae86e3279bDavid Lawrence
f4a7d04843eb62c92f2d4ff338da49ae86e3279bDavid LawrencePOFILE= libprtdiag_sun4u.po
4b598d8ae578861d5f3fc1333c9f84c9c9c8be7cDavid LawrencePOFILES= generic.po
f4a7d04843eb62c92f2d4ff338da49ae86e3279bDavid Lawrence
4e71e9b6c86d4d437c1beb4070861a77464f98e6Andreas Gustafsson_msg: $(MSGDOMAIN) $(POFILE)
f4a7d04843eb62c92f2d4ff338da49ae86e3279bDavid Lawrence $(RM) $(MSGDOMAIN)/$(POFILE)
f4a7d04843eb62c92f2d4ff338da49ae86e3279bDavid Lawrence $(CP) $(POFILE) $(MSGDOMAIN)
f4a7d04843eb62c92f2d4ff338da49ae86e3279bDavid Lawrence
f4a7d04843eb62c92f2d4ff338da49ae86e3279bDavid Lawrence$(POFILE): $(POFILES)
f4a7d04843eb62c92f2d4ff338da49ae86e3279bDavid Lawrence $(RM) $@
5a48c9f76003a649e16de34fe6206e3b67b97afbBob Halley $(CAT) $(POFILES) > $@
f4a7d04843eb62c92f2d4ff338da49ae86e3279bDavid Lawrence
f4a7d04843eb62c92f2d4ff338da49ae86e3279bDavid Lawrence$(POFILES):
f4a7d04843eb62c92f2d4ff338da49ae86e3279bDavid Lawrence $(RM) messages.po
f4a7d04843eb62c92f2d4ff338da49ae86e3279bDavid Lawrence $(XGETTEXT) $(XGETFLAGS) `$(GREP) -l gettext ../../common/*.c`
f4a7d04843eb62c92f2d4ff338da49ae86e3279bDavid Lawrence $(SED) -e '/^# msg/d' -e '/^domain/d' messages.po > $@
86cbec9012b1db3f85789155c38d10c63a96156fAndreas Gustafsson $(RM) messages.po
f4a7d04843eb62c92f2d4ff338da49ae86e3279bDavid Lawrence