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