Makefile revision 03831d35f7499c87d51205817c93e9a8d42c4bae
2d0611ffc9f91c5fc2ddccb93f9a3d17791ae650takashi#
2d0611ffc9f91c5fc2ddccb93f9a3d17791ae650takashi# CDDL HEADER START
0c294487ab3a4e567dc574bb2ad81c7ce07cfd31pquerna#
0c294487ab3a4e567dc574bb2ad81c7ce07cfd31pquerna# The contents of this file are subject to the terms of the
0c294487ab3a4e567dc574bb2ad81c7ce07cfd31pquerna# Common Development and Distribution License (the "License").
8bb7126c063c34d63966733988411f72dfcb2294maczniak# You may not use this file except in compliance with the License.
1c8f2418892d98febb00a06b9a4f45f8bcfd80a3nd#
1c8f2418892d98febb00a06b9a4f45f8bcfd80a3nd# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
1c8f2418892d98febb00a06b9a4f45f8bcfd80a3nd# or http://www.opensolaris.org/os/licensing.
1c8f2418892d98febb00a06b9a4f45f8bcfd80a3nd# See the License for the specific language governing permissions
8bb7126c063c34d63966733988411f72dfcb2294maczniak# and limitations under the License.
8bb7126c063c34d63966733988411f72dfcb2294maczniak#
8bb7126c063c34d63966733988411f72dfcb2294maczniak# When distributing Covered Code, include this CDDL HEADER in each
1cc20a8827ff6056399d64e3106b44d31e8e0e53nd# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
1cc20a8827ff6056399d64e3106b44d31e8e0e53nd# If applicable, add the following below this CDDL HEADER, with the
1cc20a8827ff6056399d64e3106b44d31e8e0e53nd# fields enclosed by brackets "[]" replaced with your own identifying
1cc20a8827ff6056399d64e3106b44d31e8e0e53nd# information: Portions Copyright [yyyy] [name of copyright owner]
794694a8414fd0e0cdd534906995648ff5f3532crpluem#
794694a8414fd0e0cdd534906995648ff5f3532crpluem# CDDL HEADER END
794694a8414fd0e0cdd534906995648ff5f3532crpluem#
794694a8414fd0e0cdd534906995648ff5f3532crpluem#
# Copyright 2006 Sun Microsystems, Inc. All rights reserved.
# Use is subject to license terms.
#
# ident "%Z%%M% %I% %E% SMI"
#
# lib/libprtdiag_psr/sparc/desktop/picl/Makefile
UTSBASE = $(SRC)/uts
PLATFORM_OBJECTS= picldiag.o
objs/%.o pics/%.o: ../common/%.c
$(COMPILE.c) $(IFLAGS) -o $@ $<
$(POST_PROCESS_O)
include $(SRC)/lib/libprtdiag_psr/sparc/Makefile.com
SRCS= $(OBJECTS:%.o=../common/%.c)
LDLIBS += -lpicl
IFLAGS += -I$(USR_PLAT_DIR)/sun4u/include -I ../../../../libprtdiag/inc
IFLAGS += -I$(SRC)/cmd/picl/plugins/inc
LINTFLAGS += $(IFLAGS)
#
# links in /usr/platform
#
LINKED_PLATFORMS = SUNW,Sun-Blade-1000 SUNW,Netra-T4
LINKED_PLATFORMS += SUNW,Sun-Blade-1500
LINKED_PLATFORMS += SUNW,Sun-Blade-2500
LINKED_PLATFORMS += SUNW,A70
LINKED_PLATFORMS += SUNW,Sun-Fire-V445
LINKED_PLATFORMS += SUNW,Sun-Fire-V215
LINKED_PLATFORMS += SUNW,Serverblade1
LINKED_PLATFORMS += SUNW,Sun-Fire-V240
LINKED_PLATFORMS += SUNW,Sun-Fire-V250
LINKED_PLATFORMS += SUNW,Sun-Fire-V440
LINKED_DIRS = $(LINKED_PLATFORMS:%=$(USR_PLAT_DIR)/%)
LINKED_LIB_DIRS = $(LINKED_PLATFORMS:%=$(USR_PLAT_DIR)/%/lib)
LINKED_PRTDIAG_DIRS = \
$(LINKED_PLATFORMS:%=$(USR_PLAT_DIR)/%/lib/libprtdiag_psr.so.1)
#
# Sun-Blade-100 and Sun-Blade-1000 platform library should install into
# SUNW,Sun-Blade-100. Sun-Blade-100 platforms can
# link to /usr/platform/SUNW,Sun-Blade-100/lib/libprtdiag_psr.so
#
PLATFORM= SUNW,Sun-Blade-100
.KEEP_STATE:
PLATLIBS= $(PLATFORM:%=$(USR_PLAT_DIR)/%/lib/)
install: all $(PLATLIBS) $(USR_PSM_LIBS) \
$(LINKED_PRTDIAG_DIRS)
#
# install rules for SUNW,Sun-Blade-100/lib/libprtdiag_psr.so.1
#
$(PLATLIBS):
$(INS.dir)
$(USR_PSM_LIB_DIR)/%: % $(USR_PSM_LIB_DIR)
$(INS.file)
$(USR_PSM_LIB_DIR):
$(INS.dir)
$(LINKED_DIRS): $(USR_PLAT_DIR)
-$(INS.dir.root.sys)
$(LINKED_LIB_DIRS): $(LINKED_DIRS)
-$(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