Makefile revision 2
123N/A#
123N/A# CDDL HEADER START
123N/A#
123N/A# The contents of this file are subject to the terms of the
1072N/A# Common Development and Distribution License (the "License").
123N/A# You may not use this file except in compliance with the License.
123N/A#
919N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
919N/A# or http://www.opensolaris.org/os/licensing.
919N/A# See the License for the specific language governing permissions
919N/A# and limitations under the License.
919N/A#
919N/A# When distributing Covered Code, include this CDDL HEADER in each
919N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
919N/A# If applicable, add the following below this CDDL HEADER, with the
919N/A# fields enclosed by brackets "[]" replaced with your own identifying
919N/A# information: Portions Copyright [yyyy] [name of copyright owner]
919N/A#
919N/A# CDDL HEADER END
919N/A#
919N/A#
919N/A# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
919N/A# Use is subject to license terms.
919N/A#
123N/A# lib/libprtdiag_psr/sparc/opl/Makefile
123N/A
123N/AUTSBASE = ../../../../../src/uts
123N/A
493N/APLATFORM_OBJECTS= opl.o opl_picl.o
123N/A
123N/Ainclude ../Makefile.com
1072N/A
123N/AIFLAGS += -I$(USR_PLAT_DIR)/sun4u/include -I ../../../libprtdiag/inc
911N/AIFLAGS += -I$(SRC)/uts/common/ -I$(SRC)/cmd/picl/plugins/inc
1072N/ALDLIBS += -lpicl -lkstat
1072N/A
911N/ALINTFLAGS += $(IFLAGS)
123N/A
851N/A#IMPLEMENTED_PLATFORM = SUNW,OPL-Enterprise
851N/A#PLATFORM=$(IMPLEMENTED_PLATFORM)
851N/APLATFORM = SUNW,SPARC-Enterprise
851N/A
851N/A$(USR_PLAT_DIR)/$(PLATFORM)/lib/libprtdiag_psr.so.1 := FILEMODE= 0755
123N/A
123N/A.KEEP_STATE:
123N/A
123N/APLATLIBS= $(USR_PLAT_DIR)/$(PLATFORM)/lib/
123N/A
169N/Ainstall: all $(USR_PSM_LIBS)
493N/A
969N/A$(USR_PSM_LIB_DIR):
123N/A cd $(UTSBASE)/sun4u/opl; $(MAKE) $(USR_PSM_LIB_DIR)
123N/A
493N/A#
123N/A# install rule
1196N/A#
1196N/A$(USR_PSM_LIB_DIR)/%: % $(USR_PSM_LIB_DIR)
1196N/A $(INS.file)
1196N/A
1196N/APOFILE= libprtdiag_psr_opl.po
123N/APOFILES= opl.po
123N/A
123N/A_msg: $(MSGDOMAIN) $(POFILE)
970N/A $(RM) $(MSGDOMAIN)/$(POFILE)
970N/A $(CP) $(POFILE) $(MSGDOMAIN)
970N/A
123N/A$(POFILE): $(POFILES)
123N/A $(RM) $@
$(CAT) $(POFILES) > $@
$(POFILES):
$(RM) messages.po
$(XGETTEXT) $(XGETFLAGS) `$(GREP) -l gettext common/opl.c`
$(SED) -e '/^# msg/d' -e '/^domain/d' messages.po > $@
$(RM) messages.po