Makefile revision 75ce41a57ff334bd8fe2cb9ed51eea835892f944
f875b4ebb1dd9fdbeb043557cab38ab3bf7f6e01rica#
f875b4ebb1dd9fdbeb043557cab38ab3bf7f6e01rica# CDDL HEADER START
f875b4ebb1dd9fdbeb043557cab38ab3bf7f6e01rica#
f875b4ebb1dd9fdbeb043557cab38ab3bf7f6e01rica# The contents of this file are subject to the terms of the
f875b4ebb1dd9fdbeb043557cab38ab3bf7f6e01rica# Common Development and Distribution License (the "License").
f875b4ebb1dd9fdbeb043557cab38ab3bf7f6e01rica# You may not use this file except in compliance with the License.
f875b4ebb1dd9fdbeb043557cab38ab3bf7f6e01rica#
f875b4ebb1dd9fdbeb043557cab38ab3bf7f6e01rica# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
f875b4ebb1dd9fdbeb043557cab38ab3bf7f6e01rica# or http://www.opensolaris.org/os/licensing.
f875b4ebb1dd9fdbeb043557cab38ab3bf7f6e01rica# See the License for the specific language governing permissions
f875b4ebb1dd9fdbeb043557cab38ab3bf7f6e01rica# and limitations under the License.
f875b4ebb1dd9fdbeb043557cab38ab3bf7f6e01rica#
f875b4ebb1dd9fdbeb043557cab38ab3bf7f6e01rica# When distributing Covered Code, include this CDDL HEADER in each
f875b4ebb1dd9fdbeb043557cab38ab3bf7f6e01rica# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
f875b4ebb1dd9fdbeb043557cab38ab3bf7f6e01rica# If applicable, add the following below this CDDL HEADER, with the
f875b4ebb1dd9fdbeb043557cab38ab3bf7f6e01rica# fields enclosed by brackets "[]" replaced with your own identifying
f875b4ebb1dd9fdbeb043557cab38ab3bf7f6e01rica# information: Portions Copyright [yyyy] [name of copyright owner]
f875b4ebb1dd9fdbeb043557cab38ab3bf7f6e01rica#
f875b4ebb1dd9fdbeb043557cab38ab3bf7f6e01rica# CDDL HEADER END
f875b4ebb1dd9fdbeb043557cab38ab3bf7f6e01rica#
f875b4ebb1dd9fdbeb043557cab38ab3bf7f6e01rica#
f875b4ebb1dd9fdbeb043557cab38ab3bf7f6e01rica# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
e9958a6c9e7427ed38c0957f2c72bde3068b0f3bjpk# Use is subject to license terms.
f875b4ebb1dd9fdbeb043557cab38ab3bf7f6e01rica#
f875b4ebb1dd9fdbeb043557cab38ab3bf7f6e01rica# lib/libprtdiag_psr/sparc/desktop/picl/Makefile
f875b4ebb1dd9fdbeb043557cab38ab3bf7f6e01rica
f875b4ebb1dd9fdbeb043557cab38ab3bf7f6e01ricaUTSBASE = $(SRC)/uts
f875b4ebb1dd9fdbeb043557cab38ab3bf7f6e01rica
f875b4ebb1dd9fdbeb043557cab38ab3bf7f6e01ricaPLATFORM_OBJECTS= picldiag.o
f875b4ebb1dd9fdbeb043557cab38ab3bf7f6e01rica
f875b4ebb1dd9fdbeb043557cab38ab3bf7f6e01ricaobjs/%.o pics/%.o: ../common/%.c
f875b4ebb1dd9fdbeb043557cab38ab3bf7f6e01rica $(COMPILE.c) $(IFLAGS) -o $@ $<
f875b4ebb1dd9fdbeb043557cab38ab3bf7f6e01rica $(POST_PROCESS_O)
f875b4ebb1dd9fdbeb043557cab38ab3bf7f6e01rica
f875b4ebb1dd9fdbeb043557cab38ab3bf7f6e01ricainclude $(SRC)/lib/libprtdiag_psr/sparc/Makefile.com
f875b4ebb1dd9fdbeb043557cab38ab3bf7f6e01rica
f875b4ebb1dd9fdbeb043557cab38ab3bf7f6e01ricaSRCS= $(OBJECTS:%.o=../common/%.c)
f875b4ebb1dd9fdbeb043557cab38ab3bf7f6e01rica
f875b4ebb1dd9fdbeb043557cab38ab3bf7f6e01ricaLDLIBS += -lpicl
f875b4ebb1dd9fdbeb043557cab38ab3bf7f6e01rica
f875b4ebb1dd9fdbeb043557cab38ab3bf7f6e01ricaIFLAGS += -I$(USR_PLAT_DIR)/sun4u/include -I ../../../../libprtdiag/inc
f875b4ebb1dd9fdbeb043557cab38ab3bf7f6e01ricaIFLAGS += -I$(SRC)/cmd/picl/plugins/inc
f875b4ebb1dd9fdbeb043557cab38ab3bf7f6e01ricaLINTFLAGS += $(IFLAGS)
f875b4ebb1dd9fdbeb043557cab38ab3bf7f6e01rica
f875b4ebb1dd9fdbeb043557cab38ab3bf7f6e01rica#
e9958a6c9e7427ed38c0957f2c72bde3068b0f3bjpk# links in /usr/platform
f875b4ebb1dd9fdbeb043557cab38ab3bf7f6e01rica#
f875b4ebb1dd9fdbeb043557cab38ab3bf7f6e01ricaLINKED_PLATFORMS = SUNW,Sun-Blade-1000 SUNW,Netra-T4
f875b4ebb1dd9fdbeb043557cab38ab3bf7f6e01ricaLINKED_PLATFORMS += SUNW,Sun-Blade-1500
f875b4ebb1dd9fdbeb043557cab38ab3bf7f6e01ricaLINKED_PLATFORMS += SUNW,Sun-Blade-2500
f875b4ebb1dd9fdbeb043557cab38ab3bf7f6e01ricaLINKED_PLATFORMS += SUNW,A70
f875b4ebb1dd9fdbeb043557cab38ab3bf7f6e01ricaLINKED_PLATFORMS += SUNW,Sun-Fire-V445
f875b4ebb1dd9fdbeb043557cab38ab3bf7f6e01ricaLINKED_PLATFORMS += SUNW,Sun-Fire-V215
f875b4ebb1dd9fdbeb043557cab38ab3bf7f6e01ricaLINKED_PLATFORMS += SUNW,Serverblade1
f875b4ebb1dd9fdbeb043557cab38ab3bf7f6e01ricaLINKED_PLATFORMS += SUNW,Sun-Fire-V240
f875b4ebb1dd9fdbeb043557cab38ab3bf7f6e01ricaLINKED_PLATFORMS += SUNW,Sun-Fire-V250
f875b4ebb1dd9fdbeb043557cab38ab3bf7f6e01ricaLINKED_PLATFORMS += SUNW,Sun-Fire-V440
f875b4ebb1dd9fdbeb043557cab38ab3bf7f6e01ricaLINKED_PLATFORMS += TAD,SPARCLE
f875b4ebb1dd9fdbeb043557cab38ab3bf7f6e01rica
f875b4ebb1dd9fdbeb043557cab38ab3bf7f6e01ricaLINKED_DIRS = $(LINKED_PLATFORMS:%=$(USR_PLAT_DIR)/%)
f875b4ebb1dd9fdbeb043557cab38ab3bf7f6e01ricaLINKED_LIB_DIRS = $(LINKED_PLATFORMS:%=$(USR_PLAT_DIR)/%/lib)
f875b4ebb1dd9fdbeb043557cab38ab3bf7f6e01ricaLINKED_PRTDIAG_DIRS = \
f875b4ebb1dd9fdbeb043557cab38ab3bf7f6e01rica $(LINKED_PLATFORMS:%=$(USR_PLAT_DIR)/%/lib/libprtdiag_psr.so.1)
f875b4ebb1dd9fdbeb043557cab38ab3bf7f6e01rica
f875b4ebb1dd9fdbeb043557cab38ab3bf7f6e01rica#
f875b4ebb1dd9fdbeb043557cab38ab3bf7f6e01rica# Sun-Blade-100 and Sun-Blade-1000 platform library should install into
e9958a6c9e7427ed38c0957f2c72bde3068b0f3bjpk# SUNW,Sun-Blade-100. Sun-Blade-100 platforms can
e9958a6c9e7427ed38c0957f2c72bde3068b0f3bjpk# link to /usr/platform/SUNW,Sun-Blade-100/lib/libprtdiag_psr.so
e9958a6c9e7427ed38c0957f2c72bde3068b0f3bjpk#
e9958a6c9e7427ed38c0957f2c72bde3068b0f3bjpkPLATFORM= SUNW,Sun-Blade-100
e9958a6c9e7427ed38c0957f2c72bde3068b0f3bjpk
e9958a6c9e7427ed38c0957f2c72bde3068b0f3bjpk$(USR_PLAT_DIR)/$(PLATFORM)/lib/libprtdiag_psr.so.1 := FILEMODE= 0755
e9958a6c9e7427ed38c0957f2c72bde3068b0f3bjpk
e9958a6c9e7427ed38c0957f2c72bde3068b0f3bjpk.KEEP_STATE:
e9958a6c9e7427ed38c0957f2c72bde3068b0f3bjpk
e9958a6c9e7427ed38c0957f2c72bde3068b0f3bjpkPLATLIBS= $(PLATFORM:%=$(USR_PLAT_DIR)/%/lib/)
e9958a6c9e7427ed38c0957f2c72bde3068b0f3bjpk
f875b4ebb1dd9fdbeb043557cab38ab3bf7f6e01ricainstall: all $(PLATLIBS) $(USR_PSM_LIBS) \
f875b4ebb1dd9fdbeb043557cab38ab3bf7f6e01rica $(LINKED_PRTDIAG_DIRS)
f875b4ebb1dd9fdbeb043557cab38ab3bf7f6e01rica
f875b4ebb1dd9fdbeb043557cab38ab3bf7f6e01rica#
f875b4ebb1dd9fdbeb043557cab38ab3bf7f6e01rica# install rules for SUNW,Sun-Blade-100/lib/libprtdiag_psr.so.1
f875b4ebb1dd9fdbeb043557cab38ab3bf7f6e01rica#
f875b4ebb1dd9fdbeb043557cab38ab3bf7f6e01rica$(PLATLIBS):
f875b4ebb1dd9fdbeb043557cab38ab3bf7f6e01rica $(INS.dir)
f875b4ebb1dd9fdbeb043557cab38ab3bf7f6e01rica
f875b4ebb1dd9fdbeb043557cab38ab3bf7f6e01rica$(USR_PSM_LIB_DIR)/%: % $(USR_PSM_LIB_DIR)
f875b4ebb1dd9fdbeb043557cab38ab3bf7f6e01rica $(INS.file)
f875b4ebb1dd9fdbeb043557cab38ab3bf7f6e01rica
f875b4ebb1dd9fdbeb043557cab38ab3bf7f6e01rica$(USR_PSM_LIB_DIR):
f875b4ebb1dd9fdbeb043557cab38ab3bf7f6e01rica $(INS.dir)
f875b4ebb1dd9fdbeb043557cab38ab3bf7f6e01rica
f875b4ebb1dd9fdbeb043557cab38ab3bf7f6e01rica$(LINKED_DIRS): $(USR_PLAT_DIR)
-$(INS.dir.root.sys)
$(LINKED_LIB_DIRS): $(LINKED_DIRS)
-$(INS.dir.root.sys)
$(LINKED_PRTDIAG_DIRS): $(LINKED_LIB_DIRS)
-$(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