blob: 6218c63776ef3311150667627004294f2ba08b69 [file] [log] [blame]
J. Duke319a3b92007-12-01 00:00:00 +00001#
2# Copyright 1995-2007 Sun Microsystems, Inc. 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. Sun designates this
8# particular file as subject to the "Classpath" exception as provided
9# by Sun 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 Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
22# CA 95054 USA or visit www.sun.com if you need additional information or
23# have any questions.
24#
25
26BUILDDIR = ../..
27PACKAGE = java.net
28LIBRARY = net
29PRODUCT = sun
30include $(BUILDDIR)/common/Defs.gmk
31
32#
33# Files
34#
35include FILES_c.gmk
36
37AUTO_FILES_JAVA_DIRS = java/net
38
39ifeq ($(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
46endif
47
48FILES_export = \
49 java/net/Socket.java \
50 java/net/SocketOptions.java \
51 java/net/SocketImpl.java \
52 java/net/AbstractPlainSocketImpl.java \
53 java/net/PlainSocketImpl.java \
54 java/net/ServerSocket.java \
55 java/net/InetAddress.java \
56 java/net/Inet4Address.java \
57 java/net/Inet6Address.java \
58 java/net/InetAddressImpl.java \
59 java/net/Inet4AddressImpl.java \
60 java/net/Inet6AddressImpl.java \
61 java/net/NetworkInterface.java \
62 java/net/SocketInputStream.java \
63 java/net/SocketOutputStream.java \
64 java/net/DefaultDatagramSocketImplFactory.java \
65 java/net/DatagramPacket.java \
66 java/net/DatagramSocket.java \
67 java/net/DatagramSocketImpl.java \
68 java/net/AbstractPlainDatagramSocketImpl.java \
69 java/net/MulticastSocket.java \
70 java/net/UnknownHostException.java \
71 java/net/ProtocolException.java \
72 sun/net/spi/DefaultProxySelector.java
73
74ifeq ($(PLATFORM), windows)
75 FILES_export += java/net/TwoStacksPlainSocketImpl.java
76 FILES_export += java/net/DualStackPlainSocketImpl.java
77 FILES_export += java/net/TwoStacksPlainDatagramSocketImpl.java
78 FILES_export += java/net/DualStackPlainDatagramSocketImpl.java
79else
80 FILES_export += java/net/PlainDatagramSocketImpl.java
81endif
82
83#
84# Find platform specific native code
85#
86vpath %.c $(PLATFORM_SRC)/native/sun/net/dns $(PLATFORM_SRC)/native/sun/net/www/protocol/http $(PLATFORM_SRC)/native/sun/net/spi
87
88#
89# Include rules
90#
91include $(BUILDDIR)/common/Mapfile-vers.gmk
92
93include $(BUILDDIR)/common/Library.gmk
94
95ifeq ($(PLATFORM), windows)
96 OTHER_LDLIBS = ws2_32.lib $(JVMLIB)
97 # Will not compile at warning level 3 if warnings are fatal
98 COMPILER_WARNINGS_FATAL=false
99else
100 OTHER_LDLIBS = $(LIBSOCKET) -lnsl -ldl $(JVMLIB)
101endif
102ifeq ($(PLATFORM), linux)
103 OTHER_LDLIBS += -lpthread
104endif
105
106CLASSES.export += java.lang.Integer java.io.FileDescriptor java.net.InetAddressImplFactory java.net.Inet4AddressImpl java.net.Inet6AddressImpl
107
108#
109# Resources
110#
111LOCALE_SET_DEFINITION = jre
112
113properties: $(LIBDIR) $(LIBDIR)/net.properties
114
115$(LIBDIR)/net.properties: $(SHARE_SRC)/lib/net.properties
116 @$(RM) $@
117 $(CP) $< $@
118
119build: properties
120