8322 nl: misleading-indentation
[unleashed/tickless.git] / usr / src / cmd / picl / plugins / sun4u / grover / envd / Makefile
blob6002d0c4d94c11e70678293c3c7aeb4d39f04f96
2 # CDDL HEADER START
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.
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.
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]
19 # CDDL HEADER END
22 # Copyright 2009 Sun Microsystems, Inc. All rights reserved.
23 # Use is subject to license terms.
26 include $(SRC)/Makefile.psm
28 LIBRARY= libpiclenvd.a
29 VERS= .1
31 OBJECTS= piclenvd.o piclenvsetup.o
33 # include library definitions
34 include $(SRC)/lib/Makefile.lib
36 ROOT_PLATFORM = $(USR_PLAT_DIR)/SUNW,Sun-Blade-100
38 include $(SRC)/cmd/picl/plugins/Makefile.com
40 CPPFLAGS += -D_REENTRANT
41 CPPFLAGS += -I$(SRC)/uts/sun4u/ -I$(SRC)/uts/common/
43 SRCS= $(OBJECTS:%.o=%.c)
45 LIBS = $(DYNLIB)
47 ROOTLIBDIR = $(ROOT_PLAT_PLUGINDIR)
49 CONF= envmodel.conf
50 ROOTCONF= $(CONF:%=$(ROOTLIBDIR)/%)
51 $(ROOTCONF) := FILEMODE = 0644
52 INFOS= envmodel.info
54 LINTSRC = $(LINTLIB:%.ln=%)
55 ROOTLINTDIR = $(ROOTLIBDIR)
56 ROOTLINT = $(LINTSRC:%=$(ROOTLINTDIR)/%)
58 CLEANFILES= $(LINTOUT) $(LINTLIB)
60 CFLAGS += $(CCVERBOSE)
61 CPPFLAGS += -I$(SRC)/cmd/picl/plugins/lib/picld_pluginutil
62 DYNFLAGS += -R/usr/platform/\$$PLATFORM/lib/picl/plugins:/usr/platform/sun4u/lib/picl/plugins:/usr/lib/picl/plugins
63 LDLIBS += -L$(SRC)/lib/libpicltree/$(MACH)
64 LDLIBS += -L$(SRC)/cmd/picl/plugins/common/devtree
65 LDLIBS += -L$(SRC)/cmd/picl/plugins/lib/picld_pluginutil/$(MACH)
66 LDLIBS += -L$(ROOT)/usr/lib/picl/plugins -lpicldevtree -lpicltree
67 LDLIBS += -lpicld_pluginutil -lc
69 .KEEP_STATE:
71 SUBDIRS=
73 POFILE = piclenvd_grover.po
74 POFILES = $(SRCS:%.c=%.po)
76 all := TARGET= all
77 install := TARGET= install
78 clean := TARGET= clean
79 clobber := TARGET= clobber
80 lint := TARGET= lint
81 _msg := TARGET= _msg
83 all: $(LIBS) $(LIBLINKS)
85 install: $(ROOTLIBDIR) all $(ROOTLIBS) $(ROOTLINKS) $(ROOTCONF)
87 $(CONF): $(INFOS)
88 $(RM) $@
89 $(CPP) envmodel.info > $@
91 $(POFILE): $(POFILES)
92 $(CAT) $(POFILES) > $(POFILE)
94 _msg: $(MSGDOMAIN) $(POFILE)
95 $(RM) $(MSGDOMAIN)/$(POFILE)
96 $(CP) $(POFILE) $(MSGDOMAIN)/$(POFILE)
98 $(MSGDOMAIN):
99 $(INS.dir)
101 $(LIBLINKS): FRC
102 $(RM) $@; $(SYMLINK) $(DYNLIB) $@
104 # include library targets
105 include $(SRC)/lib/Makefile.targ
106 include $(SRC)/cmd/picl/plugins/Makefile.targ
108 $(ROOTLINTDIR)/%: ../%
109 $(INS.file)
111 lint :
112 $(LINT.c) $(SRCS)
114 $(SUBDIRS): FRC
115 @cd $@; pwd; $(MAKE) $(TARGET)
117 FRC: