Makefile revision 3877
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# Copyright (c) 1995, 2010, Oracle and/or its affiliates. All rights reserved.
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# This code is free software; you can redistribute it and/or modify it
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# under the terms of the GNU General Public License version 2 only, as
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# published by the Free Software Foundation. Oracle designates this
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# particular file as subject to the "Classpath" exception as provided
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# by Oracle in the LICENSE file that accompanied this code.
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# This code is distributed in the hope that it will be useful, but WITHOUT
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# version 2 for more details (a copy is included in the LICENSE file that
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# accompanied this code).
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# You should have received a copy of the GNU General Public License version
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# 2 along with this work; if not, write to the Free Software Foundation,
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# or visit www.oracle.com if you need additional information or have any
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# questions.
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteBUILDDIR = ../..
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn FortePACKAGE = java.net
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteLIBRARY = net
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn FortePRODUCT = sun
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forteinclude $(BUILDDIR)/common/Defs.gmk
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# Files
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forteinclude FILES_c.gmk
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteAUTO_FILES_JAVA_DIRS = java/net
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forteifeq ($(PLATFORM), windows)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte FILES_c += NTLMAuthSequence.c
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte FILES_c += NetworkInterface_winXP.c
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forteelse
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte FILES_c += SdpSupport.c
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forteendif
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteFILES_export = \
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte java/net/Socket.java \
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte java/net/SocketOptions.java \
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte java/net/SocketImpl.java \
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte java/net/AbstractPlainSocketImpl.java \
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte java/net/PlainSocketImpl.java \
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte java/net/ServerSocket.java \
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte java/net/InetAddress.java \
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte java/net/Inet4Address.java \
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte java/net/Inet6Address.java \
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte java/net/InetAddressImpl.java \
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte java/net/Inet4AddressImpl.java \
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte java/net/Inet6AddressImpl.java \
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte java/net/NetworkInterface.java \
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte java/net/SocketInputStream.java \
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte java/net/SocketOutputStream.java \
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte java/net/DefaultDatagramSocketImplFactory.java \
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte java/net/DatagramPacket.java \
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte java/net/DatagramSocket.java \
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte java/net/DatagramSocketImpl.java \
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte java/net/AbstractPlainDatagramSocketImpl.java \
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte java/net/MulticastSocket.java \
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte java/net/UnknownHostException.java \
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte java/net/ProtocolException.java \
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte sun/net/spi/DefaultProxySelector.java
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forteifeq ($(PLATFORM), windows)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte FILES_export += java/net/TwoStacksPlainSocketImpl.java
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte FILES_export += java/net/DualStackPlainSocketImpl.java
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte FILES_export += java/net/TwoStacksPlainDatagramSocketImpl.java
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte FILES_export += java/net/DualStackPlainDatagramSocketImpl.java
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forteelse
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte FILES_export += java/net/PlainDatagramSocketImpl.java
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forteendif
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# Find platform specific native code
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Fortevpath %.c $(PLATFORM_SRC)/native/sun/net/dns $(PLATFORM_SRC)/native/sun/net/www/protocol/http/ntlm \
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte $(PLATFORM_SRC)/native/sun/net/sdp $(PLATFORM_SRC)/native/sun/net/spi
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# Include rules
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forteinclude $(BUILDDIR)/common/Mapfile-vers.gmk
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forteinclude $(BUILDDIR)/common/Library.gmk
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forteifeq ($(PLATFORM), windows)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte OTHER_LDLIBS = ws2_32.lib $(JVMLIB) \
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte secur32.lib iphlpapi.lib delayimp.lib \
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte /DELAYLOAD:secur32.dll /DELAYLOAD:iphlpapi.dll
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forteelse
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte OTHER_LDLIBS = $(LIBSOCKET) $(LIBNSL) -ldl $(JVMLIB)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forteendif
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forteifeq ($(PLATFORM), linux)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte OTHER_LDLIBS += -lpthread
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forteendif
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteCLASSES.export += java.lang.Integer java.io.FileDescriptor java.net.InetAddressImplFactory java.net.Inet4AddressImpl java.net.Inet6AddressImpl
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# Resources
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteLOCALE_SET_DEFINITION = jre
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteMISC_FILES = $(LIBDIR) $(LIBDIR)/net.properties
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte$(LIBDIR)/net.properties: $(SHARE_SRC)/lib/net.properties
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte $(install-file)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# SDP configuration template
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forteifeq ($(PLATFORM), solaris)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteSDP_PATH = sdp/sdp.conf.template
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteSDP_CONF = $(LIBDIR)/$(SDP_PATH)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte$(SDP_CONF): $(PLATFORM_SRC)/lib/$(SDP_PATH)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte @$(RM) $*
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte $(install-file)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteMISC_FILES += $(SDP_CONF)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forteendif
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Fortebuild: $(MISC_FILES)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte