Makefile revision 221
98N/A#
98N/A# Copyright 1995-2007 Sun Microsystems, Inc. All Rights Reserved.
910N/A# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
753N/A#
98N/A# This code is free software; you can redistribute it and/or modify it
98N/A# under the terms of the GNU General Public License version 2 only, as
919N/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.
98N/A#
98N/A
493N/ABUILDDIR = ../..
493N/APACKAGE = java.net
98N/ALIBRARY = net
98N/APRODUCT = sun
753N/Ainclude $(BUILDDIR)/common/Defs.gmk
493N/A
911N/A#
911N/A# Files
911N/A#
911N/Ainclude FILES_c.gmk
493N/A
493N/AAUTO_FILES_JAVA_DIRS = java/net
493N/A
493N/Aifeq ($(PLATFORM), windows)
98N/A # Windows 9x module only needed on 32-bit build
98N/A ifeq ($(ARCH_DATA_MODEL), 32)
493N/A FILES_c += NetworkInterface_win9x.c
493N/A endif
98N/A FILES_c += NTLMAuthSequence.c
98N/A FILES_c += NetworkInterface_winXP.c
156N/Aendif
156N/A
98N/AFILES_export = \
98N/A java/net/Socket.java \
98N/A java/net/SocketOptions.java \
606N/A java/net/SocketImpl.java \
606N/A java/net/AbstractPlainSocketImpl.java \
98N/A java/net/PlainSocketImpl.java \
98N/A java/net/ServerSocket.java \
98N/A java/net/InetAddress.java \
98N/A java/net/Inet4Address.java \
98N/A java/net/Inet6Address.java \
606N/A java/net/InetAddressImpl.java \
851N/A java/net/Inet4AddressImpl.java \
493N/A java/net/Inet6AddressImpl.java \
98N/A java/net/NetworkInterface.java \
98N/A java/net/SocketInputStream.java \
851N/A java/net/SocketOutputStream.java \
493N/A java/net/DefaultDatagramSocketImplFactory.java \
231N/A java/net/DatagramPacket.java \
231N/A java/net/DatagramSocket.java \
851N/A java/net/DatagramSocketImpl.java \
493N/A java/net/AbstractPlainDatagramSocketImpl.java \
98N/A java/net/MulticastSocket.java \
98N/A java/net/UnknownHostException.java \
493N/A java/net/ProtocolException.java \
98N/A sun/net/spi/DefaultProxySelector.java
98N/A
98N/Aifeq ($(PLATFORM), windows)
98N/A FILES_export += java/net/TwoStacksPlainSocketImpl.java
98N/A FILES_export += java/net/DualStackPlainSocketImpl.java
98N/A FILES_export += java/net/TwoStacksPlainDatagramSocketImpl.java
851N/A FILES_export += java/net/DualStackPlainDatagramSocketImpl.java
851N/Aelse
659N/A FILES_export += java/net/PlainDatagramSocketImpl.java
378N/Aendif
659N/A
378N/A#
606N/A# Find platform specific native code
493N/A#
606N/Avpath %.c $(PLATFORM_SRC)/native/sun/net/dns $(PLATFORM_SRC)/native/sun/net/www/protocol/http $(PLATFORM_SRC)/native/sun/net/spi
493N/A
606N/A#
493N/A# Include rules
98N/A#
493N/Ainclude $(BUILDDIR)/common/Mapfile-vers.gmk
606N/A
606N/Ainclude $(BUILDDIR)/common/Library.gmk
98N/A
493N/Aifeq ($(PLATFORM), windows)
606N/A OTHER_LDLIBS = ws2_32.lib $(JVMLIB)
606N/A # Will not compile at warning level 3 if warnings are fatal
98N/A COMPILER_WARNINGS_FATAL=false
98N/Aelse
493N/A OTHER_LDLIBS = $(LIBSOCKET) -lnsl -ldl $(JVMLIB)
606N/Aendif
606N/Aifeq ($(PLATFORM), linux)
98N/A OTHER_LDLIBS += -lpthread
98N/Aendif
493N/A
98N/ACLASSES.export += java.lang.Integer java.io.FileDescriptor java.net.InetAddressImplFactory java.net.Inet4AddressImpl java.net.Inet6AddressImpl
606N/A
606N/A#
231N/A# Resources
606N/A#
606N/ALOCALE_SET_DEFINITION = jre
231N/A
231N/Aproperties: $(LIBDIR) $(LIBDIR)/net.properties
606N/A
606N/A$(LIBDIR)/net.properties: $(SHARE_SRC)/lib/net.properties
231N/A @$(RM) $@
231N/A $(CP) $< $@
606N/A
606N/Abuild: properties
98N/A
98N/A