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 $(OBJS_DIR
)/%.o
: $(SRC
)/sun4v
/piclsbl
/%.c
48 ROOT_PLATFORM
= $(USR_PLAT_DIR
)/sun4v
49 DYNFLAGS_PLAT
= /usr
/platform
/\
$$PLATFORM/lib
/picl
/plugins
50 DYNFLAGS_SUN4V
= /usr
/platform
/sun4v
/lib
/picl
/plugins
51 DYNFLAGS_COM
= /usr
/lib
/picl
/plugins
52 ROOTLIBDIR
= $(ROOT_PLAT_PLUGINDIR
)
54 CPPFLAGS
+= -I
$(SRC
)/sun4v
/piclsbl
55 CPPFLAGS
+= -I
$(SRC
)/uts
/common
/sys
56 CPPFLAGS
+= -I
$(SRC
)/lib
/libpcp
/common
58 LDLIBS
+= -L
$(SRC
)/lib
/libpicl
/$(MACH
) -L
$(SRC
)/lib
/libpicltree
/$(MACH
)
59 LDLIBS
+= -L
$(ROOT
)/usr
/lib
/picl
/plugins
60 DYNFLAGS
+= -R
$(DYNFLAGS_COM
)
62 LDLIBS
+= -lc
-lpicltree
-lumem
-lnvpair
67 all: $(LIBS
) $(LIBLINKS
)
69 install: all $(ROOTLIBDIR
) $(ROOTLIBS
) $(ROOTLINKS
)
71 $(ROOTLIBDIR
)/$(LIBS
) : $(LIBS
)
72 $(INS
) -m
$(FILEMODE
) $(LIBS
) $@
75 $(RM
) -r
$(LIBLINKS
); $(SYMLINK
) $(DYNLIB
) $(LIBLINKS
)
77 # include library targets
78 include $(SRC
)/cmd
/picl
/plugins
/Makefile.targ
79 include $(SRC
)/lib
/Makefile.targ