Makefile revision 7c478bd95313f5f23a4c958a745db2134aa03244
0N/A#
0N/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, Version 1.0 only
0N/A# (the "License"). You may not use this file except in compliance
0N/A# with the License.
0N/A#
0N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
0N/A# or http://www.opensolaris.org/os/licensing.
1136N/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]
1136N/A#
0N/A# CDDL HEADER END
0N/A#
0N/A#
0N/A# ident "%Z%%M% %I% %E% SMI"
0N/A#
0N/A# Copyright 2005 Sun Microsystems, Inc. All rights reserved.
0N/A# Use is subject to license terms.
0N/A#
0N/A# cmd/picl/plugins/sun4v/mdesc/Makefile
0N/A#
0N/ALIBRARY= libmdescplugin.a
0N/AVERS= .1
1136N/A
1136N/AOBJS_DIR= pics
1136N/A
1136N/AOBJECTS= mdescplugin.o init.o \
1136N/A cpu_prop_update.o disk_discovery.o \
1136N/A mdesc_findname.o mdesc_findnodeprop.o \
1136N/A mdesc_fini.o mdesc_getpropstr.o \
1136N/A mdesc_getpropval.o mdesc_init_intern.o \
1136N/A mdesc_nodecount.o mdesc_rootnode.o \
1136N/A mdesc_scandag.o mdesc_getpropdata.o
1136N/A
1136N/A# include library definitions
1136N/Ainclude $(SRC)/lib/Makefile.lib
1136N/Ainclude $(SRC)/Makefile.psm
1136N/A
1136N/Ainclude $(SRC)/cmd/picl/plugins/Makefile.com
1136N/A
1136N/ASRCS= $(OBJECTS:%.o=%.c)
1136N/A
1136N/ALINT_SRC= ./mdescplugin.c ./init.c \
1136N/A ./cpu_prop_update.c ./disk_discovery.c \
1136N/A $(SRC)/common/mdesc/mdesc_findname.c \
1136N/A $(SRC)/common/mdesc/mdesc_findnodeprop.c \
1136N/A $(SRC)/common/mdesc/mdesc_fini.c \
1136N/A $(SRC)/common/mdesc/mdesc_getpropdata.c \
1136N/A $(SRC)/common/mdesc/mdesc_getpropstr.c \
1136N/A $(SRC)/common/mdesc/mdesc_getpropval.c \
1136N/A $(SRC)/common/mdesc/mdesc_init_intern.c \
1136N/A $(SRC)/common/mdesc/mdesc_nodecount.c \
1136N/A $(SRC)/common/mdesc/mdesc_rootnode.c \
1136N/A $(SRC)/common/mdesc/mdesc_scandag.c
1136N/A
0N/A$(OBJS_DIR)/%.o: $(SRC)/common/mdesc/%.c
0N/A $(COMPILE.c) -o $@ $<
0N/A $(CTFCONVERT_O)
0N/A
0N/ALIBS = $(DYNLIB)
0N/A
0N/AROOT_PLATFORM = $(USR_PLAT_DIR)/sun4v
0N/ADYNFLAGS_PLAT = /usr/platform/\$$PLATFORM/lib/picl/plugins
0N/ADYNFLAGS_SUN4V = /usr/platform/sun4v/lib/picl/plugins
1136N/ADYNFLAGS_COM = /usr/lib/picl/plugins
1136N/A
0N/AROOTLIBDIR = $(ROOT_PLAT_PLUGINDIR)
0N/A
1136N/ACLEANFILES= $(LINTOUT) $(LINTLIB)
1136N/A
1136N/ACPPFLAGS += -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 -lrt -lpicldevtree -lcfgadm -lnvpair
LINTFLAGS += -erroff=E_BAD_PTR_CAST_ALIGN -v
.KEEP_STATE:
SUBDIRS=
POFILE= mdescplugin.po
POFILE_RENAME= mdescplugin_sun4v.po
all := TARGET= all
install := TARGET= install
clean := TARGET= clean
clobber := TARGET= clobber
lint := TARGET= lint
_msg := TARGET= _msg
all: $(LIBS) $(LIBLINKS)
install: all $(ROOTLIBDIR) $(ROOTLIBS) $(ROOTLINKS)
_msg: $(MSGDOMAIN) $(POFILE)
$(RM) $(MSGDOMAIN)/$(POFILE)
$(CP) $(POFILE) $(MSGDOMAIN)/$(POFILE_RENAME)
$(MSGDOMAIN):
$(INS.dir)
$(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)
$(SUBDIRS): FRC
@cd $@; pwd; $(MAKE) $(TARGET)
FRC: