Makefile revision 194
fb0951b02ebf51a93acf12721d8857d31ce57ba3Lennart Poettering#
47be870bd83fb3719dffc3ee9348a409ab762a14Lennart Poettering# Copyright 1995-2007 Sun Microsystems, Inc. All Rights Reserved.
47be870bd83fb3719dffc3ee9348a409ab762a14Lennart Poettering# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3e2147858f21943d5f4a781c60f33ac22c6096edKay Sievers#
3e2147858f21943d5f4a781c60f33ac22c6096edKay Sievers# This code is free software; you can redistribute it and/or modify it
47be870bd83fb3719dffc3ee9348a409ab762a14Lennart Poettering# under the terms of the GNU General Public License version 2 only, as
47be870bd83fb3719dffc3ee9348a409ab762a14Lennart Poettering# published by the Free Software Foundation. Sun designates this
5430f7f2bc7330f3088b894166bf3524a067e3d8Lennart Poettering# particular file as subject to the "Classpath" exception as provided
5430f7f2bc7330f3088b894166bf3524a067e3d8Lennart Poettering# by Sun in the LICENSE file that accompanied this code.
47be870bd83fb3719dffc3ee9348a409ab762a14Lennart Poettering#
47be870bd83fb3719dffc3ee9348a409ab762a14Lennart Poettering# This code is distributed in the hope that it will be useful, but WITHOUT
47be870bd83fb3719dffc3ee9348a409ab762a14Lennart Poettering# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
47be870bd83fb3719dffc3ee9348a409ab762a14Lennart Poettering# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
47be870bd83fb3719dffc3ee9348a409ab762a14Lennart Poettering# version 2 for more details (a copy is included in the LICENSE file that
5430f7f2bc7330f3088b894166bf3524a067e3d8Lennart Poettering# accompanied this code).
47be870bd83fb3719dffc3ee9348a409ab762a14Lennart Poettering#
5430f7f2bc7330f3088b894166bf3524a067e3d8Lennart Poettering# You should have received a copy of the GNU General Public License version
47be870bd83fb3719dffc3ee9348a409ab762a14Lennart Poettering# 2 along with this work; if not, write to the Free Software Foundation,
47be870bd83fb3719dffc3ee9348a409ab762a14Lennart Poettering# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4e949c11a1df4547d5f102e4131e07b026369cd7Javier Jardón#
4e949c11a1df4547d5f102e4131e07b026369cd7Javier Jardón# Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
4e949c11a1df4547d5f102e4131e07b026369cd7Javier Jardón# CA 95054 USA or visit www.sun.com if you need additional information or
00aa832b948a27507c33e2157e46963852cffc85Lennart Poettering# have any questions.
4e949c11a1df4547d5f102e4131e07b026369cd7Javier Jardón#
4e949c11a1df4547d5f102e4131e07b026369cd7Javier Jardón
4e949c11a1df4547d5f102e4131e07b026369cd7Javier JardónBUILDDIR = ../..
47be870bd83fb3719dffc3ee9348a409ab762a14Lennart PoetteringPACKAGE = java.net
78a825f216d39ee0295b00647b059d45467e1d02Kay SieversLIBRARY = net
47be870bd83fb3719dffc3ee9348a409ab762a14Lennart PoetteringPRODUCT = sun
47be870bd83fb3719dffc3ee9348a409ab762a14Lennart Poetteringinclude $(BUILDDIR)/common/Defs.gmk
a80db8bd5f7f15859e8891aab9fc3694ce4cd0bdJavier Jardón
a80db8bd5f7f15859e8891aab9fc3694ce4cd0bdJavier Jardón#
4db6d587c37c0357d20c79bf1a7c9afd4c7ced61Kay Sievers# Files
907dd1953b7517534d646f5b2777780020c896e2Kay Sievers#
eb7bbee6cd182d5c4eb1e1180631c35158f59379Kay Sieversinclude FILES_c.gmk
bbd9b8c2139a70005e4e83d198575e2a10fe1db2Lennart Poettering
3e2147858f21943d5f4a781c60f33ac22c6096edKay SieversAUTO_FILES_JAVA_DIRS = java/net
47be870bd83fb3719dffc3ee9348a409ab762a14Lennart Poettering
22be093ffb403a1c474037939ca9b88b1ee39f77Lennart Poetteringifeq ($(PLATFORM), windows)
d59d0a2b4b41a75eaf618b26b8f8bd1e17de7e2bcee # Windows 9x module only needed on 32-bit build
d59d0a2b4b41a75eaf618b26b8f8bd1e17de7e2bcee ifeq ($(ARCH_DATA_MODEL), 32)
d59d0a2b4b41a75eaf618b26b8f8bd1e17de7e2bcee FILES_c += NetworkInterface_win9x.c
47be870bd83fb3719dffc3ee9348a409ab762a14Lennart Poettering endif
3e2147858f21943d5f4a781c60f33ac22c6096edKay Sievers FILES_c += NTLMAuthSequence.c
8666abb452db73d9a11ead61251eec42bc531cceKay Sievers FILES_c += NetworkInterface_winXP.c
47be870bd83fb3719dffc3ee9348a409ab762a14Lennart Poetteringendif
5e63ce78b5018ba612e794a610a6f13c5eefade7Cristian Rodríguez
3d585edbb14b9705c80183aeb16dfd0a28df0ac9Lennart PoetteringFILES_export = \
5e63ce78b5018ba612e794a610a6f13c5eefade7Cristian Rodríguez java/net/Socket.java \
1c7dde3e475978c569a982d65fd86d4b4e3caad8Bastien Nocera java/net/SocketOptions.java \
1c7dde3e475978c569a982d65fd86d4b4e3caad8Bastien Nocera java/net/SocketImpl.java \
1c7dde3e475978c569a982d65fd86d4b4e3caad8Bastien Nocera java/net/AbstractPlainSocketImpl.java \
1c7dde3e475978c569a982d65fd86d4b4e3caad8Bastien Nocera java/net/PlainSocketImpl.java \
1c7dde3e475978c569a982d65fd86d4b4e3caad8Bastien Nocera java/net/ServerSocket.java \
1c7dde3e475978c569a982d65fd86d4b4e3caad8Bastien Nocera java/net/InetAddress.java \
e9da3678fcfc774b325dc1eaa054d0e00028a1fcLennart Poettering java/net/Inet4Address.java \
e9da3678fcfc774b325dc1eaa054d0e00028a1fcLennart Poettering java/net/Inet6Address.java \
e9da3678fcfc774b325dc1eaa054d0e00028a1fcLennart Poettering java/net/InetAddressImpl.java \
3ce4fad8f548db9edb19869ea540e3192d2123f4Kay Sievers java/net/Inet4AddressImpl.java \
f975e971accc4d50c73ae53167db3df7a7099cf2Lennart Poettering java/net/Inet6AddressImpl.java \
e9da3678fcfc774b325dc1eaa054d0e00028a1fcLennart Poettering java/net/NetworkInterface.java \
47be870bd83fb3719dffc3ee9348a409ab762a14Lennart Poettering java/net/SocketInputStream.java \
47be870bd83fb3719dffc3ee9348a409ab762a14Lennart Poettering java/net/SocketOutputStream.java \
47be870bd83fb3719dffc3ee9348a409ab762a14Lennart Poettering java/net/DefaultDatagramSocketImplFactory.java \
47be870bd83fb3719dffc3ee9348a409ab762a14Lennart Poettering java/net/DatagramPacket.java \
47be870bd83fb3719dffc3ee9348a409ab762a14Lennart Poettering java/net/DatagramSocket.java \
3e2147858f21943d5f4a781c60f33ac22c6096edKay Sievers java/net/DatagramSocketImpl.java \
fe1fed02c7637a2c18cd575f78be7fda27972148Zbigniew Jędrzejewski-Szmek java/net/AbstractPlainDatagramSocketImpl.java \
92ec4495f76a7a2a6c31f5bb2a5240f78dcfe1d2Javier Jardón java/net/MulticastSocket.java \
86b2e20a5e5abf222fb81edcb5d58d012e35cbaaLennart Poettering java/net/UnknownHostException.java \
86b2e20a5e5abf222fb81edcb5d58d012e35cbaaLennart Poettering java/net/ProtocolException.java \
b51fc639f01ee6194af3e7e944a79accce474fe1Dave Reisner sun/net/spi/DefaultProxySelector.java
86b2e20a5e5abf222fb81edcb5d58d012e35cbaaLennart Poettering
86b2e20a5e5abf222fb81edcb5d58d012e35cbaaLennart Poetteringifeq ($(PLATFORM), windows)
c1c02e07ed87e027a6364c4f4aa2468796ca1c56Dave Reisner FILES_export += java/net/TwoStacksPlainSocketImpl.java
96ede2601f27cd5fe52eed96b873bef55cd0ce23Lennart Poettering FILES_export += java/net/DualStackPlainSocketImpl.java
edeb68c53f1cdc452016b4c8512586a70b1262e3Tom Gundersen FILES_export += java/net/TwoStacksPlainDatagramSocketImpl.java
edeb68c53f1cdc452016b4c8512586a70b1262e3Tom Gundersen FILES_export += java/net/DualStackPlainDatagramSocketImpl.java
80a5cbace45a6adbf2f9119edc5a4b10db493064Kay Sieverselse
b37250d661ed67d07c734630617d73e64f6d7e49Zbigniew Jędrzejewski-Szmek FILES_export += java/net/PlainDatagramSocketImpl.java
b37250d661ed67d07c734630617d73e64f6d7e49Zbigniew Jędrzejewski-Szmekendif
6581f00f7eabdaccf587a4b6af60ed4696dd2791Zbigniew Jędrzejewski-Szmek
6581f00f7eabdaccf587a4b6af60ed4696dd2791Zbigniew Jędrzejewski-Szmek#
92ec4495f76a7a2a6c31f5bb2a5240f78dcfe1d2Javier Jardón# Find platform specific native code
fe1fed02c7637a2c18cd575f78be7fda27972148Zbigniew Jędrzejewski-Szmek#
fe1fed02c7637a2c18cd575f78be7fda27972148Zbigniew Jędrzejewski-Szmekvpath %.c $(PLATFORM_SRC)/native/sun/net/dns $(PLATFORM_SRC)/native/sun/net/www/protocol/http $(PLATFORM_SRC)/native/sun/net/spi
fe1fed02c7637a2c18cd575f78be7fda27972148Zbigniew Jędrzejewski-Szmek
fe1fed02c7637a2c18cd575f78be7fda27972148Zbigniew Jędrzejewski-Szmek#
6e92b23f0d6dd398848376bbaf47e54a90ed3389Kay Sievers# Include rules
0eaeca1f2373a323b98c86b47561d98e59c67b25Kay Sievers#
d66ee73a3dd7b5433fc0da3125bbdff740de7745Zbigniew Jędrzejewski-Szmekinclude $(BUILDDIR)/common/Mapfile-vers.gmk
d66ee73a3dd7b5433fc0da3125bbdff740de7745Zbigniew Jędrzejewski-Szmek
d66ee73a3dd7b5433fc0da3125bbdff740de7745Zbigniew Jędrzejewski-Szmekinclude $(BUILDDIR)/common/Library.gmk
3e2147858f21943d5f4a781c60f33ac22c6096edKay Sievers
ac714a78fdca481488d88f84b6332d28083a4511Martin Jansaifeq ($(PLATFORM), windows)
ac714a78fdca481488d88f84b6332d28083a4511Martin Jansa OTHER_LDLIBS = ws2_32.lib $(JVMLIB)
ac714a78fdca481488d88f84b6332d28083a4511Martin Jansa # Will not compile at warning level 3 if warnings are fatal
b62cfcea00862ccbf0e5e297f8a339f70987edefMichael Biebl COMPILER_WARNINGS_FATAL=false
b62cfcea00862ccbf0e5e297f8a339f70987edefMichael Bieblelse
b62cfcea00862ccbf0e5e297f8a339f70987edefMichael Biebl OTHER_LDLIBS = $(LIBSOCKET) -lnsl -ldl $(JVMLIB)
9a60da2834074d970ca063c210fe9d2f05c70532Thierry Redingendif
eb2e280f9c59b66965c9316eadc4c113a13ca744Lucas De Marchiifeq ($(PLATFORM), linux)
be1a67d9d63bfdd4a5f8ba9cfc804030f10f5833Lennart Poettering OTHER_LDLIBS += -lpthread
d1ab0ca07372649dad70a0348d75e394f254e1b6Lennart Poetteringendif
d1ab0ca07372649dad70a0348d75e394f254e1b6Lennart Poettering
27765dfc7a32d790badb29e6498b34edb0b60c33Lennart PoetteringCLASSES.export += java.lang.Integer java.io.FileDescriptor java.net.InetAddressImplFactory java.net.Inet4AddressImpl java.net.Inet6AddressImpl
d1ab0ca07372649dad70a0348d75e394f254e1b6Lennart Poettering
780040dc2a4b08a2c1fe5bd8db3a70e966c2acb3Kay Sievers#
d1ab0ca07372649dad70a0348d75e394f254e1b6Lennart Poettering# Resources
d1ab0ca07372649dad70a0348d75e394f254e1b6Lennart Poettering#
d1ab0ca07372649dad70a0348d75e394f254e1b6Lennart PoetteringLOCALE_SET_DEFINITION = jre
d1ab0ca07372649dad70a0348d75e394f254e1b6Lennart Poettering
d1ab0ca07372649dad70a0348d75e394f254e1b6Lennart Poetteringproperties: $(LIBDIR) $(LIBDIR)/net.properties
d1ab0ca07372649dad70a0348d75e394f254e1b6Lennart Poettering
d1ab0ca07372649dad70a0348d75e394f254e1b6Lennart Poettering$(LIBDIR)/net.properties: $(SHARE_SRC)/lib/net.properties
d1ab0ca07372649dad70a0348d75e394f254e1b6Lennart Poettering @$(RM) $@
d1ab0ca07372649dad70a0348d75e394f254e1b6Lennart Poettering $(CP) $< $@
d1ab0ca07372649dad70a0348d75e394f254e1b6Lennart Poettering
d1ab0ca07372649dad70a0348d75e394f254e1b6Lennart Poetteringbuild: properties
d1ab0ca07372649dad70a0348d75e394f254e1b6Lennart Poettering
d1ab0ca07372649dad70a0348d75e394f254e1b6Lennart Poettering