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