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