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]
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
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
48 $(LINTS_DIR
)/%.ln
: $(SRC
)/sun4v
/piclsbl
/%.c
49 @
($(LHEAD
) $(LINT.c
) $< $(LTAIL
))
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
78 all: $(LIBS
) $(LIBLINKS
)
80 install: all $(ROOTLIBDIR
) $(ROOTLIBS
) $(ROOTLINKS
)
82 $(ROOTLIBDIR
)/$(LIBS
) : $(LIBS
)
83 $(RM
) -r
$@
; $(INS
) -s
-m
$(FILEMODE
) -f
$(@D
) $(LIBS
)
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