annotate make/java/net/Makefile @ 3261:a06412e13bf7

6962318: Update copyright year Reviewed-by: xdono
author ohair
date Tue, 28 Dec 2010 15:53:50 -0800
parents 174916d435c9
children 6aeed99af874
rev   line source
duke@0 1 #
ohair@3261 2 # Copyright (c) 1995, 2010, Oracle and/or its affiliates. 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
ohair@2362 7 # published by the Free Software Foundation. Oracle designates this
duke@0 8 # particular file as subject to the "Classpath" exception as provided
ohair@2362 9 # by Oracle 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 #
ohair@2362 21 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
ohair@2362 22 # or visit www.oracle.com if you need additional information or have any
ohair@2362 23 # questions.
duke@0 24 #
duke@0 25
duke@0 26 BUILDDIR = ../..
mchung@2080 27 MODULE = base
duke@0 28 PACKAGE = java.net
duke@0 29 LIBRARY = net
duke@0 30 PRODUCT = sun
duke@0 31 include $(BUILDDIR)/common/Defs.gmk
duke@0 32
duke@0 33 #
duke@0 34 # Files
duke@0 35 #
duke@0 36 include FILES_c.gmk
duke@0 37
duke@0 38 AUTO_FILES_JAVA_DIRS = java/net
duke@0 39
duke@0 40 ifeq ($(PLATFORM), windows)
duke@0 41 # Windows 9x module only needed on 32-bit build
duke@0 42 ifeq ($(ARCH_DATA_MODEL), 32)
duke@0 43 FILES_c += NetworkInterface_win9x.c
duke@0 44 endif
duke@0 45 FILES_c += NTLMAuthSequence.c
duke@0 46 FILES_c += NetworkInterface_winXP.c
alanb@2736 47 else
alanb@2736 48 FILES_c += SdpSupport.c
duke@0 49 endif
duke@0 50
duke@0 51 FILES_export = \
duke@0 52 java/net/Socket.java \
duke@0 53 java/net/SocketOptions.java \
duke@0 54 java/net/SocketImpl.java \
duke@0 55 java/net/AbstractPlainSocketImpl.java \
duke@0 56 java/net/PlainSocketImpl.java \
duke@0 57 java/net/ServerSocket.java \
duke@0 58 java/net/InetAddress.java \
duke@0 59 java/net/Inet4Address.java \
duke@0 60 java/net/Inet6Address.java \
duke@0 61 java/net/InetAddressImpl.java \
duke@0 62 java/net/Inet4AddressImpl.java \
duke@0 63 java/net/Inet6AddressImpl.java \
duke@0 64 java/net/NetworkInterface.java \
duke@0 65 java/net/SocketInputStream.java \
duke@0 66 java/net/SocketOutputStream.java \
duke@0 67 java/net/DefaultDatagramSocketImplFactory.java \
duke@0 68 java/net/DatagramPacket.java \
duke@0 69 java/net/DatagramSocket.java \
duke@0 70 java/net/DatagramSocketImpl.java \
duke@0 71 java/net/AbstractPlainDatagramSocketImpl.java \
duke@0 72 java/net/MulticastSocket.java \
duke@0 73 java/net/UnknownHostException.java \
duke@0 74 java/net/ProtocolException.java \
duke@0 75 sun/net/spi/DefaultProxySelector.java
duke@0 76
duke@0 77 ifeq ($(PLATFORM), windows)
duke@0 78 FILES_export += java/net/TwoStacksPlainSocketImpl.java
duke@0 79 FILES_export += java/net/DualStackPlainSocketImpl.java
duke@0 80 FILES_export += java/net/TwoStacksPlainDatagramSocketImpl.java
duke@0 81 FILES_export += java/net/DualStackPlainDatagramSocketImpl.java
duke@0 82 else
duke@0 83 FILES_export += java/net/PlainDatagramSocketImpl.java
duke@0 84 endif
duke@0 85
duke@0 86 #
duke@0 87 # Find platform specific native code
duke@0 88 #
alanb@2736 89 vpath %.c $(PLATFORM_SRC)/native/sun/net/dns $(PLATFORM_SRC)/native/sun/net/www/protocol/http/ntlm \
alanb@2736 90 $(PLATFORM_SRC)/native/sun/net/sdp $(PLATFORM_SRC)/native/sun/net/spi
duke@0 91
duke@0 92 #
duke@0 93 # Include rules
duke@0 94 #
duke@0 95 include $(BUILDDIR)/common/Mapfile-vers.gmk
duke@0 96
duke@0 97 include $(BUILDDIR)/common/Library.gmk
duke@0 98
duke@0 99 ifeq ($(PLATFORM), windows)
duke@0 100 OTHER_LDLIBS = ws2_32.lib $(JVMLIB)
duke@0 101 else
martin@2467 102 OTHER_LDLIBS = $(LIBSOCKET) $(LIBNSL) -ldl $(JVMLIB)
duke@0 103 endif
duke@0 104 ifeq ($(PLATFORM), linux)
duke@0 105 OTHER_LDLIBS += -lpthread
duke@0 106 endif
duke@0 107
duke@0 108 CLASSES.export += java.lang.Integer java.io.FileDescriptor java.net.InetAddressImplFactory java.net.Inet4AddressImpl java.net.Inet6AddressImpl
duke@0 109
duke@0 110 #
duke@0 111 # Resources
duke@0 112 #
duke@0 113 LOCALE_SET_DEFINITION = jre
duke@0 114
alanb@1040 115 MISC_FILES = $(LIBDIR) $(LIBDIR)/net.properties
duke@0 116
duke@0 117 $(LIBDIR)/net.properties: $(SHARE_SRC)/lib/net.properties
mchung@2080 118 $(install-file)
duke@0 119
alanb@1040 120 #
alanb@1040 121 # SDP configuration template
alanb@1040 122 #
alanb@1040 123 ifeq ($(PLATFORM), solaris)
alanb@1040 124 SDP_PATH = sdp/sdp.conf.template
alanb@1040 125 SDP_CONF = $(LIBDIR)/$(SDP_PATH)
alanb@1040 126 $(SDP_CONF): $(PLATFORM_SRC)/lib/$(SDP_PATH)
alanb@1040 127 @$(RM) $*
alanb@1040 128 $(install-file)
duke@0 129
alanb@1040 130 MISC_FILES += $(SDP_CONF)
alanb@1040 131 endif
alanb@1040 132
alanb@1040 133 build: $(MISC_FILES)
alanb@1040 134