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