8322 nl: misleading-indentation
[unleashed/tickless.git] / usr / src / cmd / picl / plugins / sun4v / piclsbl / Makefile
blob92077496f7d098114f38701d240cdaba3f234fe9
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
22 # Copyright 2008 Sun Microsystems, Inc. All rights reserved.
23 # Use is subject to license terms.
25 # ident "%Z%%M% %I% %E% SMI"
27 # cmd/picl/plugins/sun4v/piclsbl/Makefile
29 LIBRARY= libpiclsbl.a
30 VERS= .1
32 OBJECTS= piclsbl.o
34 # include library definitions
35 include $(SRC)/lib/Makefile.lib
36 include $(SRC)/Makefile.psm
38 include $(SRC)/cmd/picl/plugins/Makefile.com
40 SRCS= $(OBJECTS:%.o=%.c)
42 LINT_SRC= $(LINTLIB:%.ln=%)
44 $(OBJS_DIR)/%.o: $(SRC)/sun4v/piclsbl/%.c
45 $(COMPILE.c) -o $@ $<
46 $(CTFCONVERT_O)
48 $(LINTS_DIR)/%.ln: $(SRC)/sun4v/piclsbl/%.c
49 @($(LHEAD) $(LINT.c) $< $(LTAIL))
52 LIBS = $(DYNLIB)
54 ROOT_PLATFORM = $(USR_PLAT_DIR)/sun4v
55 DYNFLAGS_PLAT = /usr/platform/\$$PLATFORM/lib/picl/plugins
56 DYNFLAGS_SUN4V = /usr/platform/sun4v/lib/picl/plugins
57 DYNFLAGS_COM = /usr/lib/picl/plugins
58 ROOTLIBDIR = $(ROOT_PLAT_PLUGINDIR)
60 CLEANFILES= $(LINTOUT) $(LINTLIB)
62 CPPFLAGS += -I$(SRC)/sun4v/piclsbl
63 CPPFLAGS += -I$(SRC)/uts/common/sys
64 CPPFLAGS += -I$(SRC)/lib/libpcp/common
65 CPPFLAGS += -D_REENTRANT
67 CFLAGS += $(CCVERBOSE)
68 LDLIBS += -L$(SRC)/lib/libpicl/$(MACH) -L$(SRC)/lib/libpicltree/$(MACH)
69 LDLIBS += -L$(ROOT)/usr/lib/picl/plugins
70 DYNFLAGS += -R$(DYNFLAGS_COM)
72 LDLIBS += -lc -lpicltree -lumem -lnvpair
74 LINTFLAGS += -erroff=E_BAD_PTR_CAST_ALIGN -v
76 .KEEP_STATE:
78 all: $(LIBS) $(LIBLINKS)
80 install: all $(ROOTLIBDIR) $(ROOTLIBS) $(ROOTLINKS)
82 $(ROOTLIBDIR)/$(LIBS) : $(LIBS)
83 $(RM) -r $@; $(INS) -s -m $(FILEMODE) -f $(@D) $(LIBS)
85 $(LIBLINKS): FRC
86 $(RM) -r $(LIBLINKS); $(SYMLINK) $(DYNLIB) $(LIBLINKS)
88 # include library targets
89 include $(SRC)/cmd/picl/plugins/Makefile.targ
90 include $(SRC)/lib/Makefile.targ
92 lint :
93 $(LINT.c) $(SRCS)
95 FRC: