Makefile revision 606
418N/A#
418N/A# Copyright 1995-2007 Sun Microsystems, Inc. All Rights Reserved.
605N/A# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
418N/A#
1063N/A# This code is free software; you can redistribute it and/or modify it
418N/A# under the terms of the GNU General Public License version 2 only, as
418N/A# published by the Free Software Foundation. Sun designates this
919N/A# particular file as subject to the "Classpath" exception as provided
919N/A# by Sun in the LICENSE file that accompanied this code.
919N/A#
919N/A# This code is distributed in the hope that it will be useful, but WITHOUT
919N/A# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
919N/A# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
919N/A# version 2 for more details (a copy is included in the LICENSE file that
919N/A# accompanied this code).
919N/A#
919N/A# You should have received a copy of the GNU General Public License version
919N/A# 2 along with this work; if not, write to the Free Software Foundation,
919N/A# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
919N/A#
919N/A# Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
919N/A# CA 95054 USA or visit www.sun.com if you need additional information or
919N/A# have any questions.
919N/A#
418N/A
418N/ABUILDDIR = ../..
418N/APACKAGE = java.net
418N/ALIBRARY = net
493N/APRODUCT = sun
418N/Ainclude $(BUILDDIR)/common/Defs.gmk
970N/A
970N/A#
970N/A# Files
970N/A#
1143N/Ainclude FILES_c.gmk
1143N/A
1143N/AAUTO_FILES_JAVA_DIRS = java/net
1143N/A
970N/Aifeq ($(PLATFORM), windows)
970N/A # Windows 9x module only needed on 32-bit build
970N/A ifeq ($(ARCH_DATA_MODEL), 32)
970N/A FILES_c += NetworkInterface_win9x.c
970N/A endif
970N/A FILES_c += NTLMAuthSequence.c
970N/A FILES_c += NetworkInterface_winXP.c
970N/Aendif
970N/A
418N/AFILES_export = \
1063N/A java/net/Socket.java \
418N/A java/net/SocketOptions.java \
911N/A java/net/SocketImpl.java \
1063N/A java/net/AbstractPlainSocketImpl.java \
1063N/A java/net/PlainSocketImpl.java \
911N/A java/net/ServerSocket.java \
418N/A java/net/InetAddress.java \
553N/A java/net/Inet4Address.java \
418N/A java/net/Inet6Address.java \
553N/A java/net/InetAddressImpl.java \
553N/A java/net/Inet4AddressImpl.java \
553N/A java/net/Inet6AddressImpl.java \
553N/A java/net/NetworkInterface.java \
418N/A java/net/SocketInputStream.java \
418N/A java/net/SocketOutputStream.java \
418N/A java/net/DefaultDatagramSocketImplFactory.java \
857N/A java/net/DatagramPacket.java \
418N/A java/net/DatagramSocket.java \
418N/A java/net/DatagramSocketImpl.java \
1143N/A java/net/AbstractPlainDatagramSocketImpl.java \
493N/A java/net/MulticastSocket.java \
418N/A java/net/UnknownHostException.java \
1143N/A java/net/ProtocolException.java \
1143N/A sun/net/spi/DefaultProxySelector.java
1143N/A
1143N/Aifeq ($(PLATFORM), windows)
1143N/A FILES_export += java/net/TwoStacksPlainSocketImpl.java
1143N/A FILES_export += java/net/DualStackPlainSocketImpl.java
1143N/A FILES_export += java/net/TwoStacksPlainDatagramSocketImpl.java
1143N/A FILES_export += java/net/DualStackPlainDatagramSocketImpl.java
1143N/Aelse
1143N/A FILES_export += java/net/PlainDatagramSocketImpl.java
1143N/Aendif
418N/A
418N/A#
851N/A# Find platform specific native code
418N/A#
851N/Avpath %.c $(PLATFORM_SRC)/native/sun/net/dns $(PLATFORM_SRC)/native/sun/net/www/protocol/http $(PLATFORM_SRC)/native/sun/net/spi
418N/A
418N/A#
493N/A# Include rules
418N/A#
857N/Ainclude $(BUILDDIR)/common/Mapfile-vers.gmk
851N/A
851N/Ainclude $(BUILDDIR)/common/Library.gmk
672N/A
418N/Aifeq ($(PLATFORM), windows)
857N/A OTHER_LDLIBS = ws2_32.lib $(JVMLIB)
857N/A # Will not compile at warning level 3 if warnings are fatal
857N/A COMPILER_WARNINGS_FATAL=false
857N/Aelse
857N/A OTHER_LDLIBS = $(LIBSOCKET) -lnsl -ldl $(JVMLIB)
857N/Aendif
857N/Aifeq ($(PLATFORM), linux)
418N/A OTHER_LDLIBS += -lpthread
851N/Aendif
418N/A
857N/ACLASSES.export += java.lang.Integer java.io.FileDescriptor java.net.InetAddressImplFactory java.net.Inet4AddressImpl java.net.Inet6AddressImpl
857N/A
970N/A#
970N/A# Resources
970N/A#
418N/ALOCALE_SET_DEFINITION = jre
857N/A
857N/Aproperties: $(LIBDIR) $(LIBDIR)/net.properties
857N/A
857N/A$(LIBDIR)/net.properties: $(SHARE_SRC)/lib/net.properties
857N/A @$(RM) $@
857N/A $(CP) $< $@
857N/A
857N/Abuild: properties
1143N/A
1143N/A