Makefile revision 2080
3421N/A#
3421N/A# Copyright 2009 Sun Microsystems, Inc. All Rights Reserved.
3421N/A# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3421N/A#
3421N/A# This code is free software; you can redistribute it and/or modify it
3421N/A# under the terms of the GNU General Public License version 2 only, as
3421N/A# published by the Free Software Foundation. Sun designates this
3421N/A# particular file as subject to the "Classpath" exception as provided
3421N/A# by Sun in the LICENSE file that accompanied this code.
3421N/A#
3421N/A# This code is distributed in the hope that it will be useful, but WITHOUT
3421N/A# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3421N/A# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
3421N/A# version 2 for more details (a copy is included in the LICENSE file that
3421N/A# accompanied this code).
3421N/A#
3421N/A# You should have received a copy of the GNU General Public License version
3421N/A# 2 along with this work; if not, write to the Free Software Foundation,
3421N/A# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3421N/A#
3421N/A# Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
3421N/A# CA 95054 USA or visit www.sun.com if you need additional information or
3421N/A# have any questions.
3421N/A#
3421N/A
3421N/A#
3421N/A# Makefile for com.sun.nio.sctp
3421N/A#
3421N/A
3421N/ABUILDDIR = ../../../..
3421N/AMODULE = sctp
3421N/APACKAGE = com.sun.nio.sctp
3421N/ALIBRARY = sctp
3421N/APRODUCT = sun
3421N/A#OTHER_JAVACFLAGS += -Xmaxwarns 1000 -Xlint
3421N/Ainclude $(BUILDDIR)/common/Defs.gmk
3421N/A
3421N/A#
3421N/A# Files to compile
#
include FILES_c.gmk
include FILES_java.gmk
include Exportedfiles.gmk
ifneq ($(PLATFORM), windows)
include $(BUILDDIR)/common/Mapfile-vers.gmk
include $(BUILDDIR)/common/Library.gmk
#
# Find platform-specific C source files
#
vpath %.c $(PLATFORM_SRC)/native/sun/nio/ch
#
# Include nio.h, net_util.h, sun_nio_ch_IOStatus.h, etc
#
OTHER_INCLUDES += \
-I$(SHARE_SRC)/native/sun/nio/ch \
-I$(SHARE_SRC)/native/java/net \
-I$(PLATFORM_SRC)/native/java/net \
-I$(CLASSHDRDIR)/../../../../java/java.nio/nio/CClassHeaders
ifeq ($(PLATFORM), linux)
COMPILER_WARNINGS_FATAL=true
#OTHER_LDLIBS += -L$(LIBDIR)/$(LIBARCH) -ljava -lnet -lpthread -ldl
OTHER_LDLIBS += -L$(LIBDIR)/$(LIBARCH) -lnio -lnet -lpthread -ldl
endif
ifeq ($(PLATFORM), solaris)
#LIBSCTP = -lsctp
OTHER_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