Makefile revision 2362
280N/A#
280N/A# Copyright (c) 2009, Oracle and/or its affiliates. All rights reserved.
280N/A# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
280N/A#
280N/A# This code is free software; you can redistribute it and/or modify it
280N/A# under the terms of the GNU General Public License version 2 only, as
280N/A# published by the Free Software Foundation. Oracle designates this
280N/A# particular file as subject to the "Classpath" exception as provided
280N/A# by Oracle in the LICENSE file that accompanied this code.
280N/A#
280N/A# This code is distributed in the hope that it will be useful, but WITHOUT
280N/A# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
280N/A# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
280N/A# version 2 for more details (a copy is included in the LICENSE file that
280N/A# accompanied this code).
280N/A#
280N/A# You should have received a copy of the GNU General Public License version
280N/A# 2 along with this work; if not, write to the Free Software Foundation,
280N/A# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
280N/A#
5259N/A# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
280N/A# or visit www.oracle.com if you need additional information or have any
280N/A# questions.
280N/A#
1244N/A
1103N/A#
5259N/A# Makefile for com.sun.nio.sctp
5259N/A#
1244N/A
1244N/ABUILDDIR = ../../../..
671N/AMODULE = sctp
618N/APACKAGE = com.sun.nio.sctp
1021N/ALIBRARY = sctp
1021N/APRODUCT = sun
844N/A#OTHER_JAVACFLAGS += -Xmaxwarns 1000 -Xlint
1103N/Ainclude $(BUILDDIR)/common/Defs.gmk
1258N/A
280N/A#
2899N/A# Files to compile
2899N/A#
3817N/Ainclude FILES_c.gmk
3817N/Ainclude FILES_java.gmk
3817N/Ainclude Exportedfiles.gmk
4082N/A
4082N/Aifneq ($(PLATFORM), windows)
4082N/Ainclude $(BUILDDIR)/common/Mapfile-vers.gmk
4082N/Ainclude $(BUILDDIR)/common/Library.gmk
280N/A
280N/A#
280N/A# Find platform-specific C source files
280N/A#
4082N/Avpath %.c $(PLATFORM_SRC)/native/sun/nio/ch
4082N/A
4082N/A#
280N/A# Include nio.h, net_util.h, sun_nio_ch_IOStatus.h, etc
280N/A#
280N/AOTHER_INCLUDES += \
671N/A -I$(SHARE_SRC)/native/sun/nio/ch \
671N/A -I$(SHARE_SRC)/native/java/net \
4082N/A -I$(PLATFORM_SRC)/native/java/net \
280N/A -I$(CLASSHDRDIR)/../../../../java/java.nio/nio/CClassHeaders
747N/A
747N/Aifeq ($(PLATFORM), linux)
747N/ACOMPILER_WARNINGS_FATAL=true
1021N/A#OTHER_LDLIBS += -L$(LIBDIR)/$(LIBARCH) -ljava -lnet -lpthread -ldl
747N/AOTHER_LDLIBS += -L$(LIBDIR)/$(LIBARCH) -lnio -lnet -lpthread -ldl
4082N/Aendif
4082N/Aifeq ($(PLATFORM), solaris)
4082N/A#LIBSCTP = -lsctp
3353N/AOTHER_LDLIBS += $(LIBSOCKET) -L$(LIBDIR)/$(LIBARCH) -lnet -lnio
3353N/Aendif # PLATFORM
4082N/A
3477N/Aelse # windows
4082N/Ainclude $(BUILDDIR)/common/Classes.gmk
280N/Aendif # ifneq windows
4082N/A
280N/A
4082N/Aclean clobber::
280N/A $(RM) -r $(CLASSDESTDIR)/com/sun/nio/sctp
4337N/A $(RM) -r $(CLASSDESTDIR)/sun/nio/ch
4337N/A
4082N/A