8322 nl: misleading-indentation
[unleashed/tickless.git] / usr / src / cmd / picl / plugins / sun4u / envmon / Makefile
blob8d1f065dee23f09accdfdbcd01574c6fb15669b3
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.
25 # cmd/picl/plugins/sun4u/envmon/Makefile
27 include $(SRC)/Makefile.psm
29 LIBRARY= libpiclenvmon.a
30 VERS= .1
32 OBJECTS= piclenvmon.o
34 # include library definitions
35 include $(SRC)/lib/Makefile.lib
37 ROOT_PLATFORM = $(USR_PLAT_DIR)/sun4u
39 include $(SRC)/cmd/picl/plugins/Makefile.com
41 SRCS= $(OBJECTS:%.o=%.c)
43 LIBS = $(DYNLIB)
45 ROOTLIBDIR = $(ROOT_PLAT_PLUGINDIR)
47 LINTSRC = $(LINTLIB:%.ln=%)
48 ROOTLINTDIR = $(ROOTLIBDIR)
49 ROOTLINT = $(LINTSRC:%=$(ROOTLINTDIR)/%)
51 CLEANFILES= $(LINTOUT) $(LINTLIB)
53 CPPFLAGS += -I$(SRC)/uts/sun4u/ -I$(SRC)/uts/common/
54 CPPFLAGS += -I$(SRC)/cmd/picl/plugins/lib/picld_pluginutil
55 CPPFLAGS += -D_REENTRANT
56 CFLAGS += $(CCVERBOSE)
57 LINTFLAGS = -uxmn -I.. -I$(SRC)/lib/libpicl -I$(SRC)/lib/libpicltree
58 DYNFLAGS += -R/usr/platform/sun4u/lib/picl/plugins:/usr/lib/picl/plugins
59 LDLIBS += -L$(SRC)/cmd/picl/plugins/lib/picld_pluginutil/$(MACH)
60 LDLIBS += -L$(SRC)/lib/libpicltree/$(MACH)
61 LDLIBS += -L$(SRC)/cmd/picl/plugins/common/piclevent
62 LDLIBS += -L$(SRC)/cmd/picl/plugins/common/memcfg
63 LDLIBS += -L$(SRC)/cmd/picl/plugins/common/devtree
64 LDLIBS += -lnvpair -ldevinfo -lc
65 LDLIBS += -lpicltree -lpicld_pluginutil -lpiclevent -lpicldevtree
67 .KEEP_STATE:
69 SUBDIRS=
71 all := TARGET= all
72 install := TARGET= install
73 clean := TARGET= clean
74 clobber := TARGET= clobber
75 lint := TARGET= lint
76 _msg := TARGET= _msg
78 POFILE = piclenvmon_sun4u.po
79 POFILES = $(SRCS:%.c=%.po)
81 all: $(LIBS) $(LIBLINKS)
83 install: $(ROOTLIBDIR) all $(ROOTLIBS) $(ROOTLINKS)
85 $(POFILE): $(POFILES)
86 $(CAT) $(POFILES) > $(POFILE)
88 _msg: $(MSGDOMAIN) $(POFILE)
89 $(RM) $(MSGDOMAIN)/$(POFILE)
90 $(CP) $(POFILE) $(MSGDOMAIN)/$(POFILE)
92 $(MSGDOMAIN):
93 $(INS.dir)
96 $(LIBLINKS): FRC
97 $(RM) $@; $(SYMLINK) $(DYNLIB) $@
99 # include library targets
100 include $(SRC)/lib/Makefile.targ
101 include $(SRC)/cmd/picl/plugins/Makefile.targ
103 $(ROOTLINTDIR)/%: ../%
104 $(INS.file)
106 lint:
107 $(LINT.c) $(SRCS)
109 $(SUBDIRS): FRC
110 @cd $@; pwd; $(MAKE) $(TARGET)
112 FRC: