Makefile revision 594
229N/A#
229N/A# Copyright 1995-2008 Sun Microsystems, Inc. All Rights Reserved.
229N/A# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
229N/A#
229N/A# This code is free software; you can redistribute it and/or modify it
229N/A# under the terms of the GNU General Public License version 2 only, as
229N/A# published by the Free Software Foundation. Sun designates this
229N/A# particular file as subject to the "Classpath" exception as provided
229N/A# by Sun in the LICENSE file that accompanied this code.
229N/A#
229N/A# This code is distributed in the hope that it will be useful, but WITHOUT
229N/A# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
229N/A# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
229N/A# version 2 for more details (a copy is included in the LICENSE file that
229N/A# accompanied this code).
229N/A#
229N/A# You should have received a copy of the GNU General Public License version
229N/A# 2 along with this work; if not, write to the Free Software Foundation,
229N/A# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
229N/A#
229N/A# Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
229N/A# CA 95054 USA or visit www.sun.com if you need additional information or
229N/A# have any questions.
229N/A#
229N/A
229N/ABUILDDIR = ../..
229N/APACKAGE = java.net
229N/ALIBRARY = net
229N/APRODUCT = sun
229N/Ainclude $(BUILDDIR)/common/Defs.gmk
229N/A
229N/A#
229N/A# Files
229N/A#
229N/Ainclude FILES_c.gmk
229N/A
229N/AAUTO_FILES_JAVA_DIRS = java/net
229N/A
229N/Aifeq ($(PLATFORM), windows)
229N/A # Windows 9x module only needed on 32-bit build
229N/A ifeq ($(ARCH_DATA_MODEL), 32)
229N/A FILES_c += NetworkInterface_win9x.c
229N/A endif
229N/A FILES_c += NTLMAuthSequence.c
229N/A FILES_c += NetworkInterface_winXP.c
229N/Aendif
229N/A
229N/AFILES_export = \
229N/A java/net/Socket.java \
229N/A java/net/SocketOptions.java \
229N/A java/net/SocketImpl.java \
229N/A java/net/AbstractPlainSocketImpl.java \
229N/A java/net/PlainSocketImpl.java \
229N/A java/net/ServerSocket.java \
229N/A java/net/InetAddress.java \
229N/A java/net/Inet4Address.java \
229N/A java/net/Inet6Address.java \
229N/A java/net/InetAddressImpl.java \
229N/A java/net/Inet4AddressImpl.java \
229N/A java/net/Inet6AddressImpl.java \
229N/A java/net/NetworkInterface.java \
229N/A java/net/SocketInputStream.java \
229N/A java/net/SocketOutputStream.java \
229N/A java/net/DefaultDatagramSocketImplFactory.java \
229N/A java/net/DatagramPacket.java \
229N/A java/net/DatagramSocket.java \
229N/A java/net/DatagramSocketImpl.java \
229N/A java/net/AbstractPlainDatagramSocketImpl.java \
229N/A java/net/MulticastSocket.java \
229N/A java/net/UnknownHostException.java \
229N/A java/net/ProtocolException.java \
229N/A sun/net/spi/DefaultProxySelector.java
229N/A
229N/Aifeq ($(PLATFORM), windows)
229N/A FILES_export += java/net/TwoStacksPlainSocketImpl.java
229N/A FILES_export += java/net/DualStackPlainSocketImpl.java
229N/A FILES_export += java/net/TwoStacksPlainDatagramSocketImpl.java
229N/A FILES_export += java/net/DualStackPlainDatagramSocketImpl.java
229N/Aelse
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