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