jdk/make/java/net/Makefile
author ohair
Wed, 06 Apr 2011 22:06:11 -0700
changeset 9035 1255eb81cc2f
parent 8583 15dea0fdc2ea
child 9050 26c2c1de1631
permissions -rw-r--r--
7033660: Update copyright year to 2011 on any files changed in 2011 Reviewed-by: dholmes
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
     1
#
9035
1255eb81cc2f 7033660: Update copyright year to 2011 on any files changed in 2011
ohair
parents: 8583
diff changeset
     2
# Copyright (c) 1995, 2011, Oracle and/or its affiliates. All rights reserved.
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
     3
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
90ce3da70b43 Initial load
duke
parents:
diff changeset
     4
#
90ce3da70b43 Initial load
duke
parents:
diff changeset
     5
# This code is free software; you can redistribute it and/or modify it
90ce3da70b43 Initial load
duke
parents:
diff changeset
     6
# under the terms of the GNU General Public License version 2 only, as
5506
202f599c92aa 6943119: Rebrand source copyright notices
ohair
parents: 4665
diff changeset
     7
# published by the Free Software Foundation.  Oracle designates this
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
     8
# particular file as subject to the "Classpath" exception as provided
5506
202f599c92aa 6943119: Rebrand source copyright notices
ohair
parents: 4665
diff changeset
     9
# by Oracle in the LICENSE file that accompanied this code.
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    10
#
90ce3da70b43 Initial load
duke
parents:
diff changeset
    11
# This code is distributed in the hope that it will be useful, but WITHOUT
90ce3da70b43 Initial load
duke
parents:
diff changeset
    12
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
90ce3da70b43 Initial load
duke
parents:
diff changeset
    13
# FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
90ce3da70b43 Initial load
duke
parents:
diff changeset
    14
# version 2 for more details (a copy is included in the LICENSE file that
90ce3da70b43 Initial load
duke
parents:
diff changeset
    15
# accompanied this code).
90ce3da70b43 Initial load
duke
parents:
diff changeset
    16
#
90ce3da70b43 Initial load
duke
parents:
diff changeset
    17
# You should have received a copy of the GNU General Public License version
90ce3da70b43 Initial load
duke
parents:
diff changeset
    18
# 2 along with this work; if not, write to the Free Software Foundation,
90ce3da70b43 Initial load
duke
parents:
diff changeset
    19
# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    20
#
5506
202f599c92aa 6943119: Rebrand source copyright notices
ohair
parents: 4665
diff changeset
    21
# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
202f599c92aa 6943119: Rebrand source copyright notices
ohair
parents: 4665
diff changeset
    22
# or visit www.oracle.com if you need additional information or have any
202f599c92aa 6943119: Rebrand source copyright notices
ohair
parents: 4665
diff changeset
    23
# questions.
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    24
#
90ce3da70b43 Initial load
duke
parents:
diff changeset
    25
90ce3da70b43 Initial load
duke
parents:
diff changeset
    26
BUILDDIR = ../..
90ce3da70b43 Initial load
duke
parents:
diff changeset
    27
PACKAGE = java.net
90ce3da70b43 Initial load
duke
parents:
diff changeset
    28
LIBRARY = net
90ce3da70b43 Initial load
duke
parents:
diff changeset
    29
PRODUCT = sun
90ce3da70b43 Initial load
duke
parents:
diff changeset
    30
include $(BUILDDIR)/common/Defs.gmk
90ce3da70b43 Initial load
duke
parents:
diff changeset
    31
90ce3da70b43 Initial load
duke
parents:
diff changeset
    32
#
90ce3da70b43 Initial load
duke
parents:
diff changeset
    33
# Files
90ce3da70b43 Initial load
duke
parents:
diff changeset
    34
#
90ce3da70b43 Initial load
duke
parents:
diff changeset
    35
include FILES_c.gmk
90ce3da70b43 Initial load
duke
parents:
diff changeset
    36
90ce3da70b43 Initial load
duke
parents:
diff changeset
    37
AUTO_FILES_JAVA_DIRS = java/net
90ce3da70b43 Initial load
duke
parents:
diff changeset
    38
90ce3da70b43 Initial load
duke
parents:
diff changeset
    39
ifeq ($(PLATFORM), windows)
90ce3da70b43 Initial load
duke
parents:
diff changeset
    40
    # Windows 9x module only needed on 32-bit build
90ce3da70b43 Initial load
duke
parents:
diff changeset
    41
    ifeq ($(ARCH_DATA_MODEL), 32)
90ce3da70b43 Initial load
duke
parents:
diff changeset
    42
	FILES_c += NetworkInterface_win9x.c
90ce3da70b43 Initial load
duke
parents:
diff changeset
    43
    endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
    44
    FILES_c += NTLMAuthSequence.c
90ce3da70b43 Initial load
duke
parents:
diff changeset
    45
    FILES_c += NetworkInterface_winXP.c
