author | lana |
Wed, 11 Apr 2012 18:44:33 -0700 | |
changeset 12408 | 8e95f7b85140 |
parent 12047 | 320a714614e9 |
child 14342 | 8435a30053c1 |
permissions | -rw-r--r-- |
2 | 1 |
# |
9035
1255eb81cc2f
7033660: Update copyright year to 2011 on any files changed in 2011
ohair
parents:
8583
diff
changeset
|
2 |
# Copyright (c) 1995, 2011, Oracle and/or its affiliates. All rights reserved. |
2 | 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 |
|
5506 | 7 |
# published by the Free Software Foundation. Oracle designates this |
2 | 8 |
# particular file as subject to the "Classpath" exception as provided |
5506 | 9 |
# by Oracle in the LICENSE file that accompanied this code. |
2 | 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 |
# |
|
5506 | 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. |
|
2 | 24 |
# |
25 |
||
26 |
BUILDDIR = ../.. |
|
27 |
PACKAGE = java.net |
|
28 |
LIBRARY = net |
|
29 |
PRODUCT = sun |
|
10596
39b3a979e600
7090158: Networking Libraries don't build with javac -Werror
chegar
parents:
9050
diff
changeset
|
30 |
JAVAC_MAX_WARNINGS = true |
39b3a979e600
7090158: Networking Libraries don't build with javac -Werror
chegar
parents:
9050
diff
changeset
|
31 |
JAVAC_WARNINGS_FATAL = true |
39b3a979e600
7090158: Networking Libraries don't build with javac -Werror
chegar
parents:
9050
diff
changeset
|
32 |
JAVAC_LINT_OPTIONS = -Xlint:all,-deprecation |
2 | 33 |
include $(BUILDDIR)/common/Defs.gmk |
34 |
||
35 |
# |
|
36 |
# Files |
|
37 |
# |
|
38 |
include FILES_c.gmk |
|
39 |
||
40 |
AUTO_FILES_JAVA_DIRS = java/net |
|
41 |
||
42 |
ifeq ($(PLATFORM), windows) |
|
43 |
FILES_c += NTLMAuthSequence.c |
|
44 |
FILES_c += NetworkInterface_winXP.c |
|
6525 | 45 |
else |
46 |
FILES_c += SdpSupport.c |
|
2 | 47 |
endif |
48 |
||
49 |
FILES_export = \ |
|
50 |
java/net/Socket.java \ |
|
51 |
java/net/SocketOptions.java \ |
|
52 |
java/net/SocketImpl.java \ |
|
53 |
java/net/AbstractPlainSocketImpl.java \ |
|
54 |
java/net/PlainSocketImpl.java \ |
|
55 |
java/net/ServerSocket.java \ |
|
56 |
java/net/InetAddress.java \ |
|
57 |
java/net/Inet4Address.java \ |
|
58 |
java/net/Inet6Address.java \ |
|
59 |
java/net/InetAddressImpl.java \ |
|
60 |
java/net/Inet4AddressImpl.java \ |
|
61 |
java/net/Inet6AddressImpl.java \ |
|
62 |
java/net/NetworkInterface.java \ |
|
63 |
java/net/SocketInputStream.java \ |
|
64 |
java/net/SocketOutputStream.java \ |
|
65 |
java/net/DefaultDatagramSocketImplFactory.java \ |
|
66 |
java/net/DatagramPacket.java \ |
|
67 |
java/net/DatagramSocket.java \ |
|
68 |
java/net/DatagramSocketImpl.java \ |
|
69 |
java/net/AbstractPlainDatagramSocketImpl.java \ |
|
70 |
java/net/MulticastSocket.java \ |
|
71 |
java/net/UnknownHostException.java \ |
|
72 |
java/net/ProtocolException.java \ |
|
73 |
sun/net/spi/DefaultProxySelector.java |
|
74 |
||
75 |
ifeq ($(PLATFORM), windows) |
|
76 |
FILES_export += java/net/TwoStacksPlainSocketImpl.java |
|
77 |
FILES_export += java/net/DualStackPlainSocketImpl.java |
|
78 |
FILES_export += java/net/TwoStacksPlainDatagramSocketImpl.java |
|
79 |
FILES_export += java/net/DualStackPlainDatagramSocketImpl.java |
|
80 |
else |
|
81 |
FILES_export += java/net/PlainDatagramSocketImpl.java |
|
82 |
endif |
|
83 |
||
84 |
# |
|
85 |
# Find platform specific native code |
|
86 |
# |
|
6525 | 87 |
vpath %.c $(PLATFORM_SRC)/native/sun/net/dns $(PLATFORM_SRC)/native/sun/net/www/protocol/http/ntlm \ |
88 |
$(PLATFORM_SRC)/native/sun/net/sdp $(PLATFORM_SRC)/native/sun/net/spi |
|
2 | 89 |
|
90 |
# |
|
91 |
# Include rules |
|
92 |
# |
|
93 |
include $(BUILDDIR)/common/Mapfile-vers.gmk |
|
94 |
||
95 |
include $(BUILDDIR)/common/Library.gmk |
|
96 |
||
12047
320a714614e9
7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
10596
diff
changeset
|
97 |
ifeq ($(PLATFORM), macosx) |
320a714614e9
7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
10596
diff
changeset
|
98 |
ifdef DONT_ENABLE_IPV6 |
320a714614e9
7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
10596
diff
changeset
|
99 |
OTHER_CFLAGS += -DDONT_ENABLE_IPV6 |
320a714614e9
7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
10596
diff
changeset
|
100 |
endif |
320a714614e9
7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
10596
diff
changeset
|
101 |
OTHER_LDLIBS = $(JVMLIB) -pthread |
320a714614e9
7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
10596
diff
changeset
|
102 |
else |
2 | 103 |
ifeq ($(PLATFORM), windows) |
9003
e1b0f0099915
7030256: Cleanup/Remove code supporting old Windows versions (98, NT, 2000, etc)
chegar
parents:
8583
diff
changeset
|
104 |
OTHER_LDLIBS = ws2_32.lib $(JVMLIB) \ |
e1b0f0099915
7030256: Cleanup/Remove code supporting old Windows versions (98, NT, 2000, etc)
chegar
parents:
8583
diff
changeset
|
105 |
secur32.lib iphlpapi.lib delayimp.lib \ |
e1b0f0099915
7030256: Cleanup/Remove code supporting old Windows versions (98, NT, 2000, etc)
chegar
parents:
8583
diff
changeset
|
106 |
/DELAYLOAD:secur32.dll /DELAYLOAD:iphlpapi.dll |
2 | 107 |
else |
12047
320a714614e9
7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
10596
diff
changeset
|
108 |
OTHER_LDLIBS = $(LIBSOCKET) $(LIBNSL) $(LIBDL) $(JVMLIB) |
2 | 109 |
endif |
110 |
ifeq ($(PLATFORM), linux) |
|
111 |
OTHER_LDLIBS += -lpthread |
|
112 |
endif |
|
12047
320a714614e9
7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
10596
diff
changeset
|
113 |
endif # PLATFORM |
2 | 114 |
|
115 |
CLASSES.export += java.lang.Integer java.io.FileDescriptor java.net.InetAddressImplFactory java.net.Inet4AddressImpl java.net.Inet6AddressImpl |
|
116 |
||
117 |
# |
|
118 |
# Resources |
|
119 |
# |
|
120 |
LOCALE_SET_DEFINITION = jre |
|
121 |
||
2446 | 122 |
MISC_FILES = $(LIBDIR) $(LIBDIR)/net.properties |
2 | 123 |
|
124 |
$(LIBDIR)/net.properties: $(SHARE_SRC)/lib/net.properties |
|
4665
d14dc3d9e1fa
6911737: Module build: generate modules with native libraries and any other files not in jar
mchung
parents:
4157
diff
changeset
|
125 |
$(install-file) |
2 | 126 |
|
2446 | 127 |
# |
128 |
# SDP configuration template |
|
129 |
# |
|
130 |
ifeq ($(PLATFORM), solaris) |
|
131 |
SDP_PATH = sdp/sdp.conf.template |
|
132 |
SDP_CONF = $(LIBDIR)/$(SDP_PATH) |
|
133 |
$(SDP_CONF): $(PLATFORM_SRC)/lib/$(SDP_PATH) |
|
134 |
@$(RM) $* |
|
135 |
$(install-file) |
|
2 | 136 |
|
2446 | 137 |
MISC_FILES += $(SDP_CONF) |
138 |
endif |
|
139 |
||
140 |
build: $(MISC_FILES) |
|
141 |