author | mchung |
Wed, 09 Mar 2011 23:11:07 -0800 | |
changeset 8583 | 15dea0fdc2ea |
parent 7668 | d4a77089c587 |
child 9035 | 1255eb81cc2f |
child 9003 | e1b0f0099915 |
permissions | -rw-r--r-- |
2 | 1 |
# |
7668 | 2 |
# Copyright (c) 1995, 2010, 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 |
|
30 |
include $(BUILDDIR)/common/Defs.gmk |
|
31 |
||
32 |
# |
|
33 |
# Files |
|
34 |
# |
|
35 |
include FILES_c.gmk |
|
36 |
||
37 |
AUTO_FILES_JAVA_DIRS = java/net |
|
38 |
||
39 |
ifeq ($(PLATFORM), windows) |
|
40 |
# Windows 9x module only needed on 32-bit build |
|
41 |
ifeq ($(ARCH_DATA_MODEL), 32) |
|
42 |
FILES_c += NetworkInterface_win9x.c |
|
43 |
endif |
|
44 |
FILES_c += NTLMAuthSequence.c |
|
45 |
FILES_c += NetworkInterface_winXP.c |
|
6525 | 46 |
else |
47 |
FILES_c += SdpSupport.c |
|
2 | 48 |
endif |
49 |
||
50 |
FILES_export = \ |
|
51 |
java/net/Socket.java \ |
|
52 |
java/net/SocketOptions.java \ |
|
53 |
java/net/SocketImpl.java \ |
|
54 |
java/net/AbstractPlainSocketImpl.java \ |
|
55 |
java/net/PlainSocketImpl.java \ |
|
56 |
java/net/ServerSocket.java \ |
|
57 |
java/net/InetAddress.java \ |
|
58 |
java/net/Inet4Address.java \ |
|
59 |
java/net/Inet6Address.java \ |
|
60 |
java/net/InetAddressImpl.java \ |
|
61 |
java/net/Inet4AddressImpl.java \ |
|
62 |
java/net/Inet6AddressImpl.java \ |
|
63 |
java/net/NetworkInterface.java \ |
|
64 |
java/net/SocketInputStream.java \ |
|
65 |
java/net/SocketOutputStream.java \ |
|
66 |
java/net/DefaultDatagramSocketImplFactory.java \ |
|
67 |
java/net/DatagramPacket.java \ |
|
68 |
java/net/DatagramSocket.java \ |
|
69 |
java/net/DatagramSocketImpl.java \ |
|
70 |
java/net/AbstractPlainDatagramSocketImpl.java \ |
|
71 |
java/net/MulticastSocket.java \ |
|
72 |
java/net/UnknownHostException.java \ |
|
73 |
java/net/ProtocolException.java \ |
|
74 |
sun/net/spi/DefaultProxySelector.java |
|
75 |
||
76 |
ifeq ($(PLATFORM), windows) |
|
77 |
FILES_export += java/net/TwoStacksPlainSocketImpl.java |
|
78 |
FILES_export += java/net/DualStackPlainSocketImpl.java |
|
79 |
FILES_export += java/net/TwoStacksPlainDatagramSocketImpl.java |
|
80 |
FILES_export += java/net/DualStackPlainDatagramSocketImpl.java |
|
81 |
else |
|
82 |
FILES_export += java/net/PlainDatagramSocketImpl.java |
|
83 |
endif |
|
84 |
||
85 |
# |
|
86 |
# Find platform specific native code |
|
87 |
# |
|
6525 | 88 |
vpath %.c $(PLATFORM_SRC)/native/sun/net/dns $(PLATFORM_SRC)/native/sun/net/www/protocol/http/ntlm \ |
89 |
$(PLATFORM_SRC)/native/sun/net/sdp $(PLATFORM_SRC)/native/sun/net/spi |
|
2 | 90 |
|
91 |
# |
|
92 |
# Include rules |
|
93 |
# |
|
94 |
include $(BUILDDIR)/common/Mapfile-vers.gmk |
|
95 |
||
96 |
include $(BUILDDIR)/common/Library.gmk |
|
97 |
||
98 |
ifeq ($(PLATFORM), windows) |
|
99 |
OTHER_LDLIBS = ws2_32.lib $(JVMLIB) |
|
100 |
else |
|
5780 | 101 |
OTHER_LDLIBS = $(LIBSOCKET) $(LIBNSL) -ldl $(JVMLIB) |
2 | 102 |
endif |
103 |
ifeq ($(PLATFORM), linux) |
|
104 |
OTHER_LDLIBS += -lpthread |
|
105 |
endif |
|
106 |
||
107 |
CLASSES.export += java.lang.Integer java.io.FileDescriptor java.net.InetAddressImplFactory java.net.Inet4AddressImpl java.net.Inet6AddressImpl |
|
108 |
||
109 |
# |
|
110 |
# Resources |
|
111 |
# |
|
112 |
LOCALE_SET_DEFINITION = jre |
|
113 |
||
2446 | 114 |
MISC_FILES = $(LIBDIR) $(LIBDIR)/net.properties |
2 | 115 |
|
116 |
$(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
|
117 |
$(install-file) |
2 | 118 |
|
2446 | 119 |
# |
120 |
# SDP configuration template |
|
121 |
# |
|
122 |
ifeq ($(PLATFORM), solaris) |
|
123 |
SDP_PATH = sdp/sdp.conf.template |
|
124 |
SDP_CONF = $(LIBDIR)/$(SDP_PATH) |
|
125 |
$(SDP_CONF): $(PLATFORM_SRC)/lib/$(SDP_PATH) |
|
126 |
@$(RM) $* |
|
127 |
$(install-file) |
|
2 | 128 |
|
2446 | 129 |
MISC_FILES += $(SDP_CONF) |
130 |
endif |
|
131 |
||
132 |
build: $(MISC_FILES) |
|
133 |