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]
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
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
/.
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
)
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
65 LDLIBS
+= -Wl
,-f
/opt
/SUNWSMS
/lib
/$(DYNLIBPSR
) # SMS before platform
66 LDLIBS
+= -Wl
,-f
/usr
/platform
/\
$$PLATFORM/lib
/$(DYNLIBPSR
)
75 install := TARGET
= install
76 clean := TARGET
= clean
77 clobber := TARGET
= clobber
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
)
95 $(XGETTEXT
) $(XGETFLAGS
) *.
[ch
]* */*.
[ch
]*
96 $(SED
) -e
'/^# msg/d' -e
'/^domain/d' messages.po
> $@
103 $(RM
) $@
; $(SYMLINK
) $(DYNLIB
) $@
106 $(CSTYLE
) *.
cc *.c
*.h
109 # include library targets
110 include $(SRC
)/cmd
/picl
/plugins
/Makefile.targ
111 include $(SRC
)/lib
/Makefile.targ
117 @cd
$@
; pwd
; $(MAKE
) $(TARGET
)