xref: /illumos-gate/usr/src/cmd/picl/plugins/sun4u/grover/envd/Makefile (revision 0ccfe5834c3b867c1b6c273cae02ec8922bc0fd2)
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 2009 Sun Microsystems, Inc.  All rights reserved.
23# Use is subject to license terms.
24#
25
26include	$(SRC)/Makefile.psm
27
28LIBRARY=	libpiclenvd.a
29VERS=		.1
30
31OBJECTS=	piclenvd.o piclenvsetup.o
32
33# include library definitions
34include $(SRC)/lib/Makefile.lib
35
36ROOT_PLATFORM = $(USR_PLAT_DIR)/SUNW,Sun-Blade-100
37
38include	$(SRC)/cmd/picl/plugins/Makefile.com
39
40CPPFLAGS +=	-D_REENTRANT
41CPPFLAGS +=	-I$(SRC)/uts/sun4u/ -I$(SRC)/uts/common/
42
43SRCS=		$(OBJECTS:%.o=%.c)
44
45LIBS =		$(DYNLIB)
46
47ROOTLIBDIR	= $(ROOT_PLAT_PLUGINDIR)
48
49CONF=           envmodel.conf
50ROOTCONF=       $(CONF:%=$(ROOTLIBDIR)/%)
51$(ROOTCONF)	:= FILEMODE = 0644
52INFOS=          envmodel.info
53
54CFLAGS +=	$(CCVERBOSE)
55CPPFLAGS +=     -I$(SRC)/cmd/picl/plugins/lib/picld_pluginutil
56DYNFLAGS +=	-R/usr/platform/\$$PLATFORM/lib/picl/plugins:/usr/platform/sun4u/lib/picl/plugins:/usr/lib/picl/plugins
57LDLIBS +=	-L$(SRC)/lib/libpicltree/$(MACH)
58LDLIBS +=	-L$(SRC)/cmd/picl/plugins/common/devtree
59LDLIBS +=       -L$(SRC)/cmd/picl/plugins/lib/picld_pluginutil/$(MACH)
60LDLIBS +=	-L$(ROOT)/usr/lib/picl/plugins -lpicltree
61LDLIBS +=	-lpicld_pluginutil -lc
62
63.KEEP_STATE:
64
65SUBDIRS=
66
67POFILE =	piclenvd_grover.po
68POFILES =	$(SRCS:%.c=%.po)
69
70all :=		TARGET= all
71install :=	TARGET= install
72clean :=	TARGET= clean
73clobber :=	TARGET= clobber
74_msg :=		TARGET= _msg
75
76all: $(LIBS) $(LIBLINKS)
77
78install:	$(ROOTLIBDIR) all $(ROOTLIBS) $(ROOTLINKS) $(ROOTCONF)
79
80$(CONF): $(INFOS)
81	$(RM) $@
82	$(CPP) envmodel.info > $@
83
84$(POFILE):	$(POFILES)
85	$(CAT) $(POFILES) > $(POFILE)
86
87_msg:	$(MSGDOMAIN) $(POFILE)
88	$(RM) $(MSGDOMAIN)/$(POFILE)
89	$(CP) $(POFILE) $(MSGDOMAIN)/$(POFILE)
90
91$(MSGDOMAIN):
92	$(INS.dir)
93
94$(LIBLINKS):	FRC
95	$(RM) $@; $(SYMLINK) $(DYNLIB) $@
96
97# include library targets
98include $(SRC)/lib/Makefile.targ
99include	$(SRC)/cmd/picl/plugins/Makefile.targ
100
101lint :
102
103$(SUBDIRS): FRC
104	@cd $@; pwd; $(MAKE) $(TARGET)
105
106FRC:
107