xref: /titanic_44/usr/src/cmd/picl/plugins/sun4v/piclsbl/Makefile (revision e2529962e4cb04b49c12526895f0536d1d46daf6)
1*e2529962Sae112802#
2*e2529962Sae112802# CDDL HEADER START
3*e2529962Sae112802#
4*e2529962Sae112802# The contents of this file are subject to the terms of the
5*e2529962Sae112802# Common Development and Distribution License (the "License").
6*e2529962Sae112802# You may not use this file except in compliance with the License.
7*e2529962Sae112802#
8*e2529962Sae112802# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9*e2529962Sae112802# or http://www.opensolaris.org/os/licensing.
10*e2529962Sae112802# See the License for the specific language governing permissions
11*e2529962Sae112802# and limitations under the License.
12*e2529962Sae112802#
13*e2529962Sae112802# When distributing Covered Code, include this CDDL HEADER in each
14*e2529962Sae112802# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15*e2529962Sae112802# If applicable, add the following below this CDDL HEADER, with the
16*e2529962Sae112802# fields enclosed by brackets "[]" replaced with your own identifying
17*e2529962Sae112802# information: Portions Copyright [yyyy] [name of copyright owner]
18*e2529962Sae112802#
19*e2529962Sae112802# CDDL HEADER END
20*e2529962Sae112802#
21*e2529962Sae112802#
22*e2529962Sae112802# Copyright 2008 Sun Microsystems, Inc.  All rights reserved.
23*e2529962Sae112802# Use is subject to license terms.
24*e2529962Sae112802#
25*e2529962Sae112802# ident	"%Z%%M%	%I%	%E% SMI"
26*e2529962Sae112802#
27*e2529962Sae112802# cmd/picl/plugins/sun4v/piclsbl/Makefile
28*e2529962Sae112802
29*e2529962Sae112802LIBRARY=	libpiclsbl.a
30*e2529962Sae112802VERS=		.1
31*e2529962Sae112802
32*e2529962Sae112802OBJECTS=	piclsbl.o
33*e2529962Sae112802
34*e2529962Sae112802# include library definitions
35*e2529962Sae112802include $(SRC)/lib/Makefile.lib
36*e2529962Sae112802include $(SRC)/Makefile.psm
37*e2529962Sae112802
38*e2529962Sae112802include $(SRC)/cmd/picl/plugins/Makefile.com
39*e2529962Sae112802
40*e2529962Sae112802SRCS=		$(OBJECTS:%.o=%.c)
41*e2529962Sae112802
42*e2529962Sae112802LINT_SRC=	$(LINTLIB:%.ln=%)
43*e2529962Sae112802
44*e2529962Sae112802$(OBJS_DIR)/%.o:		$(SRC)/sun4v/piclsbl/%.c
45*e2529962Sae112802	$(COMPILE.c) -o $@ $<
46*e2529962Sae112802	$(CTFCONVERT_O)
47*e2529962Sae112802
48*e2529962Sae112802$(LINTS_DIR)/%.ln:              $(SRC)/sun4v/piclsbl/%.c
49*e2529962Sae112802	@($(LHEAD) $(LINT.c) $< $(LTAIL))
50*e2529962Sae112802
51*e2529962Sae112802
52*e2529962Sae112802LIBS =		$(DYNLIB)
53*e2529962Sae112802
54*e2529962Sae112802ROOT_PLATFORM =		$(USR_PLAT_DIR)/sun4v
55*e2529962Sae112802DYNFLAGS_PLAT =		/usr/platform/\$$PLATFORM/lib/picl/plugins
56*e2529962Sae112802DYNFLAGS_SUN4V =	/usr/platform/sun4v/lib/picl/plugins
57*e2529962Sae112802DYNFLAGS_COM =		/usr/lib/picl/plugins
58*e2529962Sae112802ROOTLIBDIR =		$(ROOT_PLAT_PLUGINDIR)
59*e2529962Sae112802
60*e2529962Sae112802CLEANFILES=	$(LINTOUT) $(LINTLIB)
61*e2529962Sae112802
62*e2529962Sae112802CPPFLAGS +=	-I$(SRC)/sun4v/piclsbl
63*e2529962Sae112802CPPFLAGS +=	-I$(SRC)/uts/common/sys
64*e2529962Sae112802CPPFLAGS +=	-I$(SRC)/lib/libpcp/common
65*e2529962Sae112802CPPFLAGS +=	-D_REENTRANT
66*e2529962Sae112802
67*e2529962Sae112802CFLAGS +=	$(CCVERBOSE)
68*e2529962Sae112802LDLIBS +=	-L$(SRC)/lib/libpicl/$(MACH) -L$(SRC)/lib/libpicltree/$(MACH)
69*e2529962Sae112802LDLIBS +=	-L$(ROOT)/usr/lib/picl/plugins
70*e2529962Sae112802DYNFLAGS +=	-R$(DYNFLAGS_COM)
71*e2529962Sae112802
72*e2529962Sae112802LDLIBS +=	-lc -lpicltree -lumem -lnvpair
73*e2529962Sae112802
74*e2529962Sae112802LINTFLAGS +=	-erroff=E_BAD_PTR_CAST_ALIGN -v
75*e2529962Sae112802
76*e2529962Sae112802.KEEP_STATE:
77*e2529962Sae112802
78*e2529962Sae112802all: $(LIBS) $(LIBLINKS)
79*e2529962Sae112802
80*e2529962Sae112802install:	all $(ROOTLIBDIR) $(ROOTLIBS) $(ROOTLINKS)
81*e2529962Sae112802
82*e2529962Sae112802$(ROOTLIBDIR)/$(LIBS) :	$(LIBS)
83*e2529962Sae112802	$(RM) -r $@; $(INS) -s -m $(FILEMODE) -f $(@D) $(LIBS)
84*e2529962Sae112802
85*e2529962Sae112802$(LIBLINKS):	FRC
86*e2529962Sae112802	$(RM) -r $(LIBLINKS); $(SYMLINK) $(DYNLIB) $(LIBLINKS)
87*e2529962Sae112802
88*e2529962Sae112802# include library targets
89*e2529962Sae112802include $(SRC)/cmd/picl/plugins/Makefile.targ
90*e2529962Sae112802include $(SRC)/lib/Makefile.targ
91*e2529962Sae112802
92*e2529962Sae112802lint :
93*e2529962Sae112802	$(LINT.c) $(SRCS)
94*e2529962Sae112802
95*e2529962Sae112802FRC:
96