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