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]
23 # Copyright 2004 Sun Microsystems, Inc. All rights reserved.
24 # Use is subject to license terms.
26 # ident "%Z%%M% %I% %E% SMI"
29 LIBRARY
= libpiclfrutree.a
32 OBJECTS
= piclfrutree.o
34 include $(SRC
)/Makefile.psm
36 # include library definitions
37 include $(SRC
)/lib
/Makefile.lib
39 include $(SRC
)/cmd
/picl
/plugins
/Makefile.com
41 SRCS
= $(OBJECTS
:%.o
=%.c
)
45 ROOT_PLATFORM
= $(USR_PLAT_DIR
)/SUNW
,Sun-Fire-280R
47 ROOTLIBDIR
= $(ROOT_PLAT_PLUGINDIR
)
49 CONF
= piclfrutree.conf
50 ROOTCONF
= $(CONF
:%=$(ROOTLIBDIR
)/%)
51 $(ROOTCONF
) := FILEMODE
= 0644
52 INFOS
= $(CONF
:%.conf
=%.
info)
54 CLEANFILES
= $(LINTOUT
) $(LINTLIB
)
55 CLOBBERFILES
+= $(LIBLINKS
)
57 CPPFLAGS
+= -I
$(SRC
)/lib
/libdevfsevent
-I
$(SRC
)/uts
/common
58 CPPFLAGS
+= -D_REENTRANT
60 CFLAGS
+= $(CCVERBOSE
)
61 DEVTREE_SRC_DIR
= $(SRC
)/cmd
/picl
/plugins
/common
/devtree
62 LDLIBS
+= -L
$(DEVTREE_SRC_DIR
)
63 LDLIBS
+= -L
$(ROOT
)/usr
/lib
/picl
/plugins
64 LDLIBS
+= -L
$(SRC
)/lib
/libptree
/$(MACH
)
65 LDLIBS
+= -lc
-lpicltree
-lpicldevtree
66 DYNFLAGS
+= -R
/usr
/platform
/\
$$PLATFORM/lib
/picl
/plugins
:/usr
/platform
/sun4u
/lib
/picl
/plugins
:/usr
/lib
/picl
/plugins
67 LINTFLAGS
+= -L
$(SRC
)/lib
/libptree
/$(MACH
) -lpicltree
73 POFILE
= piclfrutree.po
74 POFILE_RENAME
= piclfrutree_lneck.po
77 install := TARGET
= install
78 clean := TARGET
= clean
79 clobber := TARGET
= clobber
83 all: $(LIBS
) $(LIBLINKS
) $(CONF
)
85 install: all $(ROOTLIBDIR
) $(ROOTLIBS
) $(ROOTLINKS
) $(ROOTCONF
)
87 _msg
: $(MSGDOMAIN
) $(POFILE
)
88 $(RM
) $(MSGDOMAIN
)/$(POFILE
)
89 $(CP
) $(POFILE
) $(MSGDOMAIN
)/$(POFILE_RENAME
)
95 $(RM
) $@
; $(SYMLINK
) $(DYNLIB
) $@
97 # include library targets
98 include $(SRC
)/cmd
/picl
/plugins
/Makefile.targ
99 include $(SRC
)/lib
/Makefile.targ
105 @cd
$@
; pwd
; $(MAKE
) $(TARGET
)
109 $(CPP
) piclfrutree.
info >$@