Makefile revision 4680
94e7edb1e6b194fffd0e7901c0b32e9fc836bc5blucy wang - Sun Microsystems - Beijing China# Copyright (c) 2005, 2012, Oracle and/or its affiliates. All rights reserved.
94e7edb1e6b194fffd0e7901c0b32e9fc836bc5blucy wang - Sun Microsystems - Beijing China# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
94e7edb1e6b194fffd0e7901c0b32e9fc836bc5blucy wang - Sun Microsystems - Beijing China# This code is free software; you can redistribute it and/or modify it
94e7edb1e6b194fffd0e7901c0b32e9fc836bc5blucy wang - Sun Microsystems - Beijing China# under the terms of the GNU General Public License version 2 only, as
94e7edb1e6b194fffd0e7901c0b32e9fc836bc5blucy wang - Sun Microsystems - Beijing China# published by the Free Software Foundation. Oracle designates this
94e7edb1e6b194fffd0e7901c0b32e9fc836bc5blucy wang - Sun Microsystems - Beijing China# particular file as subject to the "Classpath" exception as provided
94e7edb1e6b194fffd0e7901c0b32e9fc836bc5blucy wang - Sun Microsystems - Beijing China# by Oracle in the LICENSE file that accompanied this code.
94e7edb1e6b194fffd0e7901c0b32e9fc836bc5blucy wang - Sun Microsystems - Beijing China# This code is distributed in the hope that it will be useful, but WITHOUT
94e7edb1e6b194fffd0e7901c0b32e9fc836bc5blucy wang - Sun Microsystems - Beijing China# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
94e7edb1e6b194fffd0e7901c0b32e9fc836bc5blucy wang - Sun Microsystems - Beijing China# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
94e7edb1e6b194fffd0e7901c0b32e9fc836bc5blucy wang - Sun Microsystems - Beijing China# version 2 for more details (a copy is included in the LICENSE file that
94e7edb1e6b194fffd0e7901c0b32e9fc836bc5blucy wang - Sun Microsystems - Beijing China# accompanied this code).
94e7edb1e6b194fffd0e7901c0b32e9fc836bc5blucy wang - Sun Microsystems - Beijing China# You should have received a copy of the GNU General Public License version
94e7edb1e6b194fffd0e7901c0b32e9fc836bc5blucy wang - Sun Microsystems - Beijing China# 2 along with this work; if not, write to the Free Software Foundation,
94e7edb1e6b194fffd0e7901c0b32e9fc836bc5blucy wang - Sun Microsystems - Beijing China# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
94e7edb1e6b194fffd0e7901c0b32e9fc836bc5blucy wang - Sun Microsystems - Beijing China# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
94e7edb1e6b194fffd0e7901c0b32e9fc836bc5blucy wang - Sun Microsystems - Beijing China# or visit www.oracle.com if you need additional information or have any
94e7edb1e6b194fffd0e7901c0b32e9fc836bc5blucy wang - Sun Microsystems - Beijing China# Java Launcher Infrastructure Library (libjli)
94e7edb1e6b194fffd0e7901c0b32e9fc836bc5blucy wang - Sun Microsystems - Beijing China# This library provides shared support for the Java launcher in all of
6b7143d774683daf27dfb2e93ab48d1ade1a3477Richard Lowe# its manifestations (java, javaw, javac, ...).
94e7edb1e6b194fffd0e7901c0b32e9fc836bc5blucy wang - Sun Microsystems - Beijing ChinaBUILDDIR = ../..
94e7edb1e6b194fffd0e7901c0b32e9fc836bc5blucy wang - Sun Microsystems - Beijing China# Must be included before Defs.gmk to be functional.
6b7143d774683daf27dfb2e93ab48d1ade1a3477Richard Lowe# Note that for Windows, both a dynamic and static version are built.
94e7edb1e6b194fffd0e7901c0b32e9fc836bc5blucy wang - Sun Microsystems - Beijing China# Doing the compiles with the static library specified can be overridden
94e7edb1e6b194fffd0e7901c0b32e9fc836bc5blucy wang - Sun Microsystems - Beijing China# by the link step, but not the reverse.
94e7edb1e6b194fffd0e7901c0b32e9fc836bc5blucy wang - Sun Microsystems - Beijing ChinaMS_RUNTIME_STATIC = true
94e7edb1e6b194fffd0e7901c0b32e9fc836bc5blucy wang - Sun Microsystems - Beijing Chinainclude $(BUILDDIR)/common/Defs.gmk
94e7edb1e6b194fffd0e7901c0b32e9fc836bc5blucy wang - Sun Microsystems - Beijing Chinaifneq ($(SYSTEM_ZLIB),true)
94e7edb1e6b194fffd0e7901c0b32e9fc836bc5blucy wang - Sun Microsystems - Beijing China ZIP_SRC = $(SHARE_SRC)/native/java/util/zip/zlib-$(ZLIB_VERSION)
94e7edb1e6b194fffd0e7901c0b32e9fc836bc5blucy wang - Sun Microsystems - Beijing Chinaendif #SYSTEM_ZLIB
94e7edb1e6b194fffd0e7901c0b32e9fc836bc5blucy wang - Sun Microsystems - Beijing ChinaLAUNCHER_SHARE_SRC = $(SHARE_SRC)/bin
6b7143d774683daf27dfb2e93ab48d1ade1a3477Richard Lowe# set the platform specific directory for macosx, also this platform shares
94e7edb1e6b194fffd0e7901c0b32e9fc836bc5blucy wang - Sun Microsystems - Beijing China# substantial family ties with its siblings (solaris and linux), thus we add
94e7edb1e6b194fffd0e7901c0b32e9fc836bc5blucy wang - Sun Microsystems - Beijing China# solaris src path to its compilation dependencies.
94e7edb1e6b194fffd0e7901c0b32e9fc836bc5blucy wang - Sun Microsystems - Beijing Chinaifeq ($(PLATFORM), macosx)
94e7edb1e6b194fffd0e7901c0b32e9fc836bc5blucy wang - Sun Microsystems - Beijing China LAUNCHER_PLATFORM_SRC = $(BUILDDIR)/../src/macosx/bin
94e7edb1e6b194fffd0e7901c0b32e9fc836bc5blucy wang - Sun Microsystems - Beijing China LAUNCHER_SOLARIS_PLATFORM_SRC = $(BUILDDIR)/../src/solaris/bin
94e7edb1e6b194fffd0e7901c0b32e9fc836bc5blucy wang - Sun Microsystems - Beijing China LAUNCHER_PLATFORM_SRC = $(PLATFORM_SRC)/bin
94e7edb1e6b194fffd0e7901c0b32e9fc836bc5blucy wang - Sun Microsystems - Beijing Chinaifeq ($(ZERO_BUILD), true)
94e7edb1e6b194fffd0e7901c0b32e9fc836bc5blucy wang - Sun Microsystems - Beijing China ERGO_FAMILY=zero
94e7edb1e6b194fffd0e7901c0b32e9fc836bc5blucy wang - Sun Microsystems - Beijing Chinaelse # !ZERO_BUILD
6b7143d774683daf27dfb2e93ab48d1ade1a3477Richard Lowe ifneq (,$(findstring $(ARCH_FAMILY), amd64 x86_64))
94e7edb1e6b194fffd0e7901c0b32e9fc836bc5blucy wang - Sun Microsystems - Beijing China ERGO_FAMILY=i586
94e7edb1e6b194fffd0e7901c0b32e9fc836bc5blucy wang - Sun Microsystems - Beijing China else # !X86 FAMILY
94e7edb1e6b194fffd0e7901c0b32e9fc836bc5blucy wang - Sun Microsystems - Beijing China ERGO_FAMILY=$(ARCH_FAMILY)
94e7edb1e6b194fffd0e7901c0b32e9fc836bc5blucy wang - Sun Microsystems - Beijing China endif #ARCH_FAMILY
94e7edb1e6b194fffd0e7901c0b32e9fc836bc5blucy wang - Sun Microsystems - Beijing Chinaendif # ZERO_BUILD
94e7edb1e6b194fffd0e7901c0b32e9fc836bc5blucy wang - Sun Microsystems - Beijing China# Files to compile.
94e7edb1e6b194fffd0e7901c0b32e9fc836bc5blucy wang - Sun Microsystems - Beijing ChinaFILES_c = java.c \
94e7edb1e6b194fffd0e7901c0b32e9fc836bc5blucy wang - Sun Microsystems - Beijing China splashscreen_stubs.c \
94e7edb1e6b194fffd0e7901c0b32e9fc836bc5blucy wang - Sun Microsystems - Beijing China parse_manifest.c \
94e7edb1e6b194fffd0e7901c0b32e9fc836bc5blucy wang - Sun Microsystems - Beijing Chinaifneq ($(SYSTEM_ZLIB),true)
94e7edb1e6b194fffd0e7901c0b32e9fc836bc5blucy wang - Sun Microsystems - Beijing China FILES_c += inflate.c \
94e7edb1e6b194fffd0e7901c0b32e9fc836bc5blucy wang - Sun Microsystems - Beijing Chinaendif # SYSTEM_ZLIB
94e7edb1e6b194fffd0e7901c0b32e9fc836bc5blucy wang - Sun Microsystems - Beijing China# add platform specific files
94e7edb1e6b194fffd0e7901c0b32e9fc836bc5blucy wang - Sun Microsystems - Beijing Chinaifeq ($(PLATFORM), windows)
94e7edb1e6b194fffd0e7901c0b32e9fc836bc5blucy wang - Sun Microsystems - Beijing China FILES_c += java_md.c
94e7edb1e6b194fffd0e7901c0b32e9fc836bc5blucy wang - Sun Microsystems - Beijing China FILES_c += java_md_common.c
94e7edb1e6b194fffd0e7901c0b32e9fc836bc5blucy wang - Sun Microsystems - Beijing China ifeq ($(PLATFORM), macosx)
94e7edb1e6b194fffd0e7901c0b32e9fc836bc5blucy wang - Sun Microsystems - Beijing China FILES_c += java_md_macosx.c
# use it, else use the generic definitions from ergo.c
LD_RUNPATH_EXTRAS += ..
JAVALIB =
-export:JLI_ManifestIterate \
-export:JLI_SetTraceLauncher \
-export:JLI_ReportErrorMessage \
-export:JLI_ReportErrorMessageSys \
-export:JLI_ReportMessage \
-export:JLI_ReportExceptionDescription
# in Library.gmk. The additional rules which follow build the standard
# Some Obj-C code is embedded in java_md_macosx.c, we stipulate so, using