< prev index next >

src/utils/reorder/Makefile

Print this page
rev 59383 : [mq]: final
   1 #
   2 # Copyright (c) 2000, 2013, Oracle and/or its affiliates. All rights reserved.
   3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
   4 #
   5 # This code is free software; you can redistribute it and/or modify it
   6 # under the terms of the GNU General Public License version 2 only, as
   7 # published by the Free Software Foundation.  Oracle designates this
   8 # particular file as subject to the "Classpath" exception as provided
   9 # by Oracle in the LICENSE file that accompanied this code.
  10 #
  11 # This code is distributed in the hope that it will be useful, but WITHOUT
  12 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  13 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  14 # version 2 for more details (a copy is included in the LICENSE file that
  15 # accompanied this code).
  16 #
  17 # You should have received a copy of the GNU General Public License version
  18 # 2 along with this work; if not, write to the Free Software Foundation,
  19 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  20 #
  21 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  22 # or visit www.oracle.com if you need additional information or have any


  41 else
  42 SEP = /
  43 endif
  44 
  45 CLASSDIR = $(OUTDIR)/classes
  46 OBJDIR = $(OUTDIR)/$(ARCH)
  47 TESTS = Null Exit Hello Sleep IntToString \
  48         LoadToolkit LoadFrame LoadJFrame JHello
  49 TEST_CLASSES = $(TESTS:%=$(CLASSDIR)/%.class)
  50 SWINGSET2 = $(OUTPUTDIR)/demo/jfc/SwingSet2/SwingSet2.jar
  51 
  52 # Run java from the JRE image because using rt.jar requires a
  53 # larger list of classes, and these should appear in the list.
  54 #   FIXUP: adding rt.jar into bootclasspath?
  55 JRE_LIB = $(JRE_IMAGE_DIR)/lib
  56 BOOTPATH = -Xbootclasspath:$(JRE_LIB)/rt.jar:$(JRE_LIB)/charsets.jar
  57 JRE_JAVA = $(JRE_IMAGE_DIR)/bin/java
  58 
  59 JAVA_BIN = $(BINDIR)/java
  60 
  61 all : jars.reorder libs.reorder
  62 
  63 tools : $(OBJDIR) $(OBJDIR)/libmcount.so $(OBJDIR)/remove_mcount
  64 
  65 copy : jars.copy libs.copy
  66 
  67 clean : 
  68         $(RM) $(REORDER_JAR)
  69 
  70 clobber : clean
  71         $(RM) -r $(OUTDIR)
  72 
  73 
  74 jars.reorder :
  75         $(MAKE) JARFILE=rt.jar   reorder.jar
  76         $(MAKE) JARFILE=charsets.jar reorder.jar
  77 
  78 jars.copy:
  79         $(CP) $(OUTDIR)/reorder_rt_jar-$(PLATFORM)    reorder_rt_jar-$(PLATFORM)
  80         $(CP) $(OUTDIR)/reorder_charsets_jar-$(PLATFORM)  reorder_charsets_jar-$(PLATFORM)
  81 
  82 REORDER_JAR = $(OUTDIR)/reorder_$(subst .,_,$(JARFILE))-$(PLATFORM)
  83 reorder.jar : $(REORDER_JAR)
  84 
  85 libs.reorder :
  86 ifeq ($(PLATFORM), solaris)
  87         $(MAKE) LIBBLDDIR=java/zip        LIBTMPDIR=sun/java.util.zip/zip   reorder.lib
  88         $(MAKE) LIBBLDDIR=java/java       LIBTMPDIR=java/java.lang/java     reorder.lib
  89         $(MAKE) LIBBLDDIR=java/nio        LIBTMPDIR=java/java.nio/nio       reorder.lib
  90         $(MAKE) LIBBLDDIR=sun/font        LIBTMPDIR=sun/sun.awt.font/fontmanager reorder.lib
  91         $(MAKE) LIBBLDDIR=sun/jpeg        LIBTMPDIR=sun/sun.awt/jpeg        reorder.lib
  92         $(MAKE) LIBBLDDIR=java/verify     LIBTMPDIR=java/verify             reorder.lib
  93 endif
  94 
  95 libs.copy:
  96 ifeq ($(PLATFORM), solaris)
  97         $(CP) $(OUTDIR)/reorder_java_zip-$(ARCH) ../../java/zip/reorder-$(ARCH)
  98         $(CP) $(OUTDIR)/reorder_java_java-$(ARCH) ../../java/java/reorder-$(ARCH)
  99         $(CP) $(OUTDIR)/reorder_sun_font-$(ARCH) ../../sun/font/reorder-$(ARCH)
 100         $(CP) $(OUTDIR)/reorder_sun_jpeg-$(ARCH) ../../sun/jpeg/reorder-$(ARCH)
 101         $(CP) $(OUTDIR)/reorder_java_verify-$(ARCH) ../../java/verify/reorder-$(ARCH)
 102 endif
 103 
 104 REORDER_LIB = $(OUTDIR)/reorder_$(subst /,_,$(LIBBLDDIR))-$(ARCH)
 105 reorder.lib : $(OBJDIR) $(REORDER_LIB)
 106 
 107 
 108 # This target 'test_classes' also used by hotspot reordering.
 109 test_classes : $(TEST_CLASSES)
 110 
 111 # This target 'tool_classes' also used by hotspot reordering.
 112 tool_classes : $(CLASSDIR) $(CLASSDIR)/Combine.class $(CLASSDIR)/MaxTime.class
 113 
 114 $(REORDER_JAR) : $(CLASSDIR) test_classes tool_classes
 115         $(RM) $(REORDER_JAR)
 116 
 117         @$(ECHO) "# Ordered list of files to include in $(JARFILE)." > $(REORDER_JAR)
 118         @$(ECHO) "# This is a generated file - do not edit."        >> $(REORDER_JAR)
 119         @$(ECHO) "#"                                                >> $(REORDER_JAR)
 120 
 121         @# Run each of a set of tests, extract the classes required and
 122         @# append the new classes to the ClassList.


   1 #
   2 # Copyright (c) 2000, 2020, Oracle and/or its affiliates. All rights reserved.
   3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
   4 #
   5 # This code is free software; you can redistribute it and/or modify it
   6 # under the terms of the GNU General Public License version 2 only, as
   7 # published by the Free Software Foundation.  Oracle designates this
   8 # particular file as subject to the "Classpath" exception as provided
   9 # by Oracle in the LICENSE file that accompanied this code.
  10 #
  11 # This code is distributed in the hope that it will be useful, but WITHOUT
  12 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  13 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  14 # version 2 for more details (a copy is included in the LICENSE file that
  15 # accompanied this code).
  16 #
  17 # You should have received a copy of the GNU General Public License version
  18 # 2 along with this work; if not, write to the Free Software Foundation,
  19 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  20 #
  21 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  22 # or visit www.oracle.com if you need additional information or have any


  41 else
  42 SEP = /
  43 endif
  44 
  45 CLASSDIR = $(OUTDIR)/classes
  46 OBJDIR = $(OUTDIR)/$(ARCH)
  47 TESTS = Null Exit Hello Sleep IntToString \
  48         LoadToolkit LoadFrame LoadJFrame JHello
  49 TEST_CLASSES = $(TESTS:%=$(CLASSDIR)/%.class)
  50 SWINGSET2 = $(OUTPUTDIR)/demo/jfc/SwingSet2/SwingSet2.jar
  51 
  52 # Run java from the JRE image because using rt.jar requires a
  53 # larger list of classes, and these should appear in the list.
  54 #   FIXUP: adding rt.jar into bootclasspath?
  55 JRE_LIB = $(JRE_IMAGE_DIR)/lib
  56 BOOTPATH = -Xbootclasspath:$(JRE_LIB)/rt.jar:$(JRE_LIB)/charsets.jar
  57 JRE_JAVA = $(JRE_IMAGE_DIR)/bin/java
  58 
  59 JAVA_BIN = $(BINDIR)/java
  60 
  61 all : jars.reorder
  62 
  63 tools : $(OBJDIR) $(OBJDIR)/libmcount.so $(OBJDIR)/remove_mcount
  64 
  65 copy : jars.copy
  66 
  67 clean : 
  68         $(RM) $(REORDER_JAR)
  69 
  70 clobber : clean
  71         $(RM) -r $(OUTDIR)
  72 
  73 
  74 jars.reorder :
  75         $(MAKE) JARFILE=rt.jar   reorder.jar
  76         $(MAKE) JARFILE=charsets.jar reorder.jar
  77 
  78 jars.copy:
  79         $(CP) $(OUTDIR)/reorder_rt_jar-$(PLATFORM)    reorder_rt_jar-$(PLATFORM)
  80         $(CP) $(OUTDIR)/reorder_charsets_jar-$(PLATFORM)  reorder_charsets_jar-$(PLATFORM)
  81 
  82 REORDER_JAR = $(OUTDIR)/reorder_$(subst .,_,$(JARFILE))-$(PLATFORM)
  83 reorder.jar : $(REORDER_JAR)



















  84 
  85 REORDER_LIB = $(OUTDIR)/reorder_$(subst /,_,$(LIBBLDDIR))-$(ARCH)
  86 reorder.lib : $(OBJDIR) $(REORDER_LIB)
  87 
  88 
  89 # This target 'test_classes' also used by hotspot reordering.
  90 test_classes : $(TEST_CLASSES)
  91 
  92 # This target 'tool_classes' also used by hotspot reordering.
  93 tool_classes : $(CLASSDIR) $(CLASSDIR)/Combine.class $(CLASSDIR)/MaxTime.class
  94 
  95 $(REORDER_JAR) : $(CLASSDIR) test_classes tool_classes
  96         $(RM) $(REORDER_JAR)
  97 
  98         @$(ECHO) "# Ordered list of files to include in $(JARFILE)." > $(REORDER_JAR)
  99         @$(ECHO) "# This is a generated file - do not edit."        >> $(REORDER_JAR)
 100         @$(ECHO) "#"                                                >> $(REORDER_JAR)
 101 
 102         @# Run each of a set of tests, extract the classes required and
 103         @# append the new classes to the ClassList.


< prev index next >