Makefile revision c40d696f8f0e05103b3795dd37198e00ae7ef955
0N/A#
2362N/A# CDDL HEADER START
0N/A#
0N/A# The contents of this file are subject to the terms of the
0N/A# Common Development and Distribution License (the "License").
0N/A# You may not use this file except in compliance with the License.
2362N/A#
0N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
2362N/A# or http://www.opensolaris.org/os/licensing.
0N/A# See the License for the specific language governing permissions
0N/A# and limitations under the License.
0N/A#
0N/A# When distributing Covered Code, include this CDDL HEADER in each
0N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
0N/A# If applicable, add the following below this CDDL HEADER, with the
0N/A# fields enclosed by brackets "[]" replaced with your own identifying
0N/A# information: Portions Copyright [yyyy] [name of copyright owner]
0N/A#
0N/A# CDDL HEADER END
0N/A#
2362N/A#
2362N/A# Copyright 2007 Sun Microsystems, Inc. All rights reserved.
2362N/A# Use is subject to license terms.
0N/A#
0N/A# ident "%Z%%M% %I% %E% SMI"
0N/A#
0N/A# cmd/picl/plugins/sun4v/ontario/piclsbl/Makefile
0N/A
0N/ALIBRARY= libpiclsbl.a
0N/AVERS= .1
2080N/A
0N/AOBJECTS= piclsbl.o
0N/A
0N/A# include library definitions
0N/Ainclude $(SRC)/lib/Makefile.lib
0N/Ainclude $(SRC)/Makefile.psm
0N/A
0N/Ainclude $(SRC)/cmd/picl/plugins/Makefile.com
0N/A
0N/ASRCS= $(OBJECTS:%.o=%.c)
0N/A
0N/ALINT_SRC= $(LINTLIB:%.ln=%)
0N/A
0N/A$(OBJS_DIR)/%.o: $(SRC)/sun4v/ontario/piclsbl/%.c
0N/A $(COMPILE.c) -o $@ $<
0N/A $(CTFCONVERT_O)
0N/A
0N/A$(LINTS_DIR)/%.ln: $(SRC)/sun4v/ontario/piclsbl/%.c
0N/A @($(LHEAD) $(LINT.c) $< $(LTAIL))
0N/A
0N/A
2465N/ALIBS = $(DYNLIB)
2465N/A
0N/APLATFORM = SUNW,Sun-Fire-T200
0N/AROOT_PLATFORM = $(USR_PLAT_DIR)/$(PLATFORM)
0N/ADYNFLAGS_PLAT = /usr/platform/\$$PLATFORM/lib/picl/plugins
0N/ADYNFLAGS_SUN4V = /usr/platform/sun4v/lib/picl/plugins
0N/ADYNFLAGS_COM = /usr/lib/picl/plugins
0N/A
0N/AROOTLIBDIR = $(ROOT_PLAT_PLUGINDIR)
0N/A
0N/ACLEANFILES= $(LINTOUT) $(LINTLIB)
0N/A
0N/ACPPFLAGS += -I$(SRC)/sun4v/ontario/piclsbl
0N/ACPPFLAGS += -I$(SRC)/uts/common/sys
0N/ACPPFLAGS += -I$(SRC)/lib/libpcp/common
0N/ACPPFLAGS += -D_REENTRANT
0N/A
0N/ACFLAGS += $(CCVERBOSE)
0N/ALDLIBS += -L$(SRC)/lib/libpicl/$(MACH) -L$(SRC)/lib/libpicltree/$(MACH)
0N/ALDLIBS += -L$(ROOT)/usr/lib/picl/plugins
0N/ADYNFLAGS += -R$(DYNFLAGS_COM)
0N/A
0N/ALDLIBS += -lc -lpicltree -lumem -lnvpair
0N/A
0N/ALINTFLAGS += -erroff=E_BAD_PTR_CAST_ALIGN -v
0N/A
0N/ALINKED_PLATFORMS = SUNW,Sun-Blade-T6300 SUNW,T5140
0N/ALINKED_PLATFORMS += SUNW,Sun-Blade-T6320
0N/ALINKED_PLATFORMS += SUNW,SPARC-Enterprise-T5120
0N/ALINKED_PLATFORMS += SUNW,Netra-T5220
0N/A
0N/ALINKED_DIRS = $(LINKED_PLATFORMS:%=$(USR_PLAT_DIR)/%)
0N/ALINKED_LIB_DIRS = $(LINKED_PLATFORMS:%=$(USR_PLAT_DIR)/%/lib)
0N/ALINKED_PICL_DIRS = $(LINKED_PLATFORMS:%=$(USR_PLAT_DIR)/%/lib/picl)
0N/ALINKED_PLUGIN_DIRS = $(LINKED_PLATFORMS:%=$(USR_PLAT_DIR)/%/lib/picl/plugins)
0N/A
0N/ALINKED_PLUGINS_DYNLIBS = $(LINKED_PLUGIN_DIRS:%=%/$(DYNLIB))
0N/ALINKED_PLUGINS_LIBLINKS = $(LINKED_PLUGIN_DIRS:%=%/$(LIBLINKS))
ONTARIO_DYNLIB_DIR = ../../../../$(PLATFORM)/lib/picl/plugins
.KEEP_STATE:
all: $(LIBS) $(LIBLINKS)
install: all $(ROOTLIBDIR) $(ROOTLIBS) $(ROOTLINKS) \
$(LINKED_PLUGIN_DIRS) $(LINKED_PLUGINS_DYNLIBS) \
$(LINKED_PLUGINS_LIBLINKS)
$(LIBLINKS): FRC
$(RM) $(LIBLINKS); $(SYMLINK) $(DYNLIB) $(LIBLINKS)
# Linked platforms directory hierarchy
$(LINKED_DIRS):
$(INS.dir)
$(LINKED_LIB_DIRS): $(LINKED_DIRS)
$(INS.dir)
$(LINKED_PICL_DIRS): $(LINKED_LIB_DIRS)
$(INS.dir)
$(LINKED_PLUGIN_DIRS): $(LINKED_PICL_DIRS)
$(INS.dir)
# Linked platforms links
$(LINKED_PLUGINS_DYNLIBS): $(LINKED_PLUGIN_DIRS)
$(RM) -r $@ ;\
$(SYMLINK) $(ONTARIO_DYNLIB_DIR)/$(DYNLIB) $@
$(LINKED_PLUGINS_LIBLINKS): $(LINKED_PLUGIN_DIRS)
$(RM) -r $@ ;\
$(SYMLINK) $(ONTARIO_DYNLIB_DIR)/$(DYNLIB) $@
# include library targets
include $(SRC)/cmd/picl/plugins/Makefile.targ
include $(SRC)/lib/Makefile.targ
lint :
$(LINT.c) $(SRCS)
FRC: