Makefile revision 75ce41a57ff334bd8fe2cb9ed51eea835892f944
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster#
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster# CDDL HEADER START
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster#
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster# The contents of this file are subject to the terms of the
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster# Common Development and Distribution License (the "License").
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster# You may not use this file except in compliance with the License.
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster#
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster# or http://www.opensolaris.org/os/licensing.
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster# See the License for the specific language governing permissions
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster# and limitations under the License.
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster#
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster# When distributing Covered Code, include this CDDL HEADER in each
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster# If applicable, add the following below this CDDL HEADER, with the
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster# fields enclosed by brackets "[]" replaced with your own identifying
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster# information: Portions Copyright [yyyy] [name of copyright owner]
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster#
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster# CDDL HEADER END
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster#
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster#
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster# Use is subject to license terms.
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster#
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster# lib/libprtdiag_psr/sparc/desktop/picl/Makefile
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan FosterUTSBASE = $(SRC)/uts
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan FosterPLATFORM_OBJECTS= lw8.o
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Fosterobjs/%.o pics/%.o: ../common/%.c
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster $(COMPILE.c) $(IFLAGS) -o $@ $<
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster $(POST_PROCESS_O)
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Fosterinclude $(SRC)/lib/libprtdiag_psr/sparc/Makefile.com
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan FosterSRCS= $(OBJECTS:%.o=../common/%.c)
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan FosterLDLIBS += -lpicl
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan FosterIFLAGS += -I$(USR_PLAT_DIR)/sun4u/include -I ../../../../libprtdiag/inc
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan FosterIFLAGS += -I$(SRC)/cmd/picl/plugins/inc
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan FosterLINTFLAGS += $(IFLAGS)
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan FosterPLATFORM= SUNW,Netra-T12
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster$(USR_PLAT_DIR)/$(PLATFORM)/lib/libprtdiag_psr.so.1 := FILEMODE= 0755
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster.KEEP_STATE:
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan FosterPLATLIBS= $(PLATFORM:%=$(USR_PLAT_DIR)/%/lib/)
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Fosterinstall: all $(PLATLIBS) $(USR_PSM_LIBS)
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster#
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster# install rules for SUNW,Sun-Blade-100/lib/libprtdiag_psr.so.1
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster#
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster$(PLATLIBS):
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster $(INS.dir)
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster$(USR_PSM_LIB_DIR)/%: % $(USR_PSM_LIB_DIR)
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster $(INS.file)
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster$(USR_PSM_LIB_DIR):
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster $(INS.dir)
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster#
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster# Rules for making message files
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster#
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan FosterPOFILE= libprtdiag_psr_lw8_picl.po
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan FosterPOFILES= lw8.po
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster_msg: $(MSGDOMAIN) $(POFILE)
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster $(RM) $(MSGDOMAIN)/$(POFILE)
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster $(CP) $(POFILE) $(MSGDOMAIN)
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster$(POFILE): $(POFILES)
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster $(RM) $@
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster $(CAT) $(POFILES) > $@
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster$(POFILES):
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster $(RM) messages.po
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster $(XGETTEXT) $(XGETFLAGS) `$(GREP) -l gettext ../common/lw8.c`
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster $(SED) -e '/^# msg/d' -e '/^domain/d' messages.po > $@
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster $(RM) messages.po
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster
a688bcbb4bcff5398fdd29b86f83450257dc0df4Allan Foster