Print this page
Split |
Close |
Expand all |
Collapse all |
--- old/make/sun/rmi/rmi/Makefile
+++ new/make/sun/rmi/rmi/Makefile
1 1 #
2 2 # Copyright (c) 1998, 2011, Oracle and/or its affiliates. All rights reserved.
3 3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 4 #
5 5 # This code is free software; you can redistribute it and/or modify it
6 6 # under the terms of the GNU General Public License version 2 only, as
7 7 # published by the Free Software Foundation. Oracle designates this
8 8 # particular file as subject to the "Classpath" exception as provided
9 9 # by Oracle in the LICENSE file that accompanied this code.
10 10 #
11 11 # This code is distributed in the hope that it will be useful, but WITHOUT
12 12 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13 13 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
14 14 # version 2 for more details (a copy is included in the LICENSE file that
15 15 # accompanied this code).
16 16 #
17 17 # You should have received a copy of the GNU General Public License version
18 18 # 2 along with this work; if not, write to the Free Software Foundation,
19 19 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
20 20 #
↓ open down ↓ |
20 lines elided |
↑ open up ↑ |
21 21 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
22 22 # or visit www.oracle.com if you need additional information or have any
23 23 # questions.
24 24 #
25 25
26 26 #
27 27 # Makefile for building sun.rmi.*
28 28 #
29 29
30 30 BUILDDIR = ../../..
31 +JAVAC_MAX_WARNINGS = true
32 +JAVAC_WARNINGS_FATAL = true
33 +JAVAC_LINT_OPTIONS = -Xlint:all,-deprecation
31 34 PACKAGE = sun.rmi
32 35 PRODUCT = sun
33 36 include $(BUILDDIR)/common/Defs.gmk
34 37
35 38 #
36 39 # Java files to compile.
37 40 #
38 41 AUTO_FILES_JAVA_DIRS = \
39 42 java/rmi \
40 43 sun/rmi/log \
41 44 sun/rmi/registry \
42 45 sun/rmi/runtime \
43 46 sun/rmi/server \
44 47 sun/rmi/transport \
45 48 com/sun/rmi
46 49
47 50 #
48 51 # Rules
49 52 #
50 53 include $(BUILDDIR)/common/Rules.gmk
51 54
52 55 #
53 56 # Full package names of implementations requiring stubs
54 57 #
55 58 REMOTE_impls = \
56 59 sun.rmi.registry.RegistryImpl \
57 60 sun.rmi.transport.DGCImpl
58 61
59 62 #
60 63 # The java-rmi.cgi script in bin/ only gets delivered in certain situations
61 64 #
62 65 BUILD_TARGETS = stubs
63 66 ifeq ($(PLATFORM), linux)
64 67 BUILD_TARGETS += bin
65 68 endif
66 69 ifeq ($(PLATFORM), solaris)
67 70 ifeq ($(ARCH_DATA_MODEL), 32)
68 71 BUILD_TARGETS += bin
69 72 endif
70 73 endif
71 74
72 75 build: $(BUILD_TARGETS)
73 76
74 77 clean clobber:: bin.clean
75 78
76 79
77 80 #
78 81 # Compile stubs and skeletons for remote implementations
79 82 # (use -v1.1 for backward interoperability)
80 83 #
81 84 # gnumake 3.78.1 on windows attempts to build the target even
82 85 # though it exists. Not sure why, but a check for file existence
83 86 # has been added...
84 87 #
85 88 $(CLASSBINDIR)/%_Skel.class $(CLASSBINDIR)/%_Stub.class: $(CLASSBINDIR)/%.class
86 89 if [ ! -s $@ ] ; \
87 90 then $(RMIC) -v1.1 -classpath \
88 91 "$(CLASSBINDIR)" \
89 92 -d $(CLASSBINDIR) '$(subst /,.,$(<:$(CLASSBINDIR)/%.class=%))' ; \
90 93 fi
91 94 @$(java-vm-cleanup)
92 95
93 96 REMOTE_files = $(subst .,/,$(REMOTE_impls))
94 97 FILES_stubs = $(REMOTE_files:%=$(CLASSBINDIR)/%_Stub.class)
95 98 FILES_skels = $(REMOTE_files:%=$(CLASSBINDIR)/%_Skel.class)
96 99
97 100 stubs: $(FILES_stubs) $(FILES_skels)
98 101
99 102 bin: $(BINDIR)/java-rmi.cgi
100 103
101 104 $(BINDIR)/java-rmi.cgi: $(PLATFORM_SRC)/bin/java-rmi.cgi.sh
102 105 $(install-file)
103 106 $(call chmod-file, a+x)
104 107
105 108 bin.clean:
106 109 $(RM) $(BINDIR)/java-rmi.cgi
107 110
108 111 .PHONY: stubs bin bin.clean
109 112
↓ open down ↓ |
69 lines elided |
↑ open up ↑ |
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX