8322 nl: misleading-indentation
[unleashed/tickless.git] / usr / src / cmd / picl / plugins / sun4u / blade / fruaccess / Makefile
blobc75189a6e425893ed678ad53112787c5dc96878e
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
21 # Copyright 2009 Sun Microsystems, Inc. All rights reserved.
22 # Use is subject to license terms.
24 # cmd/picl/plugins/sun4u/blade/fruaccess/Makefile
26 LIBRARY= libfruaccess.a
27 VERS= .1
28 OBJECTS= fru_access.o crcutils.o crcmodel.o
30 # include library definitions
31 include $(SRC)/Makefile.psm
32 include $(SRC)/lib/Makefile.lib
34 ROOT_PLATFORM = $(USR_PLAT_DIR)/SUNW,Serverblade1
36 include $(SRC)/cmd/picl/plugins/Makefile.com
38 SRCS= fru_access.c ../../lib/fruaccess/crcutils.c \
39 ../../lib/fruaccess/crcmodel.c
41 SRCDIR= ../../lib/fruaccess/.
43 LIBS= $(DYNLIB)
45 ROOTLIBDIR = $(ROOT_PLATFORM)/lib
47 CONF = fru_container.conf
48 ROOTCONF= $(CONF:%=$(ROOTLIBDIR)/%)
49 $(ROOTCONF) := FILEMODE = 0644
52 CLEANFILES= $(LINTOUT) $(LINTLIB)
53 CLOBBERFILES += $(LIBLINKS)
54 CSTYLE = cstyle -p -P
55 HDRCHK = hdrchk
58 CPPFLAGS += -I$(SRC)/lib/libfru/include
59 CPPFLAGS += -I$(SRC)/lib/libfruutils/
60 CPPFLAGS += -I$(SRC)/cmd/picl/plugins/sun4u/lib/fruaccess
61 CFLAGS += $(CCVERBOSE) -DBIG_ENDIAN
62 LDLIBS += -L$(SRC)/lib/libfruutils/$(MACH)
63 LDLIBS += -lc -lpicltree -lfruutils
64 LDLIBS += -ldevinfo
65 LDLIBS += -Wl,-f/opt/SUNWSMS/lib/$(DYNLIBPSR) # SMS before platform
66 LDLIBS += -Wl,-f/usr/platform/\$$PLATFORM/lib/$(DYNLIBPSR)
69 .KEEP_STATE:
72 SUBDIRS=
74 all := TARGET= all
75 install := TARGET= install
76 clean := TARGET= clean
77 clobber := TARGET= clobber
78 lint := TARGET= lint
79 _msg := TARGET= _msg
81 LN = ln -s
83 POFILE= $(LIBRARY:.a=.po)
85 all: $(DYNLIB) $(LIBLINKS) $(CONF)
87 install: $(ROOTLIBDIR) all $(ROOTLIBS) $(ROOTLINKS) $(ROOTCONF)
89 _msg: $(MSGDOMAIN) $(POFILE)
90 $(RM) $(MSGDOMAIN)/$(POFILE)
91 $(CP) $(POFILE) $(MSGDOMAIN)
93 $(POFILE):
94 $(RM) $@ messages.po
95 $(XGETTEXT) $(XGETFLAGS) *.[ch]* */*.[ch]*
96 $(SED) -e '/^# msg/d' -e '/^domain/d' messages.po > $@
97 $(RM) messages.po
99 $(MSGDOMAIN):
100 $(INS.dir)
102 $(LIBLINKS): FRC
103 $(RM) $@; $(SYMLINK) $(DYNLIB) $@
105 check-style:
106 $(CSTYLE) *.cc *.c *.h
107 $(HDRCHK) *.h
109 # include library targets
110 include $(SRC)/cmd/picl/plugins/Makefile.targ
111 include $(SRC)/lib/Makefile.targ
113 lint :
114 $(LINT.c) -m $(SRCS)
116 $(SUBDIRS): FRC
117 @cd $@; pwd; $(MAKE) $(TARGET)
119 FRC: