8322 nl: misleading-indentation
[unleashed/tickless.git] / usr / src / cmd / picl / plugins / sun4v / mdesc / Makefile
blobe2adc58af5cf35a68ad1b9582819037ccd3f6dac
2 # CDDL HEADER START
4 # The contents of this file are subject to the terms of the
5 # Common Development and Distribution License (the "License").
6 # You may not use this file except in compliance with the License.
8 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9 # or http://www.opensolaris.org/os/licensing.
10 # See the License for the specific language governing permissions
11 # and limitations under the License.
13 # When distributing Covered Code, include this CDDL HEADER in each
14 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15 # If applicable, add the following below this CDDL HEADER, with the
16 # fields enclosed by brackets "[]" replaced with your own identifying
17 # information: Portions Copyright [yyyy] [name of copyright owner]
19 # CDDL HEADER END
23 # Copyright 2006 Sun Microsystems, Inc. All rights reserved.
24 # Use is subject to license terms.
26 # ident "%Z%%M% %I% %E% SMI"
28 # cmd/picl/plugins/sun4v/mdesc/Makefile
30 LIBRARY= libmdescplugin.a
31 VERS= .1
33 OBJS_DIR= pics
35 OBJECTS= mdescplugin.o init.o dr.o \
36 cpu_prop_update.o disk_discovery.o \
37 mdesc_findname.o mdesc_findnodeprop.o \
38 mdesc_fini.o mdesc_getpropstr.o \
39 mdesc_getpropval.o mdesc_init_intern.o \
40 mdesc_nodecount.o mdesc_rootnode.o \
41 mdesc_scandag.o mdesc_getpropdata.o
43 # include library definitions
44 include $(SRC)/lib/Makefile.lib
45 include $(SRC)/Makefile.psm
47 include $(SRC)/cmd/picl/plugins/Makefile.com
49 SRCS= $(OBJECTS:%.o=%.c)
51 LINT_SRC= ./mdescplugin.c ./init.c ./dr.c \
52 ./cpu_prop_update.c ./disk_discovery.c \
53 $(SRC)/common/mdesc/mdesc_findname.c \
54 $(SRC)/common/mdesc/mdesc_findnodeprop.c \
55 $(SRC)/common/mdesc/mdesc_fini.c \
56 $(SRC)/common/mdesc/mdesc_getpropdata.c \
57 $(SRC)/common/mdesc/mdesc_getpropstr.c \
58 $(SRC)/common/mdesc/mdesc_getpropval.c \
59 $(SRC)/common/mdesc/mdesc_init_intern.c \
60 $(SRC)/common/mdesc/mdesc_nodecount.c \
61 $(SRC)/common/mdesc/mdesc_rootnode.c \
62 $(SRC)/common/mdesc/mdesc_scandag.c
64 $(OBJS_DIR)/%.o: $(SRC)/common/mdesc/%.c
65 $(COMPILE.c) -o $@ $<
66 $(CTFCONVERT_O)
68 LIBS = $(DYNLIB)
70 ROOT_PLATFORM = $(USR_PLAT_DIR)/sun4v
71 DYNFLAGS_PLAT = /usr/platform/\$$PLATFORM/lib/picl/plugins
72 DYNFLAGS_SUN4V = /usr/platform/sun4v/lib/picl/plugins
73 DYNFLAGS_COM = /usr/lib/picl/plugins
75 ROOTLIBDIR = $(ROOT_PLAT_PLUGINDIR)
77 CLEANFILES= $(LINTOUT) $(LINTLIB)
79 CPPFLAGS += -I$(SRC)/common/mdesc
80 CPPFLAGS += -I$(SRC)/uts/common/sys
81 CPPFLAGS += -D_REENTRANT
83 CFLAGS += $(CCVERBOSE)
84 LDLIBS += -L$(SRC)/lib/libpicl/$(MACH) -L$(SRC)/lib/libpicltree/$(MACH)
85 LDLIBS += -L$(ROOT)/usr/lib/picl/plugins -L$(ROOT)/usr/lib/sparcv9
86 DYNFLAGS += -R$(DYNFLAGS_COM)
88 LDLIBS += -lc -lpicltree -ldevinfo -lpicldevtree -lcfgadm -lnvpair
90 LINTFLAGS += -erroff=E_BAD_PTR_CAST_ALIGN -v
92 .KEEP_STATE:
94 all: $(LIBS) $(LIBLINKS)
96 install: all $(ROOTLIBDIR) $(ROOTLIBS) $(ROOTLINKS)
98 $(LIBLINKS): FRC
99 $(RM) $(LIBLINKS); $(SYMLINK) $(DYNLIB) $(LIBLINKS)
101 # include library targets
102 include $(SRC)/cmd/picl/plugins/Makefile.targ
103 include $(SRC)/lib/Makefile.targ
105 lint :
106 $(LINT.c) $(LINT_SRC)
108 FRC: