author | thartmann |
Tue, 19 Aug 2014 07:36:11 +0200 | |
changeset 26176 | cc5975228236 |
parent 22937 | f28798de1e6f |
permissions | -rw-r--r-- |
12317
9670c1610c53
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
1 |
# |
20861
6dd0502e6616
6604021: RMIC is defaulting to BOOT jdk version, needs to be rmic.jar
erikj
parents:
14231
diff
changeset
|
2 |
# Copyright (c) 2011, 2013, Oracle and/or its affiliates. All rights reserved. |
12317
9670c1610c53
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
3 |
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
9670c1610c53
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
4 |
# |
9670c1610c53
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
5 |
# This code is free software; you can redistribute it and/or modify it |
9670c1610c53
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
6 |
# under the terms of the GNU General Public License version 2 only, as |
9670c1610c53
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
7 |
# published by the Free Software Foundation. Oracle designates this |
9670c1610c53
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
8 |
# particular file as subject to the "Classpath" exception as provided |
9670c1610c53
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
9 |
# by Oracle in the LICENSE file that accompanied this code. |
9670c1610c53
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
10 |
# |
9670c1610c53
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
11 |
# This code is distributed in the hope that it will be useful, but WITHOUT |
9670c1610c53
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
12 |
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
9670c1610c53
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
13 |
# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
9670c1610c53
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
14 |
# version 2 for more details (a copy is included in the LICENSE file that |
9670c1610c53
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
15 |
# accompanied this code). |
9670c1610c53
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
16 |
# |
9670c1610c53
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
17 |
# You should have received a copy of the GNU General Public License version |
9670c1610c53
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
18 |
# 2 along with this work; if not, write to the Free Software Foundation, |
9670c1610c53
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
19 |
# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. |
9670c1610c53
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
20 |
# |
9670c1610c53
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
21 |
# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA |
9670c1610c53
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
22 |
# or visit www.oracle.com if you need additional information or have any |
9670c1610c53
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
23 |
# questions. |
9670c1610c53
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
24 |
# |
9670c1610c53
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
25 |
|
9670c1610c53
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
26 |
default: all |
9670c1610c53
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
27 |
|
9670c1610c53
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
28 |
include $(SPEC) |
9670c1610c53
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
29 |
include MakeBase.gmk |
13164 | 30 |
include RMICompilation.gmk |
20861
6dd0502e6616
6604021: RMIC is defaulting to BOOT jdk version, needs to be rmic.jar
erikj
parents:
14231
diff
changeset
|
31 |
include JavaCompilation.gmk |
6dd0502e6616
6604021: RMIC is defaulting to BOOT jdk version, needs to be rmic.jar
erikj
parents:
14231
diff
changeset
|
32 |
include Setup.gmk |
13164 | 33 |
|
20861
6dd0502e6616
6604021: RMIC is defaulting to BOOT jdk version, needs to be rmic.jar
erikj
parents:
14231
diff
changeset
|
34 |
########################################################################################## |
6dd0502e6616
6604021: RMIC is defaulting to BOOT jdk version, needs to be rmic.jar
erikj
parents:
14231
diff
changeset
|
35 |
|
6dd0502e6616
6604021: RMIC is defaulting to BOOT jdk version, needs to be rmic.jar
erikj
parents:
14231
diff
changeset
|
36 |
RMIC_PKGS := \ |
6dd0502e6616
6604021: RMIC is defaulting to BOOT jdk version, needs to be rmic.jar
erikj
parents:
14231
diff
changeset
|
37 |
sun/rmi/rmic \ |
6dd0502e6616
6604021: RMIC is defaulting to BOOT jdk version, needs to be rmic.jar
erikj
parents:
14231
diff
changeset
|
38 |
sun/tools/asm \ |
6dd0502e6616
6604021: RMIC is defaulting to BOOT jdk version, needs to be rmic.jar
erikj
parents:
14231
diff
changeset
|
39 |
sun/tools/java \ |
6dd0502e6616
6604021: RMIC is defaulting to BOOT jdk version, needs to be rmic.jar
erikj
parents:
14231
diff
changeset
|
40 |
sun/tools/javac \ |
6dd0502e6616
6604021: RMIC is defaulting to BOOT jdk version, needs to be rmic.jar
erikj
parents:
14231
diff
changeset
|
41 |
sun/tools/tree \ |
6dd0502e6616
6604021: RMIC is defaulting to BOOT jdk version, needs to be rmic.jar
erikj
parents:
14231
diff
changeset
|
42 |
sun/tools/util \ |
6dd0502e6616
6604021: RMIC is defaulting to BOOT jdk version, needs to be rmic.jar
erikj
parents:
14231
diff
changeset
|
43 |
# |
6dd0502e6616
6604021: RMIC is defaulting to BOOT jdk version, needs to be rmic.jar
erikj
parents:
14231
diff
changeset
|
44 |
|
6dd0502e6616
6604021: RMIC is defaulting to BOOT jdk version, needs to be rmic.jar
erikj
parents:
14231
diff
changeset
|
45 |
$(eval $(call SetupJavaCompilation,BUILD_BOOTSTRAP_RMIC, \ |
6dd0502e6616
6604021: RMIC is defaulting to BOOT jdk version, needs to be rmic.jar
erikj
parents:
14231
diff
changeset
|
46 |
SETUP := GENERATE_OLDBYTECODE, \ |
6dd0502e6616
6604021: RMIC is defaulting to BOOT jdk version, needs to be rmic.jar
erikj
parents:
14231
diff
changeset
|
47 |
SRC := $(JDK_TOPDIR)/src/share/classes, \ |
6dd0502e6616
6604021: RMIC is defaulting to BOOT jdk version, needs to be rmic.jar
erikj
parents:
14231
diff
changeset
|
48 |
INCLUDES := $(RMIC_PKGS), \ |
6dd0502e6616
6604021: RMIC is defaulting to BOOT jdk version, needs to be rmic.jar
erikj
parents:
14231
diff
changeset
|
49 |
BIN := $(JDK_OUTPUTDIR)/btclasses_rmic, \ |
6dd0502e6616
6604021: RMIC is defaulting to BOOT jdk version, needs to be rmic.jar
erikj
parents:
14231
diff
changeset
|
50 |
COPY := .properties, \ |
6dd0502e6616
6604021: RMIC is defaulting to BOOT jdk version, needs to be rmic.jar
erikj
parents:
14231
diff
changeset
|
51 |
JAVAC_SOURCE_PATH_OVERRIDE := $(addprefix $(JDK_TOPDIR)/src/share/classes/, $(RMIC_PKGS)))) |
6dd0502e6616
6604021: RMIC is defaulting to BOOT jdk version, needs to be rmic.jar
erikj
parents:
14231
diff
changeset
|
52 |
|
6dd0502e6616
6604021: RMIC is defaulting to BOOT jdk version, needs to be rmic.jar
erikj
parents:
14231
diff
changeset
|
53 |
########################################################################################## |
6dd0502e6616
6604021: RMIC is defaulting to BOOT jdk version, needs to be rmic.jar
erikj
parents:
14231
diff
changeset
|
54 |
|
22647
7e45e0a1088d
8026773: Failing compilation in Corba does not fail the build
erikj
parents:
21805
diff
changeset
|
55 |
BTRMIC_CP := $(INTERIM_CORBA_JAR)$(PATH_SEP)$(JDK_OUTPUTDIR)/btclasses_rmic$(PATH_SEP)$(INTERIM_LANGTOOLS_JAR) |
20870
c7ec34cb6e3c
8026762: jdk8-tl builds windows builds failing in corba - javac: no source files
wetmore
parents:
20861
diff
changeset
|
56 |
BTRMIC_ARGS := "-Xbootclasspath/p:$(BTRMIC_CP)" -cp "$(BTRMIC_CP)" |
20861
6dd0502e6616
6604021: RMIC is defaulting to BOOT jdk version, needs to be rmic.jar
erikj
parents:
14231
diff
changeset
|
57 |
RMIC := $(JAVA) $(BTRMIC_ARGS) sun.rmi.rmic.Main |
12317
9670c1610c53
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
58 |
|
9670c1610c53
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
59 |
CLASSES_DIR := $(JDK_OUTPUTDIR)/classes |
20547 | 60 |
# NOTE: If the smart javac dependency management is reintroduced, these classes risk |
12892 | 61 |
# interfering with the dependency checking. In that case they will need to be kept separate. |
14231 | 62 |
STUB_CLASSES_DIR := $(JDK_OUTPUTDIR)/classes |
12317
9670c1610c53
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
63 |
RMIC_GENSRC_DIR := $(JDK_OUTPUTDIR)/gendocsrc_rmic |
9670c1610c53
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
64 |
|
20547 | 65 |
GENCLASSES := |
12317
9670c1610c53
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
66 |
|
9670c1610c53
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
67 |
########################################################################################## |
9670c1610c53
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
68 |
# |
9670c1610c53
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
69 |
# Generate RMI stubs |
9670c1610c53
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
70 |
# |
9670c1610c53
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
71 |
|
20547 | 72 |
$(eval $(call SetupRMICompilation,RMI_12, \ |
73 |
CLASSES := sun.rmi.server.Activation$$$$ActivationSystemImpl \ |
|
74 |
java.rmi.activation.ActivationGroup \ |
|
75 |
com.sun.jndi.rmi.registry.ReferenceWrapper, \ |
|
76 |
CLASSES_DIR := $(CLASSES_DIR), \ |
|
77 |
STUB_CLASSES_DIR := $(STUB_CLASSES_DIR), \ |
|
78 |
RUN_V12 := true)) |
|
12317
9670c1610c53
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
79 |
GENCLASSES += $(RMI_12) |
9670c1610c53
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
80 |
|
20547 | 81 |
$(eval $(call SetupRMICompilation,RMI_11, \ |
82 |
CLASSES := sun.rmi.registry.RegistryImpl \ |
|
83 |
sun.rmi.transport.DGCImpl, \ |
|
84 |
CLASSES_DIR := $(CLASSES_DIR), \ |
|
85 |
STUB_CLASSES_DIR := $(STUB_CLASSES_DIR), \ |
|
86 |
RUN_V11 := true)) |
|
12317
9670c1610c53
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
87 |
GENCLASSES += $(RMI_11) |
9670c1610c53
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
88 |
|
9670c1610c53
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
89 |
# For RMI/IIOP call rmic a second time with -standardPackage option |
9670c1610c53
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
90 |
# so that *_tie classes are generated in package without the prefix |
9670c1610c53
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
91 |
# org.omg.stub (6375696) |
22937
f28798de1e6f
8033366: Add configure option to allow RMIConnector IIOP transport be selected compiled in or not
alanb
parents:
22647
diff
changeset
|
92 |
JMX_RMI_CLASSES := javax.management.remote.rmi.RMIConnectionImpl \ |
20547 | 93 |
javax.management.remote.rmi.RMIServerImpl |
22937
f28798de1e6f
8033366: Add configure option to allow RMIConnector IIOP transport be selected compiled in or not
alanb
parents:
22647
diff
changeset
|
94 |
GENRMIIIOPCLASSES := |
f28798de1e6f
8033366: Add configure option to allow RMIConnector IIOP transport be selected compiled in or not
alanb
parents:
22647
diff
changeset
|
95 |
ifneq ($(RMICONNECTOR_IIOP), false) |
f28798de1e6f
8033366: Add configure option to allow RMIConnector IIOP transport be selected compiled in or not
alanb
parents:
22647
diff
changeset
|
96 |
GENRMIIIOPCLASSES := $(RMICONNECTOR_IIOP) |
f28798de1e6f
8033366: Add configure option to allow RMIConnector IIOP transport be selected compiled in or not
alanb
parents:
22647
diff
changeset
|
97 |
endif |
20547 | 98 |
$(eval $(call SetupRMICompilation,RMI_IIOP, \ |
22937
f28798de1e6f
8033366: Add configure option to allow RMIConnector IIOP transport be selected compiled in or not
alanb
parents:
22647
diff
changeset
|
99 |
CLASSES := $(JMX_RMI_CLASSES), \ |
20547 | 100 |
CLASSES_DIR := $(CLASSES_DIR), \ |
101 |
STUB_CLASSES_DIR := $(STUB_CLASSES_DIR), \ |
|
102 |
RUN_V12 := true, \ |
|
22937
f28798de1e6f
8033366: Add configure option to allow RMIConnector IIOP transport be selected compiled in or not
alanb
parents:
22647
diff
changeset
|
103 |
RUN_IIOP := $(GENRMIIIOPCLASSES), \ |
f28798de1e6f
8033366: Add configure option to allow RMIConnector IIOP transport be selected compiled in or not
alanb
parents:
22647
diff
changeset
|
104 |
RUN_IIOP_STDPKG := $(GENRMIIIOPCLASSES))) |
12317
9670c1610c53
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
105 |
GENCLASSES += $(RMI_IIOP) |
9670c1610c53
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
106 |
|
9670c1610c53
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
107 |
# Keep generated RMI/JRMP Stub source files and copy them to RMIC_GENSRC_DIR |
9670c1610c53
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
108 |
# so that javadoc can include them in the API (4997471) |
20547 | 109 |
$(eval $(call SetupRMICompilation,RMI_SRC, \ |
22937
f28798de1e6f
8033366: Add configure option to allow RMIConnector IIOP transport be selected compiled in or not
alanb
parents:
22647
diff
changeset
|
110 |
CLASSES := $(JMX_RMI_CLASSES), \ |
20547 | 111 |
CLASSES_DIR := $(CLASSES_DIR), \ |
112 |
STUB_CLASSES_DIR := $(RMIC_GENSRC_DIR), \ |
|
113 |
RUN_V12 := true, \ |
|
114 |
KEEP_GENERATED := true)) |
|
115 |
GENCLASSES += $(filter %.java, $(RMI_SRC)) |
|
12317
9670c1610c53
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
116 |
|
9670c1610c53
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
117 |
########################################################################################## |
9670c1610c53
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
118 |
|
20861
6dd0502e6616
6604021: RMIC is defaulting to BOOT jdk version, needs to be rmic.jar
erikj
parents:
14231
diff
changeset
|
119 |
$(RMI_12) $(RMI_11) $(RMI_IIOP) $(RMI_SRC): $(BUILD_BOOTSTRAP_RMIC) |
6dd0502e6616
6604021: RMIC is defaulting to BOOT jdk version, needs to be rmic.jar
erikj
parents:
14231
diff
changeset
|
120 |
|
14231 | 121 |
$(RMIC_GENSRC_DIR)/_the.classes.removed: $(GENCLASSES) |
12317
9670c1610c53
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
122 |
$(FIND) $(RMIC_GENSRC_DIR) -name "*.class" $(FIND_DELETE) |
14231 | 123 |
$(TOUCH) $@ |
124 |
||
125 |
all: $(RMIC_GENSRC_DIR)/_the.classes.removed $(GENCLASSES) |
|
12317
9670c1610c53
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
126 |
|
9670c1610c53
7074397: Build infrastructure changes (makefile re-write)
ohair
parents:
diff
changeset
|
127 |
.PHONY: all |