xref: /titanic_41/usr/src/lib/libfru/libfrupicltree/Makefile.com (revision fd9cb95cbb2f626355a60efb9d02c5f0a33c10e6)
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, Version 1.0 only
6# (the "License").  You may not use this file except in compliance
7# with the License.
8#
9# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
10# or http://www.opensolaris.org/os/licensing.
11# See the License for the specific language governing permissions
12# and limitations under the License.
13#
14# When distributing Covered Code, include this CDDL HEADER in each
15# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
16# If applicable, add the following below this CDDL HEADER, with the
17# fields enclosed by brackets "[]" replaced with your own identifying
18# information: Portions Copyright [yyyy] [name of copyright owner]
19#
20# CDDL HEADER END
21#
22#
23# Copyright 2004 Sun Microsystems, Inc.  All rights reserved.
24# Use is subject to license terms.
25#
26# ident	"%Z%%M%	%I%	%E% SMI"
27#
28
29LIBRARY=	libfrupicltree.a
30VERS=		.1
31
32OBJECTS=	frupicltree.o
33
34include $(SRC)/lib/Makefile.lib
35
36SRCS=		$(OBJECTS:%.o=../%.c)
37CLOBBERFILES += $(LIBLINKS)
38
39LIBS =		$(DYNLIB)
40
41LINTFLAGS =	-mnux
42LINTFLAGS64 =	$(LINTFLAGS) -Xarch=$(MACH64:sparcv9=v9)
43LINTOUT=	lint.out
44LINTSRC =       $(LINTLIB:%.ln=%)
45ROOTLINTDIR =   $(ROOTLIBDIR)
46ROOTLINT =      $(LINTSRC:%=$(ROOTLINTDIR)/%)
47
48CLEANFILES=	$(LINTOUT)
49
50CPPFLAGS +=	-I.. \
51		-I$(SRC)/lib/libfru/include \
52		-I$(SRC)/cmd/picl/plugins/sun4u/frudata \
53		-I$(SRC)/lib/libpicl \
54		-I$(SRC)/lib/libfruutils \
55		-I$(SRC)/cmd/picl/plugins/inc
56CPPFLAGS += 	-D_REENTRANT
57CFLAGS +=	$(CCVERBOSE)
58
59$(LINTLIB) :=	LINTFLAGS = -nvx -I..
60$(LINTLIB) :=	LINTFLAGS64 = -nvx -Xarch=$(MACH64:sparcv9=v9) -I..
61
62XGETFLAGS += -a
63POFILE=	picl.po
64
65.KEEP_STATE:
66
67all : $(LIBS)
68	chmod 755 $(DYNLIB)
69
70lint :	lintcheck
71
72%.po:	../%.c
73	$(CP) $< $<.i
74	$(BUILD.po)
75
76_msg:	$(MSGDOMAIN) $(POFILE)
77	$(RM) $(MSGDOMAIN)/$(POFILE)
78	$(CP) $(POFILE) $(MSGDOMAIN)
79
80$(DYNLIB):	$(MAPFILE)
81
82$(MAPFILE):
83	@cd $(MAPDIR); $(MAKE) mapfile
84
85include $(SRC)/lib/Makefile.targ
86
87pics/%.o:	../%.c
88	$(COMPILE.c) -o $@ $<
89	$(POST_PROCESS_O)
90
91$(ROOTLINTDIR)/%: ../%
92	$(INS.file)
93