10 # 11 # This code is distributed in the hope that it will be useful, but WITHOUT 12 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 13 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 14 # version 2 for more details (a copy is included in the LICENSE file that 15 # accompanied this code). 16 # 17 # You should have received a copy of the GNU General Public License version 18 # 2 along with this work; if not, write to the Free Software Foundation, 19 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 20 # 21 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 22 # or visit www.oracle.com if you need additional information or have any 23 # questions. 24 # 25 26 include LibCommon.gmk 27 28 ################################################################################ 29 30 ifeq ($(OPENJDK_TARGET_OS_TYPE), unix) 31 32 ifeq ($(filter $(OPENJDK_TARGET_OS), macosx aix), ) 33 $(eval $(call SetupJdkLibrary, BUILD_LIBSCTP, \ 34 NAME := sctp, \ 35 OPTIMIZATION := LOW, \ 36 CFLAGS := $(CFLAGS_JDKLIB), \ 37 DISABLED_WARNINGS_gcc := undef, \ 38 DISABLED_WARNINGS_clang := undef, \ 39 EXTRA_HEADER_DIRS := \ 40 $(call GetJavaHeaderDir, java.base) \ 41 java.base:libnet \ 42 java.base:libnio/ch, \ 43 LDFLAGS := $(LDFLAGS_JDKLIB) \ 44 $(call SET_SHARED_LIBRARY_ORIGIN), \ 45 LIBS_unix := -lnio -lnet -ljava -ljvm, \ 46 LIBS_linux := -lpthread $(LIBDL), \ 47 LIBS_solaris := -lsocket, \ 48 )) 49 50 TARGETS += $(BUILD_LIBSCTP) 51 52 $(BUILD_LIBSCTP): $(call FindLib, java.base, nio) | 10 # 11 # This code is distributed in the hope that it will be useful, but WITHOUT 12 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 13 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 14 # version 2 for more details (a copy is included in the LICENSE file that 15 # accompanied this code). 16 # 17 # You should have received a copy of the GNU General Public License version 18 # 2 along with this work; if not, write to the Free Software Foundation, 19 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 20 # 21 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 22 # or visit www.oracle.com if you need additional information or have any 23 # questions. 24 # 25 26 include LibCommon.gmk 27 28 ################################################################################ 29 30 ifeq ($(call isTargetOsType, unix), true) 31 32 ifneq ($(call isTargetOs, macosx aix), true) 33 $(eval $(call SetupJdkLibrary, BUILD_LIBSCTP, \ 34 NAME := sctp, \ 35 OPTIMIZATION := LOW, \ 36 CFLAGS := $(CFLAGS_JDKLIB), \ 37 DISABLED_WARNINGS_gcc := undef, \ 38 DISABLED_WARNINGS_clang := undef, \ 39 EXTRA_HEADER_DIRS := \ 40 $(call GetJavaHeaderDir, java.base) \ 41 java.base:libnet \ 42 java.base:libnio/ch, \ 43 LDFLAGS := $(LDFLAGS_JDKLIB) \ 44 $(call SET_SHARED_LIBRARY_ORIGIN), \ 45 LIBS_unix := -lnio -lnet -ljava -ljvm, \ 46 LIBS_linux := -lpthread $(LIBDL), \ 47 LIBS_solaris := -lsocket, \ 48 )) 49 50 TARGETS += $(BUILD_LIBSCTP) 51 52 $(BUILD_LIBSCTP): $(call FindLib, java.base, nio) |