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