Makefile revision 1040
127N/A#
127N/A# Copyright 1995-2008 Sun Microsystems, Inc. All Rights Reserved.
127N/A# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
127N/A#
127N/A# This code is free software; you can redistribute it and/or modify it
127N/A# under the terms of the GNU General Public License version 2 only, as
127N/A# published by the Free Software Foundation. Sun designates this
127N/A# particular file as subject to the "Classpath" exception as provided
127N/A# by Sun in the LICENSE file that accompanied this code.
127N/A#
127N/A# This code is distributed in the hope that it will be useful, but WITHOUT
127N/A# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
127N/A# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
127N/A# version 2 for more details (a copy is included in the LICENSE file that
127N/A# accompanied this code).
127N/A#
127N/A# You should have received a copy of the GNU General Public License version
127N/A# 2 along with this work; if not, write to the Free Software Foundation,
127N/A# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
127N/A#
127N/A# Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
127N/A# CA 95054 USA or visit www.sun.com if you need additional information or
5636N/A# have any questions.
127N/A#
127N/A
127N/ABUILDDIR = ../..
127N/APACKAGE = java.net
127N/ALIBRARY = net
4122N/APRODUCT = sun
618N/Ainclude $(BUILDDIR)/common/Defs.gmk
127N/A
4122N/A#
844N/A# Files
4122N/A#
127N/Ainclude FILES_c.gmk
1258N/A
127N/AAUTO_FILES_JAVA_DIRS = java/net
4122N/A
2899N/Aifeq ($(PLATFORM), windows)
3817N/A # Windows 9x module only needed on 32-bit build
3817N/A ifeq ($(ARCH_DATA_MODEL), 32)
3817N/A FILES_c += NetworkInterface_win9x.c
127N/A endif
4122N/A FILES_c += NTLMAuthSequence.c
4122N/A FILES_c += NetworkInterface_winXP.c
738N/Aendif
127N/A
127N/AFILES_export = \
4122N/A java/net/Socket.java \
127N/A java/net/SocketOptions.java \
1938N/A java/net/SocketImpl.java \
1938N/A java/net/AbstractPlainSocketImpl.java \
127N/A java/net/PlainSocketImpl.java \
4122N/A java/net/ServerSocket.java \
3477N/A java/net/InetAddress.java \
4122N/A java/net/Inet4Address.java \
127N/A java/net/Inet6Address.java \
4122N/A java/net/InetAddressImpl.java \
127N/A java/net/Inet4AddressImpl.java \
4122N/A java/net/Inet6AddressImpl.java \
181N/A java/net/NetworkInterface.java \
4337N/A java/net/SocketInputStream.java \
4337N/A java/net/SocketOutputStream.java \
127N/A java/net/DefaultDatagramSocketImplFactory.java \
3817N/A java/net/DatagramPacket.java \
5636N/A java/net/DatagramSocket.java \
3817N/A java/net/DatagramSocketImpl.java \
java/net/AbstractPlainDatagramSocketImpl.java \
java/net/MulticastSocket.java \
java/net/UnknownHostException.java \
java/net/ProtocolException.java \
sun/net/spi/DefaultProxySelector.java
ifeq ($(PLATFORM), windows)
FILES_export += java/net/TwoStacksPlainSocketImpl.java
FILES_export += java/net/DualStackPlainSocketImpl.java
FILES_export += java/net/TwoStacksPlainDatagramSocketImpl.java
FILES_export += java/net/DualStackPlainDatagramSocketImpl.java
else
FILES_export += java/net/PlainDatagramSocketImpl.java
endif
#
# Find platform specific native code
#
vpath %.c $(PLATFORM_SRC)/native/sun/net/dns $(PLATFORM_SRC)/native/sun/net/www/protocol/http $(PLATFORM_SRC)/native/sun/net/spi
#
# Include rules
#
include $(BUILDDIR)/common/Mapfile-vers.gmk
include $(BUILDDIR)/common/Library.gmk
ifeq ($(PLATFORM), windows)
OTHER_LDLIBS = ws2_32.lib $(JVMLIB)
else
OTHER_LDLIBS = $(LIBSOCKET) -lnsl -ldl $(JVMLIB)
endif
ifeq ($(PLATFORM), linux)
OTHER_LDLIBS += -lpthread
endif
CLASSES.export += java.lang.Integer java.io.FileDescriptor java.net.InetAddressImplFactory java.net.Inet4AddressImpl java.net.Inet6AddressImpl
#
# Resources
#
LOCALE_SET_DEFINITION = jre
MISC_FILES = $(LIBDIR) $(LIBDIR)/net.properties
$(LIBDIR)/net.properties: $(SHARE_SRC)/lib/net.properties
@$(RM) $@
$(CP) $< $@
#
# SDP configuration template
#
ifeq ($(PLATFORM), solaris)
SDP_PATH = sdp/sdp.conf.template
SDP_CONF = $(LIBDIR)/$(SDP_PATH)
$(SDP_CONF): $(PLATFORM_SRC)/lib/$(SDP_PATH)
@$(RM) $*
$(install-file)
MISC_FILES += $(SDP_CONF)
endif
build: $(MISC_FILES)