annotate make/java/net/Makefile @ 594:14f50aee4989

6754988: Update copyright year Summary: Update for files that have been modified starting July 2008 Reviewed-by: ohair, tbell
author xdono
date Thu, 02 Oct 2008 19:58:32 -0700
parents c51121419e30
children 93d1fbe001b8
rev   line source
duke@0 1 #
xdono@594 2 # Copyright 1995-2008 Sun Microsystems, Inc. All Rights Reserved.
duke@0 3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
duke@0 4 #
duke@0 5 # This code is free software; you can redistribute it and/or modify it
duke@0 6 # under the terms of the GNU General Public License version 2 only, as
duke@0 7 # published by the Free Software Foundation. Sun designates this
duke@0 8 # particular file as subject to the "Classpath" exception as provided
duke@0 9 # by Sun in the LICENSE file that accompanied this code.
duke@0 10 #
duke@0 11 # This code is distributed in the hope that it will be useful, but WITHOUT
duke@0 12 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
duke@0 13 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
duke@0 14 # version 2 for more details (a copy is included in the LICENSE file that
duke@0 15 # accompanied this code).
duke@0 16 #
duke@0 17 # You should have received a copy of the GNU General Public License version
duke@0 18 # 2 along with this work; if not, write to the Free Software Foundation,
duke@0 19 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
duke@0 20 #
duke@0 21 # Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
duke@0 22 # CA 95054 USA or visit www.sun.com if you need additional information or
duke@0 23 # have any questions.
duke@0 24 #
duke@0 25
duke@0 26 BUILDDIR = ../..
duke@0 27 PACKAGE = java.net
duke@0 28 LIBRARY = net
duke@0 29 PRODUCT = sun
duke@0 30 include $(BUILDDIR)/common/Defs.gmk
duke@0 31
duke@0 32 #
duke@0 33 # Files
duke@0 34 #
duke@0 35 include FILES_c.gmk
duke@0 36
duke@0 37 AUTO_FILES_JAVA_DIRS = java/net
duke@0 38
duke@0 39 ifeq ($(PLATFORM), windows)
duke@0 40 # Windows 9x module only needed on 32-bit build
duke@0 41 ifeq ($(ARCH_DATA_MODEL), 32)
duke@0 42 FILES_c += NetworkInterface_win9x.c
duke@0 43 endif
duke@0 44 FILES_c += NTLMAuthSequence.c
duke@0 45 FILES_c += NetworkInterface_winXP.c
duke@0 46 endif
duke@0 47
duke@0 48 FILES_export = \
duke@0 49 java/net/Socket.java \
duke@0 50 java/net/SocketOptions.java \
duke@0 51 java/net/SocketImpl.java \
duke@0 52 java/net/AbstractPlainSocketImpl.java \
duke@0 53 java/net/PlainSocketImpl.java \
duke@0 54 java/net/ServerSocket.java \
duke@0 55 java/net/InetAddress.java \
duke@0 56 java/net/Inet4Address.java \
duke@0 57 java/net/Inet6Address.java \
duke@0 58 java/net/InetAddressImpl.java \
duke@0 59 java/net/Inet4AddressImpl.java \
duke@0 60 java/net/Inet6AddressImpl.java \
duke@0 61 java/net/NetworkInterface.java \
duke@0 62 java/net/SocketInputStream.java \
duke@0 63 java/net/SocketOutputStream.java \
duke@0 64 java/net/DefaultDatagramSocketImplFactory.java \
duke@0 65 java/net/DatagramPacket.java \
duke@0 66 java/net/DatagramSocket.java \
duke@0 67 java/net/DatagramSocketImpl.java \
duke@0 68 java/net/AbstractPlainDatagramSocketImpl.java \
duke@0 69 java/net/MulticastSocket.java \
duke@0 70 java/net/UnknownHostException.java \
duke@0 71 java/net/ProtocolException.java \
duke@0 72 sun/net/spi/DefaultProxySelector.java
duke@0 73
duke@0 74 ifeq ($(PLATFORM), windows)
duke@0 75 FILES_export += java/net/TwoStacksPlainSocketImpl.java
duke@0 76 FILES_export += java/net/DualStackPlainSocketImpl.java
duke@0 77 FILES_export += java/net/TwoStacksPlainDatagramSocketImpl.java
duke@0 78 FILES_export += java/net/DualStackPlainDatagramSocketImpl.java
duke@0 79 else
duke@0 80 FILES_export += java/net/PlainDatagramSocketImpl.java
duke@0 81 endif
duke@0 82
duke@0 83 #
duke@0 84 # Find platform specific native code
duke@0 85 #
duke@0 86 vpath %.c $(PLATFORM_SRC)/native/sun/net/dns $(PLATFORM_SRC)/native/sun/net/www/protocol/http $(PLATFORM_SRC)/native/sun/net/spi
duke@0 87
duke@0 88 #
duke@0 89 # Include rules
duke@0 90 #
duke@0 91 include $(BUILDDIR)/common/Mapfile-vers.gmk
duke@0 92
duke@0 93 include $(BUILDDIR)/common/Library.gmk
duke@0 94
duke@0 95 ifeq ($(PLATFORM), windows)
duke@0 96 OTHER_LDLIBS = ws2_32.lib $(JVMLIB)
duke@0 97 else
duke@0 98 OTHER_LDLIBS = $(LIBSOCKET) -lnsl -ldl $(JVMLIB)
duke@0 99 endif
duke@0 100 ifeq ($(PLATFORM), linux)
duke@0 101 OTHER_LDLIBS += -lpthread
duke@0 102 endif
duke@0 103
duke@0 104 CLASSES.export += java.lang.Integer java.io.FileDescriptor java.net.InetAddressImplFactory java.net.Inet4AddressImpl java.net.Inet6AddressImpl
duke@0 105
duke@0 106 #
duke@0 107 # Resources
duke@0 108 #
duke@0 109 LOCALE_SET_DEFINITION = jre
duke@0 110
duke@0 111 properties: $(LIBDIR) $(LIBDIR)/net.properties
duke@0 112
duke@0 113 $(LIBDIR)/net.properties: $(SHARE_SRC)/lib/net.properties
duke@0 114 @$(RM) $@
duke@0 115 $(CP) $< $@
duke@0 116
duke@0 117 build: properties
duke@0 118