1 # |
1 # |
2 # Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved. |
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. |
3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 # |
4 # |
5 # This code is free software; you can redistribute it and/or modify it |
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 |
6 # under the terms of the GNU General Public License version 2 only, as |
7 # published by the Free Software Foundation. |
7 # published by the Free Software Foundation. |
93 @echo 'Manifest-Version: 1.0' > $(MANIFEST) |
93 @echo 'Manifest-Version: 1.0' > $(MANIFEST) |
94 @echo 'X-COMMENT: Main-Class will be added automatically by build' >> $(MANIFEST) |
94 @echo 'X-COMMENT: Main-Class will be added automatically by build' >> $(MANIFEST) |
95 @echo 'Main-Class: jdk.test.lib.jittester.Automatic' >> $(MANIFEST) |
95 @echo 'Main-Class: jdk.test.lib.jittester.Automatic' >> $(MANIFEST) |
96 |
96 |
97 compile_testlib: INIT |
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) |
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 |
99 |
100 COMPILE: INIT filelist compile_testlib |
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 |
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 |
102 |
103 filelist: $(SRC_FILES) |
103 filelist: $(SRC_FILES) |
104 @rm -f $@ |
104 @rm -f $@ |
105 @echo $(SRC_FILES) > $@ |
105 @echo $(SRC_FILES) > $@ |
106 @echo $(EXTRA_SRC_FILES) >> $@ |
106 @echo $(EXTRA_SRC_FILES) >> $@ |
107 |
107 |
108 INIT: $(DIST_DIR) |
108 INIT: $(DIST_DIR) |
109 $(shell if [ ! -d $(CLASSES_DIR) ]; then mkdir -p $(CLASSES_DIR); fi) |
109 $(shell if [ ! -d $(CLASSES_DIR) ]; then mkdir -p $(CLASSES_DIR); fi) |
110 |
110 |
111 install: clean_testbase testgroup testroot copytestlibrary JAR cleantmp |
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) |
112 $(JAVA) --add-exports=java.base/jdk.internal.org.objectweb.asm=ALL-UNNAMED -ea -jar $(DIST_JAR) $(APPLICATION_ARGS) |
113 |
113 |
114 clean_testbase: |
114 clean_testbase: |
115 @rm -rf $(TESTBASE_DIR) |
115 @rm -rf $(TESTBASE_DIR) |
116 |
116 |
117 cleantmp: |
117 cleantmp: |