1 # |
1 # |
2 # Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved. |
2 # Copyright (c) 2011, 2018, Oracle and/or its affiliates. All rights reserved. |
3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 # |
4 # |
5 # This code is free software; you can redistribute it and/or modify it |
5 # This code is free software; you can redistribute it and/or modify it |
6 # under the terms of the GNU General Public License version 2 only, as |
6 # under the terms of the GNU General Public License version 2 only, as |
7 # published by the Free Software Foundation. Oracle designates this |
7 # published by the Free Software Foundation. Oracle designates this |
38 $(addprefix -I, $(BUILD_LIBNIO_SRC)) \ |
38 $(addprefix -I, $(BUILD_LIBNIO_SRC)) \ |
39 -I$(SUPPORT_OUTPUTDIR)/headers/java.base \ |
39 -I$(SUPPORT_OUTPUTDIR)/headers/java.base \ |
40 $(LIBJAVA_HEADER_FLAGS) \ |
40 $(LIBJAVA_HEADER_FLAGS) \ |
41 $(addprefix -I, $(BUILD_LIBNET_SRC)) |
41 $(addprefix -I, $(BUILD_LIBNET_SRC)) |
42 |
42 |
43 ifeq ($(OPENJDK_TARGET_OS), linux) |
|
44 BUILD_LIBNIO_MAPFILE := $(TOPDIR)/make/mapfiles/libnio/mapfile-$(OPENJDK_TARGET_OS) |
|
45 endif |
|
46 |
|
47 ifeq ($(OPENJDK_TARGET_OS), macosx) |
|
48 BUILD_LIBNIO_MAPFILE := $(TOPDIR)/make/mapfiles/libnio/mapfile-$(OPENJDK_TARGET_OS) |
|
49 endif |
|
50 |
|
51 ifeq ($(OPENJDK_TARGET_OS), solaris) |
|
52 BUILD_LIBNIO_MAPFILE := $(TOPDIR)/make/mapfiles/libnio/mapfile-$(OPENJDK_TARGET_OS) |
|
53 endif |
|
54 |
|
55 ifeq ($(OPENJDK_TARGET_OS), aix) |
|
56 BUILD_LIBNIO_MAPFILE := $(TOPDIR)/make/mapfiles/libnio/mapfile-$(OPENJDK_TARGET_OS) |
|
57 endif |
|
58 |
|
59 $(eval $(call SetupNativeCompilation,BUILD_LIBNIO, \ |
43 $(eval $(call SetupNativeCompilation,BUILD_LIBNIO, \ |
60 LIBRARY := nio, \ |
44 LIBRARY := nio, \ |
61 OUTPUT_DIR := $(INSTALL_LIBRARIES_HERE), \ |
45 OUTPUT_DIR := $(INSTALL_LIBRARIES_HERE), \ |
62 SRC := $(BUILD_LIBNIO_SRC), \ |
46 SRC := $(BUILD_LIBNIO_SRC), \ |
63 EXCLUDE_FILES := $(BUILD_LIBNIO_EXFILES), \ |
47 EXCLUDE_FILES := $(BUILD_LIBNIO_EXFILES), \ |
64 OPTIMIZATION := HIGH, \ |
48 OPTIMIZATION := HIGH, \ |
65 WARNINGS_AS_ERRORS_xlc := false, \ |
49 WARNINGS_AS_ERRORS_xlc := false, \ |
66 CFLAGS := $(CFLAGS_JDKLIB) \ |
50 CFLAGS := $(CFLAGS_JDKLIB) \ |
67 $(BUILD_LIBNIO_CFLAGS), \ |
51 $(BUILD_LIBNIO_CFLAGS), \ |
68 MAPFILE := $(BUILD_LIBNIO_MAPFILE), \ |
|
69 LDFLAGS := $(LDFLAGS_JDKLIB) \ |
52 LDFLAGS := $(LDFLAGS_JDKLIB) \ |
70 $(call SET_SHARED_LIBRARY_ORIGIN), \ |
53 $(call SET_SHARED_LIBRARY_ORIGIN), \ |
71 LIBS_unix := -ljava -lnet, \ |
54 LIBS_unix := -ljava -lnet, \ |
72 LIBS_linux := -lpthread $(LIBDL), \ |
55 LIBS_linux := -lpthread $(LIBDL), \ |
73 LIBS_solaris := -ljvm -lsocket -lposix4 $(LIBDL) \ |
56 LIBS_solaris := -ljvm -lsocket -lposix4 $(LIBDL) \ |