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