Makefile revision f841f6ad96ea6675d6c6b35c749eaac601799fdf
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# CDDL HEADER START
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# The contents of this file are subject to the terms of the
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# Common Development and Distribution License (the "License").
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# You may not use this file except in compliance with the License.
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# or http://www.opensolaris.org/os/licensing.
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# See the License for the specific language governing permissions
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# and limitations under the License.
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# When distributing Covered Code, include this CDDL HEADER in each
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# If applicable, add the following below this CDDL HEADER, with the
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# fields enclosed by brackets "[]" replaced with your own identifying
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# information: Portions Copyright [yyyy] [name of copyright owner]
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# CDDL HEADER END
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# Copyright 2006 Sun Microsystems, Inc. All rights reserved.
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# Use is subject to license terms.
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# ident "%Z%%M% %I% %E% SMI"
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# cmd/picl/plugins/sun4v/mdesc/Makefile
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteLIBRARY= libmdescplugin.a
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteVERS= .1
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteOBJS_DIR= pics
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteOBJECTS= mdescplugin.o init.o dr.o \
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte cpu_prop_update.o disk_discovery.o \
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte mdesc_findname.o mdesc_findnodeprop.o \
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte mdesc_fini.o mdesc_getpropstr.o \
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte mdesc_getpropval.o mdesc_init_intern.o \
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte mdesc_nodecount.o mdesc_rootnode.o \
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte mdesc_scandag.o mdesc_getpropdata.o
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# include library definitions
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forteinclude $(SRC)/lib/Makefile.lib
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forteinclude $(SRC)/Makefile.psm
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forteinclude $(SRC)/cmd/picl/plugins/Makefile.com
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteSRCS= $(OBJECTS:%.o=%.c)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteLINT_SRC= ./mdescplugin.c ./init.c ./dr.c \
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte ./cpu_prop_update.c ./disk_discovery.c \
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte $(SRC)/common/mdesc/mdesc_findname.c \
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte $(SRC)/common/mdesc/mdesc_findnodeprop.c \
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte $(SRC)/common/mdesc/mdesc_fini.c \
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte $(SRC)/common/mdesc/mdesc_getpropdata.c \
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte $(SRC)/common/mdesc/mdesc_getpropstr.c \
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte $(SRC)/common/mdesc/mdesc_getpropval.c \
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte $(SRC)/common/mdesc/mdesc_init_intern.c \
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte $(SRC)/common/mdesc/mdesc_nodecount.c \
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte $(SRC)/common/mdesc/mdesc_rootnode.c \
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte $(SRC)/common/mdesc/mdesc_scandag.c
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte$(OBJS_DIR)/%.o: $(SRC)/common/mdesc/%.c
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte $(COMPILE.c) -o $@ $<
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte $(CTFCONVERT_O)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteLIBS = $(DYNLIB)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteROOT_PLATFORM = $(USR_PLAT_DIR)/sun4v
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteDYNFLAGS_PLAT = /usr/platform/\$$PLATFORM/lib/picl/plugins
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteDYNFLAGS_SUN4V = /usr/platform/sun4v/lib/picl/plugins
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteDYNFLAGS_COM = /usr/lib/picl/plugins
ROOTLIBDIR = $(ROOT_PLAT_PLUGINDIR)
CLEANFILES= $(LINTOUT) $(LINTLIB)
CPPFLAGS += -I$(SRC)/common/mdesc
CPPFLAGS += -I$(SRC)/uts/common/sys
CPPFLAGS += -D_REENTRANT
CFLAGS += $(CCVERBOSE)
LDLIBS += -L$(SRC)/lib/libpicl/$(MACH) -L$(SRC)/lib/libpicltree/$(MACH)
LDLIBS += -L$(ROOT)/usr/lib/picl/plugins -L$(ROOT)/usr/lib/sparcv9
DYNFLAGS += -R$(DYNFLAGS_COM)
LDLIBS += -lc -lpicltree -ldevinfo -lpicldevtree -lcfgadm -lnvpair
LINTFLAGS += -erroff=E_BAD_PTR_CAST_ALIGN -v
.KEEP_STATE:
all: $(LIBS) $(LIBLINKS)
install: all $(ROOTLIBDIR) $(ROOTLIBS) $(ROOTLINKS)
$(LIBLINKS): FRC
$(RM) $(LIBLINKS); $(SYMLINK) $(DYNLIB) $(LIBLINKS)
# include library targets
include $(SRC)/cmd/picl/plugins/Makefile.targ
include $(SRC)/lib/Makefile.targ
lint :
$(LINT.c) $(LINT_SRC)
FRC: