4 # The contents of this file are subject to the terms of the
5 # Common Development and Distribution License, Version 1.0 only
6 # (the "License"). You may not use this file except in compliance
9 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
10 # or http://www.opensolaris.org/os/licensing.
11 # See the License for the specific language governing permissions
12 # and limitations under the License.
14 # When distributing Covered Code, include this CDDL HEADER in each
15 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
16 # If applicable, add the following below this CDDL HEADER, with the
17 # fields enclosed by brackets "[]" replaced with your own identifying
18 # information: Portions Copyright [yyyy] [name of copyright owner]
24 # Copyright 2004 Sun Microsystems, Inc. All rights reserved.
25 # Use is subject to license terms.
27 # Copyright 2015 RackTop Systems.
30 LIBRARY
= libpicldevtree.a
33 OBJECTS
= picldevtree.o
35 # include library definitions
36 include $(SRC
)/lib
/Makefile.lib
38 include $(SRC
)/cmd
/picl
/plugins
/Makefile.com
40 SRCS
= $(OBJECTS
:%.o
=%.c
)
44 ROOTLIBDIR
= $(USR_LIB_PLUGINDIR
)
46 ROOTLIB
= $(ROOT
)/usr
/lib
48 CLOBBERFILES
+= $(LIBLINKS
)
50 CPPFLAGS
+= -I
$(SRC
)/lib
/libsysevent
-I
$(SRC
)/uts
/common
52 CFLAGS
+= $(C_PICFLAGS
)
53 LDLIBS
+= -L
$(SRC
)/lib
/libsysevent
-L
$(SRC
)/lib
/libpicltree
/$(MACH
)
54 LDLIBS
+= -lc
-lkstat
-ldevinfo
-lpicltree
-lnvpair
55 LDLIBS
+= -L..
/piclevent
-L
$(ROOT
)/usr
/lib
/picl
/plugins
-lpiclevent
56 LDLIBS
+= -R
/usr
/platform
/\
$$PLATFORM/lib
/picl
/plugins
57 LDLIBS
+= -R
/usr
/platform
/sun4u
/lib
/picl
/plugins
58 LDLIBS
+= -R
/usr
/lib
/picl
/plugins
65 POFILE
= picldevtree.po
68 install := TARGET
= install
69 clean := TARGET
= clean
70 clobber := TARGET
= clobber
73 all: $(LIBS
) $(LIBLINKS
)
75 install: $(ROOTLIBDIR
) all $(ROOTLIBS
) $(ROOTLINKS
)
77 _msg
: $(MSGDOMAIN
) $(POFILE
)
78 $(RM
) $(MSGDOMAIN
)/$(POFILE
)
79 $(CP
) $(POFILE
) $(MSGDOMAIN
)
86 $(RM
) $@
; $(SYMLINK
) $(DYNLIB
) $@
88 # include library targets
89 include $(SRC
)/cmd
/picl
/plugins
/Makefile.targ
90 include $(SRC
)/lib
/Makefile.targ
93 $(LINK.c
) -o
$@
$(GSHARED
) -h
$@
$< $(LDLIBS
)
99 @cd
$@
; pwd
; $(MAKE
) $(TARGET
)