xref: /titanic_52/usr/src/lib/libfru/libfrupicltree/Makefile.com (revision 67e3a03ed4a2813074d36330f062ed6e593a4937)
1#
2# CDDL HEADER START
3#
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.
7#
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.
12#
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]
18#
19# CDDL HEADER END
20#
21#
22# Copyright 2006 Sun Microsystems, Inc.  All rights reserved.
23# Use is subject to license terms.
24#
25# ident	"%Z%%M%	%I%	%E% SMI"
26#
27
28LIBRARY=	libfrupicltree.a
29VERS=		.1
30
31OBJECTS=	frupicltree.o
32
33include $(SRC)/lib/Makefile.lib
34
35CLOBBERFILES += $(LIBLINKS)
36
37LIBS =		$(DYNLIB)
38
39# There should be a mapfile here
40MAPFILES =
41
42LINTFLAGS =	-mnux
43LINTFLAGS64 =	$(LINTFLAGS) -Xarch=$(MACH64:sparcv9=v9)
44LINTOUT=	lint.out
45LINTSRC =       $(LINTLIB:%.ln=%)
46ROOTLINTDIR =   $(ROOTLIBDIR)
47ROOTLINT =      $(LINTSRC:%=$(ROOTLINTDIR)/%)
48
49CLEANFILES=	$(LINTOUT)
50
51CPPFLAGS +=	-I.. \
52		-I$(SRC)/lib/libfru/include \
53		-I$(SRC)/cmd/picl/plugins/sun4u/frudata \
54		-I$(SRC)/lib/libpicl \
55		-I$(SRC)/lib/libfruutils \
56		-I$(SRC)/cmd/picl/plugins/inc
57CPPFLAGS += 	-D_REENTRANT
58CFLAGS +=	$(CCVERBOSE)
59
60$(LINTLIB) :=	LINTFLAGS = -nvx -I..
61$(LINTLIB) :=	LINTFLAGS64 = -nvx -Xarch=$(MACH64:sparcv9=v9) -I..
62
63XGETFLAGS += -a
64POFILE=	picl.po
65
66.KEEP_STATE:
67
68all : $(LIBS)
69	chmod 755 $(DYNLIB)
70
71lint :	lintcheck
72
73%.po:	../%.c
74	$(CP) $< $<.i
75	$(BUILD.po)
76
77_msg:	$(MSGDOMAIN) $(POFILE)
78	$(RM) $(MSGDOMAIN)/$(POFILE)
79	$(CP) $(POFILE) $(MSGDOMAIN)
80
81include $(SRC)/lib/Makefile.targ
82
83pics/%.o:	../%.c
84	$(COMPILE.c) -o $@ $<
85	$(POST_PROCESS_O)
86
87$(ROOTLINTDIR)/%: ../%
88	$(INS.file)
89