author | vlivanov |
Thu, 18 Jan 2018 02:25:18 +0300 | |
changeset 48596 | 860326263d1f |
parent 40614 | b5d80754b40e |
permissions | -rw-r--r-- |
32562
b4ed30cd962e
8136378: Build test libs using properly integrated makefile
ihse
parents:
diff
changeset
|
1 |
# |
40614
b5d80754b40e
8157957: ClassNotFoundException: jdk.test.lib.JDKToolFinder
ctornqvi
parents:
36726
diff
changeset
|
2 |
# Copyright (c) 2015, 2016, Oracle and/or its affiliates. All rights reserved. |
32562
b4ed30cd962e
8136378: Build test libs using properly integrated makefile
ihse
parents:
diff
changeset
|
3 |
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
b4ed30cd962e
8136378: Build test libs using properly integrated makefile
ihse
parents:
diff
changeset
|
4 |
# |
b4ed30cd962e
8136378: Build test libs using properly integrated makefile
ihse
parents:
diff
changeset
|
5 |
# This code is free software; you can redistribute it and/or modify it |
b4ed30cd962e
8136378: Build test libs using properly integrated makefile
ihse
parents:
diff
changeset
|
6 |
# under the terms of the GNU General Public License version 2 only, as |
b4ed30cd962e
8136378: Build test libs using properly integrated makefile
ihse
parents:
diff
changeset
|
7 |
# published by the Free Software Foundation. Oracle designates this |
b4ed30cd962e
8136378: Build test libs using properly integrated makefile
ihse
parents:
diff
changeset
|
8 |
# particular file as subject to the "Classpath" exception as provided |
b4ed30cd962e
8136378: Build test libs using properly integrated makefile
ihse
parents:
diff
changeset
|
9 |
# by Oracle in the LICENSE file that accompanied this code. |
b4ed30cd962e
8136378: Build test libs using properly integrated makefile
ihse
parents:
diff
changeset
|
10 |
# |
b4ed30cd962e
8136378: Build test libs using properly integrated makefile
ihse
parents:
diff
changeset
|
11 |
# This code is distributed in the hope that it will be useful, but WITHOUT |
b4ed30cd962e
8136378: Build test libs using properly integrated makefile
ihse
parents:
diff
changeset
|
12 |
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
b4ed30cd962e
8136378: Build test libs using properly integrated makefile
ihse
parents:
diff
changeset
|
13 |
# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
b4ed30cd962e
8136378: Build test libs using properly integrated makefile
ihse
parents:
diff
changeset
|
14 |
# version 2 for more details (a copy is included in the LICENSE file that |
b4ed30cd962e
8136378: Build test libs using properly integrated makefile
ihse
parents:
diff
changeset
|
15 |
# accompanied this code). |
b4ed30cd962e
8136378: Build test libs using properly integrated makefile
ihse
parents:
diff
changeset
|
16 |
# |
b4ed30cd962e
8136378: Build test libs using properly integrated makefile
ihse
parents:
diff
changeset
|
17 |
# You should have received a copy of the GNU General Public License version |
b4ed30cd962e
8136378: Build test libs using properly integrated makefile
ihse
parents:
diff
changeset
|
18 |
# 2 along with this work; if not, write to the Free Software Foundation, |
b4ed30cd962e
8136378: Build test libs using properly integrated makefile
ihse
parents:
diff
changeset
|
19 |
# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. |
b4ed30cd962e
8136378: Build test libs using properly integrated makefile
ihse
parents:
diff
changeset
|
20 |
# |
b4ed30cd962e
8136378: Build test libs using properly integrated makefile
ihse
parents:
diff
changeset
|
21 |
# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA |
b4ed30cd962e
8136378: Build test libs using properly integrated makefile
ihse
parents:
diff
changeset
|
22 |
# or visit www.oracle.com if you need additional information or have any |
b4ed30cd962e
8136378: Build test libs using properly integrated makefile
ihse
parents:
diff
changeset
|
23 |
# questions. |
b4ed30cd962e
8136378: Build test libs using properly integrated makefile
ihse
parents:
diff
changeset
|
24 |
# |
b4ed30cd962e
8136378: Build test libs using properly integrated makefile
ihse
parents:
diff
changeset
|
25 |
|
b4ed30cd962e
8136378: Build test libs using properly integrated makefile
ihse
parents:
diff
changeset
|
26 |
default: all |
b4ed30cd962e
8136378: Build test libs using properly integrated makefile
ihse
parents:
diff
changeset
|
27 |
|
b4ed30cd962e
8136378: Build test libs using properly integrated makefile
ihse
parents:
diff
changeset
|
28 |
include $(SPEC) |
b4ed30cd962e
8136378: Build test libs using properly integrated makefile
ihse
parents:
diff
changeset
|
29 |
include MakeBase.gmk |
b4ed30cd962e
8136378: Build test libs using properly integrated makefile
ihse
parents:
diff
changeset
|
30 |
include JavaCompilation.gmk |
b4ed30cd962e
8136378: Build test libs using properly integrated makefile
ihse
parents:
diff
changeset
|
31 |
include SetupJavaCompilers.gmk |
b4ed30cd962e
8136378: Build test libs using properly integrated makefile
ihse
parents:
diff
changeset
|
32 |
|
b4ed30cd962e
8136378: Build test libs using properly integrated makefile
ihse
parents:
diff
changeset
|
33 |
TARGETS := |
b4ed30cd962e
8136378: Build test libs using properly integrated makefile
ihse
parents:
diff
changeset
|
34 |
|
b4ed30cd962e
8136378: Build test libs using properly integrated makefile
ihse
parents:
diff
changeset
|
35 |
TEST_LIB_SOURCE_DIR := $(TOPDIR)/test/lib |
b4ed30cd962e
8136378: Build test libs using properly integrated makefile
ihse
parents:
diff
changeset
|
36 |
TEST_LIB_SUPPORT := $(SUPPORT_OUTPUTDIR)/test/lib |
b4ed30cd962e
8136378: Build test libs using properly integrated makefile
ihse
parents:
diff
changeset
|
37 |
|
b4ed30cd962e
8136378: Build test libs using properly integrated makefile
ihse
parents:
diff
changeset
|
38 |
$(eval $(call SetupJavaCompilation, BUILD_WB_JAR, \ |
33436 | 39 |
SETUP := GENERATE_USINGJDKBYTECODE, \ |
32562
b4ed30cd962e
8136378: Build test libs using properly integrated makefile
ihse
parents:
diff
changeset
|
40 |
SRC := $(TEST_LIB_SOURCE_DIR)/sun, \ |
36726
90083f9a087c
8153273: Test lib compilations trigger find crash on Solaris
erikj
parents:
33436
diff
changeset
|
41 |
BIN := $(TEST_LIB_SUPPORT)/wb_classes, \ |
32562
b4ed30cd962e
8136378: Build test libs using properly integrated makefile
ihse
parents:
diff
changeset
|
42 |
JAR := $(TEST_LIB_SUPPORT)/wb.jar, \ |
33436 | 43 |
ADD_JAVAC_FLAGS := $(JAVAC_WARNINGS), \ |
32562
b4ed30cd962e
8136378: Build test libs using properly integrated makefile
ihse
parents:
diff
changeset
|
44 |
)) |
b4ed30cd962e
8136378: Build test libs using properly integrated makefile
ihse
parents:
diff
changeset
|
45 |
|
b4ed30cd962e
8136378: Build test libs using properly integrated makefile
ihse
parents:
diff
changeset
|
46 |
TARGETS += $(BUILD_WB_JAR) |
b4ed30cd962e
8136378: Build test libs using properly integrated makefile
ihse
parents:
diff
changeset
|
47 |
|
b4ed30cd962e
8136378: Build test libs using properly integrated makefile
ihse
parents:
diff
changeset
|
48 |
# test-lib.jar will contain only hprof classes until JDK-8081381 is resolved |
b4ed30cd962e
8136378: Build test libs using properly integrated makefile
ihse
parents:
diff
changeset
|
49 |
$(eval $(call SetupJavaCompilation, BUILD_TEST_LIB_JAR, \ |
33436 | 50 |
SETUP := GENERATE_USINGJDKBYTECODE, \ |
40614
b5d80754b40e
8157957: ClassNotFoundException: jdk.test.lib.JDKToolFinder
ctornqvi
parents:
36726
diff
changeset
|
51 |
SRC := $(TEST_LIB_SOURCE_DIR)/jdk/test/lib/hprof, \ |
36726
90083f9a087c
8153273: Test lib compilations trigger find crash on Solaris
erikj
parents:
33436
diff
changeset
|
52 |
BIN := $(TEST_LIB_SUPPORT)/test-lib_classes, \ |
32562
b4ed30cd962e
8136378: Build test libs using properly integrated makefile
ihse
parents:
diff
changeset
|
53 |
JAR := $(TEST_LIB_SUPPORT)/test-lib.jar, \ |
b4ed30cd962e
8136378: Build test libs using properly integrated makefile
ihse
parents:
diff
changeset
|
54 |
)) |
b4ed30cd962e
8136378: Build test libs using properly integrated makefile
ihse
parents:
diff
changeset
|
55 |
|
b4ed30cd962e
8136378: Build test libs using properly integrated makefile
ihse
parents:
diff
changeset
|
56 |
TARGETS += $(BUILD_TEST_LIB_JAR) |
b4ed30cd962e
8136378: Build test libs using properly integrated makefile
ihse
parents:
diff
changeset
|
57 |
|
b4ed30cd962e
8136378: Build test libs using properly integrated makefile
ihse
parents:
diff
changeset
|
58 |
########################################################################################## |
b4ed30cd962e
8136378: Build test libs using properly integrated makefile
ihse
parents:
diff
changeset
|
59 |
|
b4ed30cd962e
8136378: Build test libs using properly integrated makefile
ihse
parents:
diff
changeset
|
60 |
all: $(TARGETS) |
b4ed30cd962e
8136378: Build test libs using properly integrated makefile
ihse
parents:
diff
changeset
|
61 |
|
b4ed30cd962e
8136378: Build test libs using properly integrated makefile
ihse
parents:
diff
changeset
|
62 |
.PHONY: default all |