6525
56be41b86ef8 6965072: Need API to create SDP sockets
alanb
parents: 5780
diff changeset
    46
else
56be41b86ef8 6965072: Need API to create SDP sockets
alanb
parents: 5780
diff changeset
    47
    FILES_c += SdpSupport.c
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    48
endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
    49
90ce3da70b43 Initial load
duke
parents:
diff changeset
    50
FILES_export = \
90ce3da70b43 Initial load
duke
parents:
diff changeset
    51
    java/net/Socket.java \
90ce3da70b43 Initial load
duke
parents:
diff changeset
    52
    java/net/SocketOptions.java \
90ce3da70b43 Initial load
duke
parents:
diff changeset
    53
    java/net/SocketImpl.java \
90ce3da70b43 Initial load
duke
parents:
diff changeset
    54
    java/net/AbstractPlainSocketImpl.java \
90ce3da70b43 Initial load
duke
parents:
diff changeset
    55
    java/net/PlainSocketImpl.java \
90ce3da70b43 Initial load
duke
parents:
diff changeset
    56
    java/net/ServerSocket.java \
90ce3da70b43 Initial load
duke
parents:
diff changeset
    57
    java/net/InetAddress.java \
90ce3da70b43 Initial load
duke
parents:
diff changeset
    58
    java/net/Inet4Address.java \
90ce3da70b43 Initial load
duke
parents:
diff changeset
    59
    java/net/Inet6Address.java \
90ce3da70b43 Initial load
duke
parents:
diff changeset
    60
    java/net/InetAddressImpl.java \
90ce3da70b43 Initial load
duke
parents:
diff changeset
    61
    java/net/Inet4AddressImpl.java \
90ce3da70b43 Initial load
duke
parents:
diff changeset
    62
    java/net/Inet6AddressImpl.java \
90ce3da70b43 Initial load
duke
parents:
diff changeset
    63
    java/net/NetworkInterface.java \
90ce3da70b43 Initial load
duke
parents:
diff changeset
    64
    java/net/SocketInputStream.java \
90ce3da70b43 Initial load
duke
parents:
diff changeset
    65
    java/net/SocketOutputStream.java \
90ce3da70b43 Initial load
duke
parents:
diff changeset
    66
    java/net/DefaultDatagramSocketImplFactory.java \
90ce3da70b43 Initial load
duke
parents:
diff changeset
    67
    java/net/DatagramPacket.java \
90ce3da70b43 Initial load
duke
parents:
diff changeset
    68
    java/net/DatagramSocket.java \
90ce3da70b43 Initial load
duke
parents:
diff changeset
    69
    java/net/DatagramSocketImpl.java \
90ce3da70b43 Initial load
duke
parents:
diff changeset
    70
    java/net/AbstractPlainDatagramSocketImpl.java \
90ce3da70b43 Initial load
duke
parents:
diff changeset
    71
    java/net/MulticastSocket.java \
90ce3da70b43 Initial load
duke
parents:
diff changeset
    72
    java/net/UnknownHostException.java \
90ce3da70b43 Initial load
duke
parents:
diff changeset
    73
    java/net/ProtocolException.java \
90ce3da70b43 Initial load
duke
parents:
diff changeset
    74
    sun/net/spi/DefaultProxySelector.java
90ce3da70b43 Initial load
duke
parents:
diff changeset
    75
90ce3da70b43 Initial load
duke
parents:
diff changeset
    76
ifeq ($(PLATFORM), windows) 
90ce3da70b43 Initial load
duke
parents:
diff changeset
    77
    FILES_export += java/net/TwoStacksPlainSocketImpl.java
90ce3da70b43 Initial load
duke
parents:
diff changeset
    78
    FILES_export += java/net/DualStackPlainSocketImpl.java
90ce3da70b43 Initial load
duke
parents:
diff changeset
    79
    FILES_export += java/net/TwoStacksPlainDatagramSocketImpl.java
90ce3da70b43 Initial load
duke
parents:
diff changeset
    80
    FILES_export += java/net/DualStackPlainDatagramSocketImpl.java
90ce3da70b43 Initial load
duke
parents:
diff changeset
    81
else
90ce3da70b43 Initial load
duke
parents:
diff changeset
    82
    FILES_export += java/net/PlainDatagramSocketImpl.java
90ce3da70b43 Initial load
duke
parents:
diff changeset
    83
endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
    84
90ce3da70b43 Initial load
duke
parents:
diff changeset
    85
#
90ce3da70b43 Initial load
duke
parents:
diff changeset
    86
# Find platform specific native code
90ce3da70b43 Initial load
duke
parents:
diff changeset
    87
#
6525
56be41b86ef8 6965072: Need API to create SDP sockets
alanb
parents: 5780
diff changeset
    88
