Makefile revision 4680
#
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
#
# under the terms of the GNU General Public License version 2 only, as
# published by the Free Software Foundation. Oracle designates this
# particular file as subject to the "Classpath" exception as provided
# by Oracle in the LICENSE file that accompanied this code.
#
# This code is distributed in the hope that it will be useful, but WITHOUT
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
# version 2 for more details (a copy is included in the LICENSE file that
# accompanied this code).
#
# You should have received a copy of the GNU General Public License version
# 2 along with this work; if not, write to the Free Software Foundation,
# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
#
# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
# or visit www.oracle.com if you need additional information or have any
# questions.
#
#
# Java Launcher Infrastructure Library (libjli)
#
# This library provides shared support for the Java launcher in all of
# its manifestations (java, javaw, javac, ...).
#
BUILDDIR = ../..
#
# Must be included before Defs.gmk to be functional.
#
# Note that for Windows, both a dynamic and static version are built.
# Doing the compiles with the static library specified can be overridden
# by the link step, but not the reverse.
#
MS_RUNTIME_STATIC = true
endif #SYSTEM_ZLIB
# set the platform specific directory for macosx, also this platform shares
# substantial family ties with its siblings (solaris and linux), thus we add
# solaris src path to its compilation dependencies.
else # !MACOSX
endif #PLATFORM
else # !ZERO_BUILD
else # !X86 FAMILY
endif #ARCH_FAMILY
endif # ZERO_BUILD
#
# Files to compile.
#
zcrc32.c \
endif # SYSTEM_ZLIB
# add platform specific files
else # NIXES
# if the architecture specific ergo file exists then
# use it, else use the generic definitions from ergo.c
FILES_c += $(ERGO_ARCH_FILE)
else # !ERGO_ARCH_FILE
endif # ERGO_ARCH_FILE
endif #MACOSX
endif #WINDOWS
# Names of arch directories
endif # PLATFORM
else # ! MACOSX
endif #PLATFORM
LD_RUNPATH_EXTRAS += ..
# Note: it is important to keep this order, meaning -lc as the
# last library, otherwise it could cause compatibility issues
# by pulling in SUNW_private symbols from libc
endif # USE_PTHREADS
endif # PLATFORM
endif # PLATFORM
JAVALIB =
OTHER_LCF = -export:JLI_Launch \
-export:JLI_ManifestIterate \
-export:JLI_SetTraceLauncher \
-export:JLI_ReportErrorMessage \
-export:JLI_ReportErrorMessageSys \
-export:JLI_ReportMessage \
-export:JLI_ReportExceptionDescription
endif # PLATFORM
OTHER_INCLUDES += -I$(LAUNCHER_SHARE_SRC)
OTHER_INCLUDES += -I$(LAUNCHER_PLATFORM_SRC)
OTHER_INCLUDES += -I$(ZIP_SRC)
else # !SYSTEM_ZLIB
endif # SYSTEM_ZLIB
#
# Library to compile.
#
#
# On Windows, some executable objects need to be statically linked against
# the jli library. Hence, we need both a standard library (archive) and
# an import library (associated with a dll). These both usually have the
# extension .LIB, so they need to be placed in different directories. The
# import library is build (as usual) in the $(OBJDIR) directory while the
# standard library is built in a "static" subdirectory. The standard library
# is not delivered as part of the product, but is only needed as part of
# the build process. The import library is built by the standard rules
# in Library.gmk. The additional rules which follow build the standard
# library.
#
$(STATIC_LIBRARY): $(FILES_o)
library:: $(STATIC_LIBRARY)
endif # PLATFORM
# Some Obj-C code is embedded in java_md_macosx.c, we stipulate so, using
# "-x" option. Not doing so will cause the compiler to choose the language
# based on the filename suffix, also "-Os" optimizes the file for size.
# Needed for linking the various launchers
# Add solaris sources containing common logic to the header path
endif # PLATFORM
$(STATIC_LIBRARY_DIR): | $(OBJDIR)
@$(MKDIR) $(STATIC_LIBRARY_DIR)
$(STATIC_LIBRARY): $(STATIC_LIBRARY_DIR)
library:: $(STATIC_LIBRARY)
else # !SYSTEM_ZLIB
#
# Add to ambient vpath so we pick up the library files, for macos we add
# solaris sources which contains the common logic for all nixes
#
else # !MACOSX
endif # MACOSX
endif # SYSTEM_LIB