dmake: do not set MAKEFLAGS=k
[unleashed/tickless.git] / usr / src / cmd / picl / plugins / sun4u / blade / fruaccess / Makefile
blob9ce87087c70c82b455690373f297925af76cb6fb
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
51 CLOBBERFILES += $(LIBLINKS)
52 CSTYLE = cstyle -p -P
53 HDRCHK = hdrchk
56 CPPFLAGS += -I$(SRC)/lib/libfru/include
57 CPPFLAGS += -I$(SRC)/lib/libfruutils/
58 CPPFLAGS += -I$(SRC)/cmd/picl/plugins/sun4u/lib/fruaccess
59 CFLAGS += -DBIG_ENDIAN
60 LDLIBS += -L$(SRC)/lib/libfruutils/$(MACH)
61 LDLIBS += -lc -lpicltree -lfruutils
62 LDLIBS += -ldevinfo
63 LDLIBS += -Wl,-f/opt/SUNWSMS/lib/$(DYNLIBPSR) # SMS before platform
64 LDLIBS += -Wl,-f/usr/platform/\$$PLATFORM/lib/$(DYNLIBPSR)
66 .KEEP_STATE:
68 SUBDIRS=
70 all := TARGET= all
71 install := TARGET= install
72 clean := TARGET= clean
73 clobber := TARGET= clobber
74 _msg := TARGET= _msg
76 LN = ln -s
78 POFILE= $(LIBRARY:.a=.po)
80 all: $(DYNLIB) $(LIBLINKS) $(CONF)
82 install: $(ROOTLIBDIR) all $(ROOTLIBS) $(ROOTLINKS) $(ROOTCONF)
84 _msg: $(MSGDOMAIN) $(POFILE)
85 $(RM) $(MSGDOMAIN)/$(POFILE)
86 $(CP) $(POFILE) $(MSGDOMAIN)
88 $(POFILE):
89 $(RM) $@ messages.po
90 $(XGETTEXT) $(XGETFLAGS) *.[ch]* */*.[ch]*
91 $(SED) -e '/^# msg/d' -e '/^domain/d' messages.po > $@
92 $(RM) messages.po
94 $(MSGDOMAIN):
95 $(INS.dir)
97 $(LIBLINKS): FRC
98 $(RM) $@; $(SYMLINK) $(DYNLIB) $@
100 check-style:
101 $(CSTYLE) *.cc *.c *.h
102 $(HDRCHK) *.h
104 # include library targets
105 include $(SRC)/cmd/picl/plugins/Makefile.targ
106 include $(SRC)/lib/Makefile.targ
108 $(SUBDIRS): FRC
109 @cd $@; pwd; $(MAKE) $(TARGET)
111 FRC: