annotate make/CompileNativeLibraries.gmk @ 11592:de91f05824c5

8146498: Better device table adjustments Reviewed-by: vadim, mschoene
author prr
date Wed, 13 Jan 2016 11:28:09 -0800
parents b37ecfdc78a2
children
rev   line source
ohair@5221 1 #
dxu@6785 2 # Copyright (c) 2011, 2013, Oracle and/or its affiliates. All rights reserved.
ohair@5221 3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
ohair@5221 4 #
ohair@5221 5 # This code is free software; you can redistribute it and/or modify it
ohair@5221 6 # under the terms of the GNU General Public License version 2 only, as
ohair@5221 7 # published by the Free Software Foundation. Oracle designates this
ohair@5221 8 # particular file as subject to the "Classpath" exception as provided
ohair@5221 9 # by Oracle in the LICENSE file that accompanied this code.
ohair@5221 10 #
ohair@5221 11 # This code is distributed in the hope that it will be useful, but WITHOUT
ohair@5221 12 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
ohair@5221 13 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
ohair@5221 14 # version 2 for more details (a copy is included in the LICENSE file that
ohair@5221 15 # accompanied this code).
ohair@5221 16 #
ohair@5221 17 # You should have received a copy of the GNU General Public License version
ohair@5221 18 # 2 along with this work; if not, write to the Free Software Foundation,
ohair@5221 19 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
ohair@5221 20 #
ohair@5221 21 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
ohair@5221 22 # or visit www.oracle.com if you need additional information or have any
ohair@5221 23 # questions.
ohair@5221 24 #
ohair@5221 25
ihse@8189 26 default: all
ohair@5221 27
ohair@5221 28 include $(SPEC)
ohair@5221 29 include MakeBase.gmk
ohair@5221 30 include NativeCompilation.gmk
ohair@5221 31
ohair@5221 32 # Setup the java compilers for the JDK build.
ohair@5221 33 include Setup.gmk
ohair@5221 34
ohair@5221 35 # Copy files (can now depend on $(COPY_FILES))
ohair@5221 36 include CopyFiles.gmk
ohair@5221 37
erikj@6354 38 # Prepare the find cache. Only used if running on windows.
ihse@8330 39 $(eval $(call FillCacheFind, $(JDK_TOPDIR)/src))
erikj@6354 40
erikj@5596 41 # Build tools
erikj@5596 42 include Tools.gmk
erikj@5596 43
ohair@5221 44 # Include the javah generated headers.
ohair@5221 45 CFLAGS_JDKLIB += -I$(JDK_OUTPUTDIR)/gensrc_headers
ohair@5221 46 CXXFLAGS_JDKLIB += -I$(JDK_OUTPUTDIR)/gensrc_headers
ohair@5221 47
erikj@5596 48 # Put the libraries here. Different locations for different target apis.
ihse@8330 49 ifeq ($(OPENJDK_TARGET_OS_API), posix)
ihse@8330 50 INSTALL_LIBRARIES_HERE := $(JDK_OUTPUTDIR)/lib$(OPENJDK_TARGET_CPU_LIBDIR)
ohair@5221 51 else
ihse@8330 52 INSTALL_LIBRARIES_HERE := $(JDK_OUTPUTDIR)/bin
ohair@5221 53 endif
ohair@5221 54
ihse@8330 55 BUILD_LIBRARIES =
ohair@5221 56
erikj@5596 57 # Absolute paths to lib files on windows for use in LDFLAGS. Should figure out a more
erikj@5596 58 # elegant solution to this.
erikj@5596 59 WIN_JAVA_LIB := $(JDK_OUTPUTDIR)/objs/libjava/java.lib
erikj@5596 60
ohair@5819 61 # Use this variable to set DEBUG_SYMBOLS true on windows for all libraries, but
ohair@5819 62 # not on other platforms.
ohair@5819 63 ifeq ($(OPENJDK_TARGET_OS), windows)
ihse@8330 64 DEBUG_ALL_BINARIES := true
andrew@7061 65 endif
andrew@7061 66
andrew@7061 67 # Build everything with debugging on OpenJDK
andrew@7061 68 ifdef OPENJDK
ihse@8330 69 DEBUG_ALL_BINARIES := true
ohair@5819 70 endif
ohair@5819 71
erikj@5596 72 ##########################################################################################
erikj@5596 73
ihse@8485 74 include lib/CoreLibraries.gmk
erikj@5596 75
ihse@8485 76 include lib/PlatformLibraries.gmk
ohair@5221 77
ihse@8485 78 include lib/NetworkingLibraries.gmk
erikj@5596 79
ihse@8485 80 include lib/NioLibraries.gmk
erikj@6263 81
ihse@8485 82 include lib/SecurityLibraries.gmk
ihse@8330 83
ihse@8485 84 include lib/ServiceabilityLibraries.gmk
erikj@5596 85
ihse@8485 86 include lib/Awt2dLibraries.gmk
erikj@5507 87
ihse@8485 88 include lib/SoundLibraries.gmk
ihse@8330 89
rriggs@10003 90 # Include the corresponding custom file, if present.
rriggs@10003 91 -include $(CUSTOM_MAKE_DIR)/CompileNativeLibraries.gmk
rriggs@10003 92
ihse@8330 93 ##########################################################################################
ihse@8330 94
ohair@5221 95 all: $(COPY_FILES) $(BUILD_LIBRARIES)
ohair@5221 96
ohair@5221 97 .PHONY: all