8322 nl: misleading-indentation
[unleashed/tickless.git] / usr / src / cmd / picl / plugins / sun4u / frudata / Makefile
blob988aa076114754684a0b8215b480eb166f69d8e1
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 LIBRARY= libpiclfrudata.a
27 VERS= .1
28 OBJECTS= fru_data.o
30 # include library definitions
31 include $(SRC)/Makefile.psm
32 include $(SRC)/lib/Makefile.lib
34 ROOT_PLATFORM = $(USR_PLAT_DIR)/sun4u
36 include $(SRC)/cmd/picl/plugins/Makefile.com
38 LIBLINKS= libpiclfrudata.so
40 SRCS= $(OBJECTS:%.o=%.c)
42 LIBS = $(DYNLIB)
44 ROOTLIBDIR = $(ROOT_PLAT_PLUGINDIR)
46 CLEANFILES= $(LINTOUT) $(LINTLIB)
47 CLOBBERFILES += $(LIBLINKS)
48 CSTYLE = cstyle -p -P
49 HDRCHK = hdrchk
52 CPPFLAGS += -I$(SRC)/lib/libfru/include -I../lib/fruaccess
53 CPPFLAGS += -I$(SRC)/cmd/picl/plugins/lib/picld_pluginutil
54 CPPFLAGS += -I$(SRC)/lib/libfruutils/
55 CFLAGS += $(CCVERBOSE)
56 LDLIBS += -L$(SRC)/cmd/picl/plugins/sun4u/lib/fruaccess
57 LDLIBS += -L$(SRC)/lib/libfruutils/$(MACH)
58 LDLIBS += -L$(SRC)/cmd/picl/plugins/common/frutree
59 LDLIBS += -L$(ROOT)/usr/lib/picl/plugins
60 LDLIBS += -lc -lnvpair -lfruutils
61 LDLIBS += -lpicltree -lpiclfrutree -lfruaccess -lpicld_pluginutil
62 LDLIBS += -R/usr/platform/\$$PLATFORM/lib/picl/plugins:/usr/platform/\$$PLATFORM/lib:/usr/platform/sun4u/lib/picl/plugins:/usr/lib/picl/plugins:/usr/platform/sun4u/lib
63 .KEEP_STATE:
66 SUBDIRS=
68 all := TARGET= all
69 install := TARGET= install
70 clean := TARGET= clean
71 clobber := TARGET= clobber
72 lint := TARGET= lint
73 _msg := TARGET= _msg
75 POFILE= $(LIBRARY:.a=.po)
76 POFILES= frudata.po
78 all: $(LIBS) $(LIBLINKS) $(CONF)
80 install: $(ROOTLIBDIR) all $(ROOTLIBS) $(ROOTLINKS)
82 check-style :
83 $(CSTYLE) *.c *.h
84 $(HDRCHK) *.h
86 _msg: $(MSGDOMAIN) $(POFILE)
87 $(RM) $(MSGDOMAIN)/$(POFILE)
88 $(CP) $(POFILE) $(MSGDOMAIN)
90 $(MSGDOMAIN):
91 $(INS.dir)
93 $(POFILE): .WAIT $(POFILES)
94 $(RM) $@
95 $(CAT) $(POFILES) > $@
97 $(POFILES):
98 $(RM) messages.po
99 $(XGETTEXT) $(XGETFLAGS) *.[ch]* */*.[ch]*
100 $(SED) -e '/^# msg/d' -e '/^domain/d' messages.po > $@
101 $(RM) messages.po
103 $(LIBLINKS): FRC
104 $(RM) $@; $(SYMLINK) $(DYNLIB) $@
106 # include library targets
107 include $(SRC)/cmd/picl/plugins/Makefile.targ
108 include $(SRC)/lib/Makefile.targ
110 lint :
111 $(LINT.c) $(SRCS)
113 $(SUBDIRS): FRC
114 @cd $@; pwd; $(MAKE) $(TARGET)
116 FRC: