|
1 # |
|
2 # Copyright (c) 2011, 2014, 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 |
|
23 # questions. |
|
24 # |
|
25 |
|
26 include LauncherCommon.gmk |
|
27 |
|
28 $(eval $(call SetupLauncher,rmid, \ |
|
29 -DJAVA_ARGS='{ "-J-ms8m"$(COMMA) "sun.rmi.server.Activation"$(COMMA) }')) |
|
30 |
|
31 $(eval $(call SetupLauncher,rmiregistry, \ |
|
32 -DJAVA_ARGS='{ "-J-ms8m"$(COMMA) "sun.rmi.registry.RegistryImpl"$(COMMA) }')) |
|
33 |
|
34 ########################################################################################## |
|
35 |
|
36 # |
|
37 # The java-rmi.cgi script in bin/ only gets delivered in certain situations |
|
38 # |
|
39 JAVA_RMI_CGI := $(JDK_OUTPUTDIR)/bin$(OUTPUT_SUBDIR)/java-rmi.cgi |
|
40 ifeq ($(OPENJDK_TARGET_OS), linux) |
|
41 LAUNCHERS += $(JAVA_RMI_CGI) |
|
42 endif |
|
43 ifeq ($(OPENJDK_TARGET_OS), solaris) |
|
44 LAUNCHERS += $(JAVA_RMI_CGI) |
|
45 endif |
|
46 |
|
47 # TODO: |
|
48 # On windows java-rmi.cgi shouldn't be bundled since Java 1.2, but has been built all |
|
49 # this time anyway. Since jdk6, it has been built from the wrong source and resulted |
|
50 # in a (almost) copy of the standard java launcher named "java-rmi.exe" ending up in |
|
51 # the final images bin dir. This weird behavior is mimicked here in the converted |
|
52 # makefiles for now. Should probably just be deleted. |
|
53 # http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6512052 |
|
54 ifeq ($(OPENJDK_TARGET_OS), windows) |
|
55 $(eval $(call SetupLauncher,java-rmi, , \ |
|
56 $(call SET_SHARED_LIBRARY_MAPFILE,$(JDK_TOPDIR)/make/java/main/java/mapfile-$(OPENJDK_TARGET_CPU)),,,,,,,,,RMI)) |
|
57 else |
|
58 $(JAVA_RMI_CGI): $(JDK_TOPDIR)/src/java.rmi/unix/bin/java-rmi.cgi.sh |
|
59 $(call install-file) |
|
60 $(CHMOD) a+x $@ |
|
61 endif |
|
62 |
|
63 ########################################################################################## |
|
64 |
|
65 java.rmi: $(LAUNCHERS) |
|
66 |
|
67 all: java.rmi |
|
68 |
|
69 .PHONY: all java.rmi |