#
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
#
# under the terms of the GNU General Public License version 2 only, as
# published by the Free Software Foundation. Oracle designates this
# particular file as subject to the "Classpath" exception as provided
# by Oracle in the LICENSE file that accompanied this code.
#
# This code is distributed in the hope that it will be useful, but WITHOUT
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
# version 2 for more details (a copy is included in the LICENSE file that
# accompanied this code).
#
# You should have received a copy of the GNU General Public License version
# 2 along with this work; if not, write to the Free Software Foundation,
# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
#
# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
# or visit www.oracle.com if you need additional information or have any
# questions.
#
# This Makefile is intended to produce new reordering files for the
# reordering of jar files and shared libraries. This is not part of the
# standard build. The objects produced by this Makefile must be copied
# into their standard locations and checked in.
BUILDDIR = ../..
SEP = \\
else
SEP = /
# Run java from the JRE image because using rt.jar requires a
# larger list of classes, and these should appear in the list.
# FIXUP: adding rt.jar into bootclasspath?
clean :
$(RM) $(REORDER_JAR)
reorder.jar : $(REORDER_JAR)
# This target 'test_classes' also used by hotspot reordering.
test_classes : $(TEST_CLASSES)
# This target 'tool_classes' also used by hotspot reordering.
$(RM) $(REORDER_JAR)
@# Run each of a set of tests, extract the classes required and
@# append the new classes to the ClassList.
echo "# Test $$f" >> $(REORDER_JAR); \
$(SED) -n -e 's=\[Loaded \(.*\) from .*$(SEP)lib$(SEP)$(JARFILE)]=\1=p' | \
> $(REORDER_JAR)_tmp1; \
> $(REORDER_JAR)_tmp2; \
done
@# Run SwingSet2, extract the classes required and
@# append the new classes to the ClassList.
@$(ECHO) ""
@$(ECHO) ""
@$(ECHO) "When SwingSet2 has finished drawing, " \
"you may terminate it (with your mouse)."
@$(ECHO) "Otherwise, it should be automatically terminated in 2 minutes."
@$(ECHO) ""
@$(ECHO) ""
> $(REORDER_JAR)_tmp2
$(SED) -n -e 's=\[Loaded \(.*\) from .*$(SEP)lib$(SEP)$(JARFILE)]=\1=p' \
< $(REORDER_JAR)_tmp2 | \
$(CLASSDIR) :
$(OBJDIR) :
$(COMPILE.c) $(CC_OBJECT_OUTPUT_FLAG)$@ $^
# This library 'libmcount.so' also used by hotspot reordering.
# This library 'libmcount.so' also used by hotspot reordering.
# Reorder libraries.
# + Delete all of the library's object files, and recompile them for profiling.
# + Run the test sequence using libmcount to produce the mapfile.
# + Delete all of the library's object files, and recompile them normally.
@# On Solaris-i586 we need to remove the symbol _mcount from the command
$(RM) $(REORDER_LIB)
@# Run each of a set of tests, extract the classes required and
@# append the new classes to the ClassList.
$(SETENV) \
> $(REORDER_LIB)_tmp3; \
done
@# Run SwingSet2, extract the classes required and
@# append the new classes to the ClassList.
@$(ECHO) ""
@$(ECHO) ""
@$(ECHO) "When SwingSet2 has finished drawing, " \
"you may terminate it (with your mouse)."
@$(ECHO) "Otherwise, it should be automatically terminated in 2 minutes."
@$(ECHO) ""
@$(ECHO) ""
$(SETENV) \
> $(REORDER_LIB)_tmp3