Makefile revision 2437
ec79b29695b183f794264bbb578c51e93d1f9b1emartin# Copyright (c) 2000, 2008, Oracle and/or its affiliates. All rights reserved.
6aa2272cc4af77e605ba2c4a4781f8567408b7e3pquerna# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
2f1bb5376c5c4022383bb729679ca751dd75a2eabrianp# This code is free software; you can redistribute it and/or modify it
2f1bb5376c5c4022383bb729679ca751dd75a2eabrianp# under the terms of the GNU General Public License version 2 only, as
ad862ab5716726a2d72a292ba1dfb29566c86153brianp# published by the Free Software Foundation.
ad862ab5716726a2d72a292ba1dfb29566c86153brianp# This code is distributed in the hope that it will be useful, but WITHOUT
347c9301068524042be654db3b2b055a9ec20633rpluem# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
347c9301068524042be654db3b2b055a9ec20633rpluem# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
347c9301068524042be654db3b2b055a9ec20633rpluem# version 2 for more details (a copy is included in the LICENSE file that
1266e0c1535091b37a0c6ea86183094e575cb8dagregames# accompanied this code).
29d3b95754d5730dde08bbda9dc76785894f10f8rpluem# You should have received a copy of the GNU General Public License version
dfd7e0be46ab5ef5b84339b4645d60fdc44cb4a5rpluem# 2 along with this work; if not, write to the Free Software Foundation,
dfd7e0be46ab5ef5b84339b4645d60fdc44cb4a5rpluem# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
dfd7e0be46ab5ef5b84339b4645d60fdc44cb4a5rpluem# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
7461431ba407b0e1eac3d6a81440a4184e652e9fniq# or visit www.oracle.com if you need additional information or have any
7461431ba407b0e1eac3d6a81440a4184e652e9fniq# questions.
2d5532b13110a8d85653da92e97795b09cc25cc2trawick# This guards against adding broken .java files to the directory
b38565306421ff53e9f7499bc728d6df5cec294dpquerna# hierarchy, but may be a pain to keep in sync
b38565306421ff53e9f7499bc728d6df5cec294dpquerna# Generated using the build-pkglist script
a6ea86151dd968120a12b48867d45947ef2bb9darpluemSA_BUILD_VERSION=$(HOTSPOT_RELEASE_VERSION)-$(HOTSPOT_BUILD_VERSION)
5340bb8547e62ec8ede44b1b086b7da37ee64eefcolm#END PKGLIST
5340bb8547e62ec8ede44b1b086b7da37ee64eefcolm# Generated using the build-filelist script
424c1a743525e9c5008e29b39a99363723409a1dtrawick#END FILELIST
44ca834b970b454b844efb96f219bdf49fee71e5trawick# gnumake 3.78.1 does not accept the *s,
44ca834b970b454b844efb96f219bdf49fee71e5trawick# so use the shell to expand them
eb8430fd3bc941c0b3ba8bba3884b7fc464bf458pquerna# tools.jar is used by the sa-jdi binding
fde88bb682426885c679198ee130d2d5a29e8c0fbnicholes# FIXME: autogenerate call to rmic
fde88bb682426885c679198ee130d2d5a29e8c0fbnicholesSA_BUILD_VERSION_PROP = "sun.jvm.hotspot.runtime.VM.saBuildVersion=$(SA_BUILD_VERSION)"
d66ac514cc15e99228d72c56c6c3daf25da8d360niq# Tagging it on because there's no reason not to run it
e23b77006a8b079c0ad52e42ba2029e759455b8fjorton $(JAVAC) -classpath $(CLASSPATH) -deprecation -sourcepath $(SRC_DIR) -g -d $(OUTPUT_DIR) @filelist
e23b77006a8b079c0ad52e42ba2029e759455b8fjorton $(RMIC) -classpath $(OUTPUT_DIR) -d $(OUTPUT_DIR) sun.jvm.hotspot.debugger.remote.RemoteDebuggerServer
22c347c08cd77d5e2c32536b467b389fd33d631fpquerna rm -f $(OUTPUT_DIR)/sun/jvm/hotspot/utilities/soql/sa.js
8c46f9f81ae6357dc97560d6d85154f19cf251aejim cp $(SRC_DIR)/sun/jvm/hotspot/utilities/soql/sa.js $(OUTPUT_DIR)/sun/jvm/hotspot/utilities/soql
b6e2b36d6972a0e243368eb567e91d511fb40b1bbnicholes mkdir -p $(OUTPUT_DIR)/sun/jvm/hotspot/ui/resources
b6e2b36d6972a0e243368eb567e91d511fb40b1bbnicholes rm -f $(OUTPUT_DIR)/sun/jvm/hotspot/ui/resources/*
b6e2b36d6972a0e243368eb567e91d511fb40b1bbnicholes cp $(SRC_DIR)/sun/jvm/hotspot/ui/resources/*.png $(OUTPUT_DIR)/sun/jvm/hotspot/ui/resources/
8b7594c66e764f5cd3506b6f2459497ab65a8b03pquerna $(JAVAC) -J-Xprof -classpath $(CLASSPATH) -deprecation -sourcepath $(SRC_DIR) -g -d $(OUTPUT_DIR) @filelist
8b7594c66e764f5cd3506b6f2459497ab65a8b03pquerna $(RMIC) -classpath $(OUTPUT_DIR) -d $(OUTPUT_DIR) sun.jvm.hotspot.debugger.remote.RemoteDebuggerServer
8b7594c66e764f5cd3506b6f2459497ab65a8b03pquerna rm -f $(OUTPUT_DIR)/sun/jvm/hotspot/utilities/soql/sa.js
8c46f9f81ae6357dc97560d6d85154f19cf251aejim cp $(SRC_DIR)/sun/jvm/hotspot/utilities/soql/sa.js $(OUTPUT_DIR)/sun/jvm/hotspot/utilities/soql
20f1b1a67eef5ab0f3295608c89964a7dca4fdd1pquerna cp $(SRC_DIR)/sun/jvm/hotspot/ui/resources/*.png $(OUTPUT_DIR)/sun/jvm/hotspot/ui/resources/
e76fdcdfb8994ad70776526f50fa013b3e9a6033bnicholes echo "Missing $(JDK_HOME)/lib/tools.jar file. Use 1.6.0 or later version jdk to build SA."; \
1ef90d1763e489969ec7a01c77bcb158ece5ae83jorton @echo $(ALLFILES) > $@
6d00a5e2c08ddbff9614ecc17a1c085462811f89slive cd ../src/os/`java -classpath $(OUTPUT_DIR) sun.jvm.hotspot.utilities.PlatformInfo`; $(MAKE) all
6d00a5e2c08ddbff9614ecc17a1c085462811f89slive echo "sa-jdi.jar is built by a hotspot build."
6d00a5e2c08ddbff9614ecc17a1c085462811f89slive @$(JAVADOC) -private -classpath $(CLASSPATH) -sourcepath $(SRC_DIR) -d $(DOC_DIR) $(PKGLIST)