Makefile revision 03831d35f7499c87d51205817c93e9a8d42c4bae
2N/A#
2N/A# CDDL HEADER START
2N/A#
2N/A# The contents of this file are subject to the terms of the
2N/A# Common Development and Distribution License (the "License").
2N/A# You may not use this file except in compliance with the License.
2N/A#
2N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
2N/A# or http://www.opensolaris.org/os/licensing.
2N/A# See the License for the specific language governing permissions
2N/A# and limitations under the License.
2N/A#
2N/A# When distributing Covered Code, include this CDDL HEADER in each
2N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
2N/A# If applicable, add the following below this CDDL HEADER, with the
2N/A# fields enclosed by brackets "[]" replaced with your own identifying
2N/A# information: Portions Copyright [yyyy] [name of copyright owner]
2N/A#
2N/A# CDDL HEADER END
2N/A#
2N/A#
2N/A# Copyright 2006 Sun Microsystems, Inc. All rights reserved.
2N/A# Use is subject to license terms.
2N/A#
2N/A# ident "%Z%%M% %I% %E% SMI"
2N/A#
2N/A# lib/libprtdiag_psr/sparc/desktop/picl/Makefile
2N/A
2N/AUTSBASE = $(SRC)/uts
2N/A
2N/APLATFORM_OBJECTS= picldiag.o
2N/A
2N/Aobjs/%.o pics/%.o: ../common/%.c
2N/A $(COMPILE.c) $(IFLAGS) -o $@ $<
2N/A $(POST_PROCESS_O)
2N/A
2N/Ainclude $(SRC)/lib/libprtdiag_psr/sparc/Makefile.com
2N/A
2N/ASRCS= $(OBJECTS:%.o=../common/%.c)
2N/A
2N/ALDLIBS += -lpicl
2N/A
2N/AIFLAGS += -I$(USR_PLAT_DIR)/sun4u/include -I ../../../../libprtdiag/inc
2N/AIFLAGS += -I$(SRC)/cmd/picl/plugins/inc
2N/ALINTFLAGS += $(IFLAGS)
2N/A
2N/A#
2N/A# links in /usr/platform
2N/A#
2N/ALINKED_PLATFORMS = SUNW,Sun-Blade-1000 SUNW,Netra-T4
2N/ALINKED_PLATFORMS += SUNW,Sun-Blade-1500
2N/ALINKED_PLATFORMS += SUNW,Sun-Blade-2500
2N/ALINKED_PLATFORMS += SUNW,A70
2N/ALINKED_PLATFORMS += SUNW,Sun-Fire-V445
2N/ALINKED_PLATFORMS += SUNW,Sun-Fire-V215
2N/ALINKED_PLATFORMS += SUNW,Serverblade1
2N/ALINKED_PLATFORMS += SUNW,Sun-Fire-V240
2N/ALINKED_PLATFORMS += SUNW,Sun-Fire-V250
2N/ALINKED_PLATFORMS += SUNW,Sun-Fire-V440
2N/A
2N/ALINKED_DIRS = $(LINKED_PLATFORMS:%=$(USR_PLAT_DIR)/%)
2N/ALINKED_LIB_DIRS = $(LINKED_PLATFORMS:%=$(USR_PLAT_DIR)/%/lib)
2N/ALINKED_PRTDIAG_DIRS = \
2N/A $(LINKED_PLATFORMS:%=$(USR_PLAT_DIR)/%/lib/libprtdiag_psr.so.1)
2N/A
2N/A#
2N/A# Sun-Blade-100 and Sun-Blade-1000 platform library should install into
2N/A# SUNW,Sun-Blade-100. Sun-Blade-100 platforms can
2N/A# link to /usr/platform/SUNW,Sun-Blade-100/lib/libprtdiag_psr.so
2N/A#
2N/APLATFORM= SUNW,Sun-Blade-100
2N/A
2N/A.KEEP_STATE:
2N/A
2N/APLATLIBS= $(PLATFORM:%=$(USR_PLAT_DIR)/%/lib/)
2N/A
2N/Ainstall: all $(PLATLIBS) $(USR_PSM_LIBS) \
2N/A $(LINKED_PRTDIAG_DIRS)
2N/A
2N/A#
2N/A# install rules for SUNW,Sun-Blade-100/lib/libprtdiag_psr.so.1
2N/A#
2N/A$(PLATLIBS):
2N/A $(INS.dir)
2N/A
2N/A$(USR_PSM_LIB_DIR)/%: % $(USR_PSM_LIB_DIR)
2N/A $(INS.file)
2N/A
2N/A$(USR_PSM_LIB_DIR):
2N/A $(INS.dir)
2N/A
2N/A$(LINKED_DIRS): $(USR_PLAT_DIR)
2N/A -$(INS.dir.root.sys)
2N/A
2N/A$(LINKED_LIB_DIRS): $(LINKED_DIRS)
2N/A -$(INS.dir.root.sys)
$(LINKED_PRTDIAG_DIRS): $(USR_PLAT_DIR)
-$(INS.slink6)
#
# Rules for making message files
#
POFILE= libprtdiag_psr_desktop_picl.po
POFILES= desktop.po
_msg: $(MSGDOMAIN) $(POFILE)
$(RM) $(MSGDOMAIN)/$(POFILE)
$(CP) $(POFILE) $(MSGDOMAIN)
$(POFILE): $(POFILES)
$(RM) $@
$(CAT) $(POFILES) > $@
$(POFILES):
$(RM) messages.po
$(XGETTEXT) $(XGETFLAGS) `$(GREP) -l gettext ../common/picldiag.c`
$(SED) -e '/^# msg/d' -e '/^domain/d' messages.po > $@
$(RM) messages.po