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