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