vpath %.c $(PLATFORM_SRC)/native/sun/net/dns $(PLATFORM_SRC)/native/sun/net/www/protocol/http/ntlm \
56be41b86ef8 6965072: Need API to create SDP sockets
alanb
parents: 5780
diff changeset
    89
    $(PLATFORM_SRC)/native/sun/net/sdp $(PLATFORM_SRC)/native/sun/net/spi
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    90
90ce3da70b43 Initial load
duke
parents:
diff changeset
    91
#
90ce3da70b43 Initial load
duke
parents:
diff changeset
    92
# Include rules
90ce3da70b43 Initial load
duke
parents:
diff changeset
    93
#
90ce3da70b43 Initial load
duke
parents:
diff changeset
    94
include $(BUILDDIR)/common/Mapfile-vers.gmk
90ce3da70b43 Initial load
duke
parents:
diff changeset
    95
90ce3da70b43 Initial load
duke
parents:
diff changeset
    96
include $(BUILDDIR)/common/Library.gmk
90ce3da70b43 Initial load
duke
parents:
diff changeset
    97
90ce3da70b43 Initial load
duke
parents:
diff changeset
    98
ifeq ($(PLATFORM), windows)
90ce3da70b43 Initial load
duke
parents:
diff changeset
    99
  OTHER_LDLIBS = ws2_32.lib $(JVMLIB)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   100
else
5780
3f7be5f312ae 6960394: Stop linking with -lnsl on Linux
martin
parents: 5506
diff changeset
   101
  OTHER_LDLIBS = $(LIBSOCKET) $(LIBNSL) -ldl $(JVMLIB)
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   102
endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   103
ifeq ($(PLATFORM), linux)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   104
  OTHER_LDLIBS += -lpthread
90ce3da70b43 Initial load
duke
parents:
diff changeset
   105
endif
90ce3da70b43 Initial load
duke
parents:
diff changeset
   106
90ce3da70b43 Initial load
duke
parents:
diff changeset
   107
CLASSES.export += java.lang.Integer java.io.FileDescriptor java.net.InetAddressImplFactory java.net.Inet4AddressImpl java.net.Inet6AddressImpl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   108
90ce3da70b43 Initial load
duke
parents:
diff changeset
   109
#
90ce3da70b43 Initial load
duke
parents:
diff changeset
   110
# Resources
90ce3da70b43 Initial load
duke
parents:
diff changeset
   111
#
90ce3da70b43 Initial load
duke
parents:
diff changeset
   112
LOCALE_SET_DEFINITION = jre
90ce3da70b43 Initial load
duke
parents:
diff changeset
   113
2446
07047237e4d4 4890703: Support SDP (sol)
alanb
parents: 1247
diff changeset
   114
MISC_FILES = $(LIBDIR) $(LIBDIR)/net.properties
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   115
90ce3da70b43 Initial load
duke
parents:
diff changeset
   116
$(LIBDIR)/net.properties: $(SHARE_SRC)/lib/net.properties
4665
d14dc3d9e1fa 6911737: Module build: generate modules with native libraries and any other files not in jar
mchung
parents: 4157
diff changeset
   117
	$(install-file)
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   118
2446
07047237e4d4 4890703: Support SDP (sol)
alanb
parents: 1247
diff changeset
   119
# 
07047237e4d4 4890703: Support SDP (sol)
alanb
parents: 1247
diff changeset
   120
# SDP configuration template
07047237e4d4 4890703: Support SDP (sol)
alanb
parents: 1247
diff changeset
   121
#
07047237e4d4 4890703: Support SDP (sol)
alanb
parents: 1247
diff changeset
   122
ifeq ($(PLATFORM), solaris)
07047237e4d4 4890703: Support SDP (sol)
alanb
parents: 1247
diff changeset
   123
SDP_PATH = sdp/sdp.conf.template
07047237e4d4 4890703: Support SDP (sol)
alanb
parents: 1247
diff changeset
   124
SDP_CONF = $(LIBDIR)/$(SDP_PATH)
07047237e4d4 4890703: Support SDP (sol)
alanb
parents: 1247
diff changeset
   125
$(SDP_CONF): $(PLATFORM_SRC)/lib/$(SDP_PATH)
07047237e4d4 4890703: Support SDP (sol)
alanb
parents: 1247
diff changeset
   126
	@$(RM) $*
07047237e4d4 4890703: Support SDP (sol)
alanb
parents: 1247
diff changeset
   127
	$(install-file)
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   128
2446
07047237e4d4 4890703: Support SDP (sol)
alanb
parents: 1247
diff changeset
   129
MISC_FILES += $(SDP_CONF)
07047237e4d4 4890703: Support SDP (sol)
alanb
parents: 1247
diff changeset
   130
endif
07047237e4d4 4890703: Support SDP (sol)
alanb
parents: 1247
diff changeset
   131
07047237e4d4 4890703: Support SDP (sol)
alanb
parents: 1247
diff changeset
   132
build: $(MISC_FILES)
07047237e4d4 4890703: Support SDP (sol)
alanb
parents: 1247
diff changeset
   133