Makefile revision 4371
0N/A#
0N/A# Copyright (c) 1997, 2011, Oracle and/or its affiliates. All rights reserved.
0N/A# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
553N/A#
0N/A# This code is free software; you can redistribute it and/or modify it
0N/A# under the terms of the GNU General Public License version 2 only, as
0N/A# published by the Free Software Foundation. Oracle designates this
0N/A# particular file as subject to the "Classpath" exception as provided
0N/A# by Oracle in the LICENSE file that accompanied this code.
0N/A#
0N/A# This code is distributed in the hope that it will be useful, but WITHOUT
0N/A# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
0N/A# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
0N/A# version 2 for more details (a copy is included in the LICENSE file that
0N/A# accompanied this code).
0N/A#
0N/A# You should have received a copy of the GNU General Public License version
0N/A# 2 along with this work; if not, write to the Free Software Foundation,
0N/A# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
0N/A#
553N/A# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
553N/A# or visit www.oracle.com if you need additional information or have any
553N/A# questions.
0N/A#
0N/A
0N/ABUILDDIR = ../../..
0N/APRODUCT = java
0N/Ainclude $(BUILDDIR)/common/Defs.gmk
0N/A
0N/Aifeq ($(PLATFORM), windows)
0N/A LIB_LOCATION = $(BINDIR)
0N/Aelse
0N/A LIB_LOCATION = $(LIBDIR)/$(LIBARCH)
0N/Aendif
0N/A
0N/A# INCLUDE_SA is false on platforms where SA is not supported.
0N/A# On platforms where it is supported, we want to allow it to
0N/A# not be present, at least temporarily. So,
0N/A# if the SA files (well, just sa-jdi.jar) do not exist
0N/A# in the HOTSPOT_IMPORT_PATH, then we won't build SA.
0N/ASA_EXISTS := $(shell if [ -r $(HOTSPOT_IMPORT_PATH)/lib/sa-jdi.jar ] ; then \
0N/A $(ECHO) true; \
0N/A else \
0N/A $(ECHO) false; \
0N/A fi)
0N/A
0N/Aifeq ($(SA_EXISTS), false)
0N/A INCLUDE_SA := false
0N/Aendif
0N/A
0N/AIMPORT_LIST =
0N/Aifeq ($(INCLUDE_SA), true)
0N/A IMPORT_LIST += $(LIBDIR)/sa-jdi.jar \
0N/A $(LIB_LOCATION)/$(SALIB_NAME)
0N/A ifeq ($(PLATFORM), windows)
0N/A IMPORT_LIST += $(LIB_LOCATION)/$(SAMAP_NAME) \
0N/A $(LIB_LOCATION)/$(SAPDB_NAME)
0N/A endif
0N/Aendif # INCLUDE_SA
0N/A
0N/A
0N/Aifeq ($(INCLUDE_SA), true)
0N/A# The Serviceability Agent is built in the Hotspot workspace.
0N/A# It contains two files:
0N/A# - sa-jdi.jar: This goes into the same dir as tools.jar.
0N/A# - a shared library: sawindbg.dll on windows / libproc.sa on unix
0N/A# This goes into the same dir as the other
0N/A# shared libs, eg. libjdwp.so.
0N/A$(LIBDIR)/sa-jdi.jar: $(HOTSPOT_IMPORT_PATH)/lib/sa-jdi.jar
0N/A $(install-importonly-file)
0N/A
0N/A$(LIB_LOCATION)/$(SALIB_NAME): $(HOTSPOT_SALIB_PATH)/$(SALIB_NAME)
0N/A $(install-import-file)
0N/A
0N/Aifeq ($(PLATFORM), windows)
0N/A$(LIB_LOCATION)/$(SAPDB_NAME): $(HOTSPOT_SALIB_PATH)/$(SAPDB_NAME)
0N/A $(install-import-file)
0N/A
0N/A$(LIB_LOCATION)/$(SAMAP_NAME): $(HOTSPOT_SALIB_PATH)/$(SAMAP_NAME)
0N/A $(install-import-file)
0N/Aendif # windows
0N/Aendif # INCLUDE_SA
0N/A
0N/Aall: $(IMPORT_LIST)
0N/A
0N/Aclean clobber::
0N/A