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
51 CLOBBERFILES
+= $(LIBLINKS
)
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
63 LDLIBS
+= -Wl
,-f
/opt
/SUNWSMS
/lib
/$(DYNLIBPSR
) # SMS before platform
64 LDLIBS
+= -Wl
,-f
/usr
/platform
/\
$$PLATFORM/lib
/$(DYNLIBPSR
)
71 install := TARGET
= install
72 clean := TARGET
= clean
73 clobber := TARGET
= clobber
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
)
90 $(XGETTEXT
) $(XGETFLAGS
) *.
[ch
]* */*.
[ch
]*
91 $(SED
) -e
'/^# msg/d' -e
'/^domain/d' messages.po
> $@
98 $(RM
) $@
; $(SYMLINK
) $(DYNLIB
) $@
101 $(CSTYLE
) *.
cc *.c
*.h
104 # include library targets
105 include $(SRC
)/cmd
/picl
/plugins
/Makefile.targ
106 include $(SRC
)/lib
/Makefile.targ
109 @cd
$@
; pwd
; $(MAKE
) $(TARGET
)