xref: /illumos-gate/usr/src/cmd/picl/plugins/sun4u/lw8/fruaccess/Makefile (revision 3cac7b0d73edf3f2674ad0f64d1fff3d2e59ae8c)
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
50CFLAGS +=	$(CCVERBOSE)
51CPPFLAGS +=	-I$(SRC)/uts/sun4u/lw8
52CPPFLAGS +=	-I$(SRC)/cmd/picl/plugins/sun4u/lib/fruaccess
53DYNFLAGS +=	-R/usr/platform/\$$PLATFORM/lib/picl/plugins:/usr/platform/sun4u/lib/picl/plugins:/usr/lib/picl/plugins
54LDLIBS +=	-L$(SRC)/lib/libptree/$(MACH)
55LDLIBS +=	-L$(ROOT)/usr/lib/picl/plugins
56LDLIBS +=	-lc -lpicltree
57
58.KEEP_STATE:
59
60SUBDIRS=
61
62all :=		TARGET= all
63install :=	TARGET= install
64clean :=	TARGET= clean
65clobber :=	TARGET= clobber
66_msg :=		TARGET= _msg
67
68POFILE= libfruaccess.po
69
70all: $(LIBS) $(LIBLINKS)
71
72install:	$(ROOTLIBDIR) all  $(ROOTLIBS) $(ROOTLINKS)
73
74_msg:	$(MSGDOMAIN) $(POFILE)
75	$(RM) $(MSGDOMAIN)/$(POFILE)
76	$(CP) $(POFILE) $(MSGDOMAIN)/lw8_$(POFILE)
77
78$(MSGDOMAIN):
79	$(INS.dir)
80
81$(LIBLINKS):    FRC
82	rm -f $(LIBLINKS); ln -s $(DYNLIB) $(LIBLINKS)
83
84# include library targets
85include	$(SRC)/cmd/picl/plugins/Makefile.targ
86include $(SRC)/lib/Makefile.targ
87
88lint :
89
90$(SUBDIRS): FRC
91	@cd $@; pwd; $(MAKE) $(TARGET)
92
93FRC:
94