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 include $(SRC
)/Makefile.psm
28 LIBRARY
= libpiclmemcfg.a
33 # include library definitions
34 include $(SRC
)/lib
/Makefile.lib
36 ROOT_PLATFORM
= $(USR_PLAT_DIR
)/SUNW
,Sun-Blade-100
38 include $(SRC
)/cmd
/picl
/plugins
/Makefile.com
40 SRCS
= $(OBJECTS
:%.o
=%.c
)
44 ROOTLIBDIR
= $(ROOT_PLAT_PLUGINDIR
)
47 CPPFLAGS
+= -I
$(SRC
)/cmd
/picl
/plugins
/common
/memcfg
48 LDLIBS
+= -L
$(SRC
)/lib
/libpicltree
/$(MACH
)
49 LDLIBS
+= -L
$(SRC
)/cmd
/picl
/plugins
/common
/devtree
50 LDLIBS
+= -L
$(ROOT
)/usr
/lib
/picl
/plugins
51 LDLIBS
+= -lc
-lpicltree
-lpicldevtree
52 LDLIBS
+= -R
/usr
/platform
/\
$$PLATFORM/lib
/picl
/plugins
:/usr
/platform
/sun4u
/lib
/picl
/plugins
:/usr
/lib
/picl
/plugins
55 LINKED_PLATFORMS
= SUNW
,Serverblade1
57 LINKED_DIRS
= $(LINKED_PLATFORMS
:%=$(USR_PLAT_DIR
)/%)
58 LINKED_LIB_DIRS
= $(LINKED_PLATFORMS
:%=$(USR_PLAT_DIR
)/%/lib
)
59 LINKED_PICL_DIRS
= $(LINKED_PLATFORMS
:%=$(USR_PLAT_DIR
)/%/lib
/picl
)
60 LINKED_PLUGIN_DIRS
= $(LINKED_PLATFORMS
:%=$(USR_PLAT_DIR
)/%/lib
/picl
/plugins
)
62 LINKED_PLUGINS_DYNLIBS
= $(LINKED_PLUGIN_DIRS
:%=%/$(DYNLIB
))
63 LINKED_PLUGINS_LIBLINKS
= $(LINKED_PLUGIN_DIRS
:%=%/$(LIBLINKS
))
65 GROVER_DYNLIB_DIR
= ..
/..
/..
/..
/SUNW
,Sun-Blade-100
/lib
/picl
/plugins
67 PLATFORM
= SUNW
,Sun-Blade-100
74 install := TARGET
= install
75 clean := TARGET
= clean
76 clobber := TARGET
= clobber
81 all: $(LIBS
) $(LIBLINKS
)
83 install: $(ROOTLIBDIR
) all $(ROOTLIBS
) $(ROOTLINKS
) \
84 $(LINKED_PLUGIN_DIRS
) $(LINKED_PLUGINS_DYNLIBS
) \
85 $(LINKED_PLUGINS_LIBLINKS
)
87 _msg
: $(MSGDOMAIN
) $(POFILE
)
88 $(RM
) $(MSGDOMAIN
)/$(POFILE
)
89 $(CP
) $(POFILE
) $(MSGDOMAIN
)
95 $(RM
) $@
; $(SYMLINK
) $(DYNLIB
) $@
97 # Linked platforms directory hierarchy
100 $(LINKED_LIB_DIRS
): $(LINKED_DIRS
)
102 $(LINKED_PICL_DIRS
): $(LINKED_LIB_DIRS
)
104 $(LINKED_PLUGIN_DIRS
): $(LINKED_PICL_DIRS
)
107 # Linked platforms links
108 $(LINKED_PLUGINS_DYNLIBS
): $(LINKED_PLUGIN_DIRS
)
110 $(SYMLINK
) $(GROVER_DYNLIB_DIR
)/$(DYNLIB
) $@
112 $(LINKED_PLUGINS_LIBLINKS
): $(LINKED_PLUGIN_DIRS
)
114 $(SYMLINK
) $(GROVER_DYNLIB_DIR
)/$(DYNLIB
) $@
116 # include library targets
117 include $(SRC
)/cmd
/picl
/plugins
/Makefile.targ
118 include $(SRC
)/lib
/Makefile.targ
121 @cd
$@
; pwd
; $(MAKE
) $(TARGET
)