< prev index next >

test/testlibrary/jittester/Makefile

Print this page


   1 #
   2 # Copyright (c) 2015, 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.
   8 #
   9 # This code is distributed in the hope that it will be useful, but WITHOUT
  10 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  11 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  12 # version 2 for more details (a copy is included in the LICENSE file that
  13 # accompanied this code).
  14 #
  15 # You should have received a copy of the GNU General Public License version
  16 # 2 along with this work; if not, write to the Free Software Foundation,
  17 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  18 #
  19 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  20 # or visit www.oracle.com if you need additional information or have any
  21 # questions.
  22 #


  78                         $(TESTLIBRARY_SRC_DIR)/OutputBuffer.java \
  79                         $(TESTLIBRARY_SRC_DIR)/Pair.java \
  80                         $(TESTLIBRARY_SRC_DIR)/Platform.java \
  81                         $(TESTLIBRARY_SRC_DIR)/ProcessTools.java \
  82                         $(TESTLIBRARY_SRC_DIR)/StreamPumper.java \
  83                         $(TESTLIBRARY_SRC_DIR)/Utils.java
  84 
  85 .PHONY: cleantmp
  86 
  87 all: JAR
  88 
  89 JAR: INIT COMPILE manifest
  90         $(JAR) cfm $(DIST_JAR) $(MANIFEST) -C $(CLASSES_DIR) .
  91 
  92 manifest:
  93         @echo 'Manifest-Version: 1.0' > $(MANIFEST)
  94         @echo 'X-COMMENT: Main-Class will be added automatically by build' >> $(MANIFEST)
  95         @echo 'Main-Class: jdk.test.lib.jittester.Automatic' >> $(MANIFEST)
  96 
  97 compile_testlib: INIT
  98         $(JAVAC) -XDignore.symbol.file -XaddExports:java.base/jdk.internal.misc=ALL-UNNAMED -XaddExports:java.base/jdk.internal.org.objectweb.asm=ALL-UNNAMED -Xlint $(TESTLIBRARY_SRC_FILES) -d $(CLASSES_DIR)
  99 
 100 COMPILE: INIT filelist compile_testlib
 101         $(JAVAC) -cp $(CLASSES_DIR) -XDignore.symbol.file -XaddExports:java.base/jdk.internal.misc=ALL-UNNAMED -XaddExports:java.base/jdk.internal.org.objectweb.asm=ALL-UNNAMED -Xlint -sourcepath $(SRC_DIR) -d $(CLASSES_DIR) @filelist
 102 
 103 filelist: $(SRC_FILES)
 104                 @rm -f $@
 105                 @echo $(SRC_FILES) > $@
 106                 @echo $(EXTRA_SRC_FILES) >> $@
 107 
 108 INIT: $(DIST_DIR)
 109         $(shell if [ ! -d $(CLASSES_DIR) ]; then mkdir -p $(CLASSES_DIR); fi)
 110 
 111 install: clean_testbase testgroup testroot copytestlibrary JAR cleantmp
 112         $(JAVA) -XaddExports:java.base/jdk.internal.org.objectweb.asm=ALL-UNNAMED -ea -jar $(DIST_JAR) $(APPLICATION_ARGS)
 113 
 114 clean_testbase:
 115         @rm -rf $(TESTBASE_DIR)
 116 
 117 cleantmp:
 118         @rm filelist
 119         @rm -rf $(CLASSES_DIR)
 120 
 121 copytestlibrary: $(DRIVER_DIR)
 122         @cp -r src/jdk/test/lib/jittester/jtreg/*.java $(DRIVER_DIR)
 123         @cp -r ../jdk $(TESTBASE_DIR)/
 124 
 125 testgroup: $(TESTBASE_DIR)
 126         @echo 'jittester_all = \\' > $(TESTGROUP_FILE)
 127         @echo ' /' >> $(TESTGROUP_FILE)
 128         @echo '' >> $(TESTGROUP_FILE)
 129         @echo 'main = \\' >> $(TESTGROUP_FILE)
 130         @echo ' Test_0.java' >> $(TESTGROUP_FILE)
 131 
 132 testroot: $(TESTBASE_DIR)
   1 #
   2 # Copyright (c) 2015, 2016, 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.
   8 #
   9 # This code is distributed in the hope that it will be useful, but WITHOUT
  10 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  11 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  12 # version 2 for more details (a copy is included in the LICENSE file that
  13 # accompanied this code).
  14 #
  15 # You should have received a copy of the GNU General Public License version
  16 # 2 along with this work; if not, write to the Free Software Foundation,
  17 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  18 #
  19 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  20 # or visit www.oracle.com if you need additional information or have any
  21 # questions.
  22 #


  78                         $(TESTLIBRARY_SRC_DIR)/OutputBuffer.java \
  79                         $(TESTLIBRARY_SRC_DIR)/Pair.java \
  80                         $(TESTLIBRARY_SRC_DIR)/Platform.java \
  81                         $(TESTLIBRARY_SRC_DIR)/ProcessTools.java \
  82                         $(TESTLIBRARY_SRC_DIR)/StreamPumper.java \
  83                         $(TESTLIBRARY_SRC_DIR)/Utils.java
  84 
  85 .PHONY: cleantmp
  86 
  87 all: JAR
  88 
  89 JAR: INIT COMPILE manifest
  90         $(JAR) cfm $(DIST_JAR) $(MANIFEST) -C $(CLASSES_DIR) .
  91 
  92 manifest:
  93         @echo 'Manifest-Version: 1.0' > $(MANIFEST)
  94         @echo 'X-COMMENT: Main-Class will be added automatically by build' >> $(MANIFEST)
  95         @echo 'Main-Class: jdk.test.lib.jittester.Automatic' >> $(MANIFEST)
  96 
  97 compile_testlib: INIT
  98         $(JAVAC) -XDignore.symbol.file --add-exports=java.base/jdk.internal.misc=ALL-UNNAMED --add-exports=java.base/jdk.internal.org.objectweb.asm=ALL-UNNAMED -Xlint $(TESTLIBRARY_SRC_FILES) -d $(CLASSES_DIR)
  99 
 100 COMPILE: INIT filelist compile_testlib
 101         $(JAVAC) -cp $(CLASSES_DIR) -XDignore.symbol.file --add-exports=java.base/jdk.internal.misc=ALL-UNNAMED --add-exports=java.base/jdk.internal.org.objectweb.asm=ALL-UNNAMED -Xlint -sourcepath $(SRC_DIR) -d $(CLASSES_DIR) @filelist
 102 
 103 filelist: $(SRC_FILES)
 104                 @rm -f $@
 105                 @echo $(SRC_FILES) > $@
 106                 @echo $(EXTRA_SRC_FILES) >> $@
 107 
 108 INIT: $(DIST_DIR)
 109         $(shell if [ ! -d $(CLASSES_DIR) ]; then mkdir -p $(CLASSES_DIR); fi)
 110 
 111 install: clean_testbase testgroup testroot copytestlibrary JAR cleantmp
 112         $(JAVA) --add-exports=java.base/jdk.internal.org.objectweb.asm=ALL-UNNAMED -ea -jar $(DIST_JAR) $(APPLICATION_ARGS)
 113 
 114 clean_testbase:
 115         @rm -rf $(TESTBASE_DIR)
 116 
 117 cleantmp:
 118         @rm filelist
 119         @rm -rf $(CLASSES_DIR)
 120 
 121 copytestlibrary: $(DRIVER_DIR)
 122         @cp -r src/jdk/test/lib/jittester/jtreg/*.java $(DRIVER_DIR)
 123         @cp -r ../jdk $(TESTBASE_DIR)/
 124 
 125 testgroup: $(TESTBASE_DIR)
 126         @echo 'jittester_all = \\' > $(TESTGROUP_FILE)
 127         @echo ' /' >> $(TESTGROUP_FILE)
 128         @echo '' >> $(TESTGROUP_FILE)
 129         @echo 'main = \\' >> $(TESTGROUP_FILE)
 130         @echo ' Test_0.java' >> $(TESTGROUP_FILE)
 131 
 132 testroot: $(TESTBASE_DIR)
< prev index next >