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]
22 # Copyright 2009 Sun Microsystems, Inc. All rights reserved.
23 # Use is subject to license terms.
26 LIBRARY
= libpiclfrudata.a
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
)
44 ROOTLIBDIR
= $(ROOT_PLAT_PLUGINDIR
)
46 CLEANFILES
= $(LINTOUT
) $(LINTLIB
)
47 CLOBBERFILES
+= $(LIBLINKS
)
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
69 install := TARGET
= install
70 clean := TARGET
= clean
71 clobber := TARGET
= clobber
75 POFILE
= $(LIBRARY
:.a
=.po
)
78 all: $(LIBS
) $(LIBLINKS
) $(CONF
)
80 install: $(ROOTLIBDIR
) all $(ROOTLIBS
) $(ROOTLINKS
)
86 _msg
: $(MSGDOMAIN
) $(POFILE
)
87 $(RM
) $(MSGDOMAIN
)/$(POFILE
)
88 $(CP
) $(POFILE
) $(MSGDOMAIN
)
93 $(POFILE
): .WAIT
$(POFILES
)
95 $(CAT
) $(POFILES
) > $@
99 $(XGETTEXT
) $(XGETFLAGS
) *.
[ch
]* */*.
[ch
]*
100 $(SED
) -e
'/^# msg/d' -e
'/^domain/d' messages.po
> $@
104 $(RM
) $@
; $(SYMLINK
) $(DYNLIB
) $@
106 # include library targets
107 include $(SRC
)/cmd
/picl
/plugins
/Makefile.targ
108 include $(SRC
)/lib
/Makefile.targ
114 @cd
$@
; pwd
; $(MAKE
) $(TARGET
)