xref: /illumos-gate/usr/src/cmd/picl/plugins/sun4u/lw8/fruaccess/Makefile (revision eef4f27b270242808b43b4b23bd161df52839361)
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#
23# Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
24# Use is subject to license terms.
25#
26
27include $(SRC)/Makefile.psm
28
29LIBRARY=	libfruaccess.a
30VERS=		.1
31
32OBJECTS=	libfruaccess.o
33
34# include library definitions
35include $(SRC)/lib/Makefile.lib
36
37ROOT_PLATFORM = $(USR_PLAT_DIR)/SUNW,Netra-T12
38
39include	$(SRC)/cmd/picl/plugins/Makefile.com
40
41CPPFLAGS +=	-D_REENTRANT
42CPPFLAGS +=	-I$(SRC)/uts/sun4u/ -I$(SRC)/uts/common/
43
44SRCS=		$(OBJECTS:%.o=%.c)
45
46LIBS =		$(DYNLIB)
47
48ROOTLIBDIR	= $(ROOT_PLAT_LIBDIR)
49
50LINTSRC =	$(LINTLIB:%.ln=%)
51ROOTLINTDIR =	$(ROOTLIBDIR)
52ROOTLINT =	$(LINTSRC:%=$(ROOTLINTDIR)/%)
53
54CLEANFILES=	$(LINTOUT) $(LINTLIB)
55
56CFLAGS +=	$(CCVERBOSE)
57CPPFLAGS +=	-I$(SRC)/uts/sun4u/lw8
58CPPFLAGS +=	-I$(SRC)/cmd/picl/plugins/sun4u/lib/fruaccess
59DYNFLAGS +=	-R/usr/platform/\$$PLATFORM/lib/picl/plugins:/usr/platform/sun4u/lib/picl/plugins:/usr/lib/picl/plugins
60LDLIBS +=	-L$(SRC)/lib/libptree/$(MACH)
61LDLIBS +=	-L$(ROOT)/usr/lib/picl/plugins
62LDLIBS +=	-lc -lpicltree
63
64.KEEP_STATE:
65
66SUBDIRS=
67
68all :=		TARGET= all
69install :=	TARGET= install
70clean :=	TARGET= clean
71clobber :=	TARGET= clobber
72lint :=		TARGET= lint
73_msg :=		TARGET= _msg
74
75POFILE= libfruaccess.po
76
77all: $(LIBS) $(LIBLINKS)
78
79install:	$(ROOTLIBDIR) all  $(ROOTLIBS) $(ROOTLINKS)
80
81_msg:	$(MSGDOMAIN) $(POFILE)
82	$(RM) $(MSGDOMAIN)/$(POFILE)
83	$(CP) $(POFILE) $(MSGDOMAIN)/lw8_$(POFILE)
84
85$(MSGDOMAIN):
86	$(INS.dir)
87
88$(LIBLINKS):    FRC
89	rm -f $(LIBLINKS); ln -s $(DYNLIB) $(LIBLINKS)
90
91# include library targets
92include	$(SRC)/cmd/picl/plugins/Makefile.targ
93include $(SRC)/lib/Makefile.targ
94
95$(ROOTLINTDIR)/%: ../%
96	$(INS.file)
97
98lint :
99	$(LINT.c) $(SRCS)
100
101$(SUBDIRS): FRC
102	@cd $@; pwd; $(MAKE) $(TARGET)
103
104FRC:
105