Makefile revision 258
28bf548be956fa98bffa377e2caba5f28fb281adtavmjong-free#
28bf548be956fa98bffa377e2caba5f28fb281adtavmjong-free# Copyright 2000-2008 Sun Microsystems, Inc. All Rights Reserved.
78bababbd2bf0739d2e6652a15a9fadf7bfccbfdtavmjong-free# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
78bababbd2bf0739d2e6652a15a9fadf7bfccbfdtavmjong-free#
28bf548be956fa98bffa377e2caba5f28fb281adtavmjong-free# This code is free software; you can redistribute it and/or modify it
28bf548be956fa98bffa377e2caba5f28fb281adtavmjong-free# under the terms of the GNU General Public License version 2 only, as
28bf548be956fa98bffa377e2caba5f28fb281adtavmjong-free# published by the Free Software Foundation.
28bf548be956fa98bffa377e2caba5f28fb281adtavmjong-free#
28bf548be956fa98bffa377e2caba5f28fb281adtavmjong-free# This code is distributed in the hope that it will be useful, but WITHOUT
28bf548be956fa98bffa377e2caba5f28fb281adtavmjong-free# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
28bf548be956fa98bffa377e2caba5f28fb281adtavmjong-free# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
28bf548be956fa98bffa377e2caba5f28fb281adtavmjong-free# version 2 for more details (a copy is included in the LICENSE file that
0b067090fd4358b8109240b17d1eb8e05a382058tavmjong-free# accompanied this code).
28bf548be956fa98bffa377e2caba5f28fb281adtavmjong-free#
28bf548be956fa98bffa377e2caba5f28fb281adtavmjong-free# You should have received a copy of the GNU General Public License version
28bf548be956fa98bffa377e2caba5f28fb281adtavmjong-free# 2 along with this work; if not, write to the Free Software Foundation,
28bf548be956fa98bffa377e2caba5f28fb281adtavmjong-free# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
28bf548be956fa98bffa377e2caba5f28fb281adtavmjong-free#
28bf548be956fa98bffa377e2caba5f28fb281adtavmjong-free# Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
28bf548be956fa98bffa377e2caba5f28fb281adtavmjong-free# CA 95054 USA or visit www.sun.com if you need additional information or
28bf548be956fa98bffa377e2caba5f28fb281adtavmjong-free# have any questions.
28bf548be956fa98bffa377e2caba5f28fb281adtavmjong-free#
28bf548be956fa98bffa377e2caba5f28fb281adtavmjong-free#
28bf548be956fa98bffa377e2caba5f28fb281adtavmjong-free
0b067090fd4358b8109240b17d1eb8e05a382058tavmjong-free# This guards against adding broken .java files to the directory
28bf548be956fa98bffa377e2caba5f28fb281adtavmjong-free# hierarchy, but may be a pain to keep in sync
28bf548be956fa98bffa377e2caba5f28fb281adtavmjong-free
28bf548be956fa98bffa377e2caba5f28fb281adtavmjong-free# Generated using the build-pkglist script
0b067090fd4358b8109240b17d1eb8e05a382058tavmjong-freeifeq "x$(GAMMADIR)" "x"
28bf548be956fa98bffa377e2caba5f28fb281adtavmjong-freeinclude ../../make/defs.make
28bf548be956fa98bffa377e2caba5f28fb281adtavmjong-freeelse
28bf548be956fa98bffa377e2caba5f28fb281adtavmjong-freeinclude $(GAMMADIR)/make/defs.make
0b067090fd4358b8109240b17d1eb8e05a382058tavmjong-freeendif
28bf548be956fa98bffa377e2caba5f28fb281adtavmjong-free
0b067090fd4358b8109240b17d1eb8e05a382058tavmjong-freeifeq "x$(HOTSPOT_BUILD_VERSION)" "x"
28bf548be956fa98bffa377e2caba5f28fb281adtavmjong-freeSA_BUILD_VERSION=$(HOTSPOT_RELEASE_VERSION)
0b067090fd4358b8109240b17d1eb8e05a382058tavmjong-freeelse
28bf548be956fa98bffa377e2caba5f28fb281adtavmjong-freeSA_BUILD_VERSION=$(HOTSPOT_RELEASE_VERSION)-$(HOTSPOT_BUILD_VERSION)
28bf548be956fa98bffa377e2caba5f28fb281adtavmjong-freeendif
28bf548be956fa98bffa377e2caba5f28fb281adtavmjong-free
28bf548be956fa98bffa377e2caba5f28fb281adtavmjong-freePKGLIST = \
28bf548be956fa98bffa377e2caba5f28fb281adtavmjong-freesun.jvm.hotspot \
28bf548be956fa98bffa377e2caba5f28fb281adtavmjong-freesun.jvm.hotspot.asm \
28bf548be956fa98bffa377e2caba5f28fb281adtavmjong-freesun.jvm.hotspot.asm.amd64 \
0b067090fd4358b8109240b17d1eb8e05a382058tavmjong-freesun.jvm.hotspot.asm.ia64 \
28bf548be956fa98bffa377e2caba5f28fb281adtavmjong-freesun.jvm.hotspot.asm.sparc \
0b067090fd4358b8109240b17d1eb8e05a382058tavmjong-freesun.jvm.hotspot.asm.x86 \
28bf548be956fa98bffa377e2caba5f28fb281adtavmjong-freesun.jvm.hotspot.bugspot \
0b067090fd4358b8109240b17d1eb8e05a382058tavmjong-freesun.jvm.hotspot.bugspot.tree \
28bf548be956fa98bffa377e2caba5f28fb281adtavmjong-freesun.jvm.hotspot.c1 \
0b067090fd4358b8109240b17d1eb8e05a382058tavmjong-freesun.jvm.hotspot.code \
28bf548be956fa98bffa377e2caba5f28fb281adtavmjong-freesun.jvm.hotspot.compiler \
0b067090fd4358b8109240b17d1eb8e05a382058tavmjong-freesun.jvm.hotspot.debugger \
28bf548be956fa98bffa377e2caba5f28fb281adtavmjong-freesun.jvm.hotspot.debugger.amd64 \
0b067090fd4358b8109240b17d1eb8e05a382058tavmjong-freesun.jvm.hotspot.debugger.cdbg \
28bf548be956fa98bffa377e2caba5f28fb281adtavmjong-freesun.jvm.hotspot.debugger.cdbg.basic \
0b067090fd4358b8109240b17d1eb8e05a382058tavmjong-freesun.jvm.hotspot.debugger.cdbg.basic.amd64 \
28bf548be956fa98bffa377e2caba5f28fb281adtavmjong-freesun.jvm.hotspot.debugger.cdbg.basic.x86 \
0b067090fd4358b8109240b17d1eb8e05a382058tavmjong-freesun.jvm.hotspot.debugger.dbx \
28bf548be956fa98bffa377e2caba5f28fb281adtavmjong-freesun.jvm.hotspot.debugger.dbx.sparc \
0b067090fd4358b8109240b17d1eb8e05a382058tavmjong-freesun.jvm.hotspot.debugger.dbx.x86 \
28bf548be956fa98bffa377e2caba5f28fb281adtavmjong-freesun.jvm.hotspot.debugger.dummy \
0b067090fd4358b8109240b17d1eb8e05a382058tavmjong-freesun.jvm.hotspot.debugger.ia64 \
28bf548be956fa98bffa377e2caba5f28fb281adtavmjong-freesun.jvm.hotspot.debugger.linux \
28bf548be956fa98bffa377e2caba5f28fb281adtavmjong-freesun.jvm.hotspot.debugger.linux.amd64 \
28bf548be956fa98bffa377e2caba5f28fb281adtavmjong-freesun.jvm.hotspot.debugger.linux.ia64 \
6f241f79bdd8ce63aca2895a628209ac107d9dd4tavmjong-freesun.jvm.hotspot.debugger.linux.x86 \
6f241f79bdd8ce63aca2895a628209ac107d9dd4tavmjong-freesun.jvm.hotspot.debugger.posix \
0b067090fd4358b8109240b17d1eb8e05a382058tavmjong-freesun.jvm.hotspot.debugger.posix.elf \
28bf548be956fa98bffa377e2caba5f28fb281adtavmjong-freesun.jvm.hotspot.debugger.proc \
0b067090fd4358b8109240b17d1eb8e05a382058tavmjong-freesun.jvm.hotspot.debugger.proc.amd64 \
28bf548be956fa98bffa377e2caba5f28fb281adtavmjong-freesun.jvm.hotspot.debugger.proc.sparc \
28bf548be956fa98bffa377e2caba5f28fb281adtavmjong-freesun.jvm.hotspot.debugger.proc.x86 \
28bf548be956fa98bffa377e2caba5f28fb281adtavmjong-freesun.jvm.hotspot.debugger.remote \
0b067090fd4358b8109240b17d1eb8e05a382058tavmjong-freesun.jvm.hotspot.debugger.remote.amd64 \
28bf548be956fa98bffa377e2caba5f28fb281adtavmjong-freesun.jvm.hotspot.debugger.remote.sparc \
28bf548be956fa98bffa377e2caba5f28fb281adtavmjong-freesun.jvm.hotspot.debugger.remote.x86 \
28bf548be956fa98bffa377e2caba5f28fb281adtavmjong-freesun.jvm.hotspot.debugger.sparc \
28bf548be956fa98bffa377e2caba5f28fb281adtavmjong-freesun.jvm.hotspot.debugger.win32 \
28bf548be956fa98bffa377e2caba5f28fb281adtavmjong-freesun.jvm.hotspot.debugger.win32.coff \
28bf548be956fa98bffa377e2caba5f28fb281adtavmjong-freesun.jvm.hotspot.debugger.windbg \
28bf548be956fa98bffa377e2caba5f28fb281adtavmjong-freesun.jvm.hotspot.debugger.windbg.amd64 \
28bf548be956fa98bffa377e2caba5f28fb281adtavmjong-freesun.jvm.hotspot.debugger.windbg.ia64 \
28bf548be956fa98bffa377e2caba5f28fb281adtavmjong-freesun.jvm.hotspot.debugger.windbg.x86 \
28bf548be956fa98bffa377e2caba5f28fb281adtavmjong-freesun.jvm.hotspot.debugger.x86 \
6f241f79bdd8ce63aca2895a628209ac107d9dd4tavmjong-freesun.jvm.hotspot.gc_implementation \
6f241f79bdd8ce63aca2895a628209ac107d9dd4tavmjong-freesun.jvm.hotspot.gc_implementation.parallelScavenge \
28bf548be956fa98bffa377e2caba5f28fb281adtavmjong-freesun.jvm.hotspot.gc_implementation.shared \
28bf548be956fa98bffa377e2caba5f28fb281adtavmjong-freesun.jvm.hotspot.gc_interface \
28bf548be956fa98bffa377e2caba5f28fb281adtavmjong-freesun.jvm.hotspot.interpreter \
28bf548be956fa98bffa377e2caba5f28fb281adtavmjong-freesun.jvm.hotspot.jdi \
28bf548be956fa98bffa377e2caba5f28fb281adtavmjong-freesun.jvm.hotspot.livejvm \
5b08d462083e0bf15202dc5d56f2fbf807783841tavmjong-freesun.jvm.hotspot.memory \
5b08d462083e0bf15202dc5d56f2fbf807783841tavmjong-freesun.jvm.hotspot.oops \
78bababbd2bf0739d2e6652a15a9fadf7bfccbfdtavmjong-freesun.jvm.hotspot.runtime \
78bababbd2bf0739d2e6652a15a9fadf7bfccbfdtavmjong-freesun.jvm.hotspot.runtime.amd64 \
78bababbd2bf0739d2e6652a15a9fadf7bfccbfdtavmjong-freesun.jvm.hotspot.runtime.ia64 \
78bababbd2bf0739d2e6652a15a9fadf7bfccbfdtavmjong-freesun.jvm.hotspot.runtime.linux \
28bf548be956fa98bffa377e2caba5f28fb281adtavmjong-freesun.jvm.hotspot.runtime.linux_amd64 \
28bf548be956fa98bffa377e2caba5f28fb281adtavmjong-freesun.jvm.hotspot.runtime.linux_ia64 \
9e25dba6006cf8116679d098dbff53bc6348099atavmjong-freesun.jvm.hotspot.runtime.linux_sparc \
9e25dba6006cf8116679d098dbff53bc6348099atavmjong-freesun.jvm.hotspot.runtime.linux_x86 \
9e25dba6006cf8116679d098dbff53bc6348099atavmjong-freesun.jvm.hotspot.runtime.posix \
9e25dba6006cf8116679d098dbff53bc6348099atavmjong-freesun.jvm.hotspot.runtime.solaris_amd64 \
9e25dba6006cf8116679d098dbff53bc6348099atavmjong-freesun.jvm.hotspot.runtime.solaris_sparc \
9e25dba6006cf8116679d098dbff53bc6348099atavmjong-freesun.jvm.hotspot.runtime.solaris_x86 \
9e25dba6006cf8116679d098dbff53bc6348099atavmjong-freesun.jvm.hotspot.runtime.sparc \
9e25dba6006cf8116679d098dbff53bc6348099atavmjong-freesun.jvm.hotspot.runtime.win32_amd64 \
28bf548be956fa98bffa377e2caba5f28fb281adtavmjong-freesun.jvm.hotspot.runtime.win32_ia64 \
28bf548be956fa98bffa377e2caba5f28fb281adtavmjong-freesun.jvm.hotspot.runtime.win32_x86 \
f368abf12db070b46ce2128d63a014798994ed5ftavmjong-freesun.jvm.hotspot.runtime.x86 \
f368abf12db070b46ce2128d63a014798994ed5ftavmjong-freesun.jvm.hotspot.tools \
f368abf12db070b46ce2128d63a014798994ed5ftavmjong-freesun.jvm.hotspot.tools.jcore \
f368abf12db070b46ce2128d63a014798994ed5ftavmjong-freesun.jvm.hotspot.tools.soql \
28bf548be956fa98bffa377e2caba5f28fb281adtavmjong-freesun.jvm.hotspot.types \
28bf548be956fa98bffa377e2caba5f28fb281adtavmjong-freesun.jvm.hotspot.types.basic \
28bf548be956fa98bffa377e2caba5f28fb281adtavmjong-freesun.jvm.hotspot.ui \
28bf548be956fa98bffa377e2caba5f28fb281adtavmjong-freesun.jvm.hotspot.ui.action \
0b067090fd4358b8109240b17d1eb8e05a382058tavmjong-freesun.jvm.hotspot.ui.classbrowser \
28bf548be956fa98bffa377e2caba5f28fb281adtavmjong-freesun.jvm.hotspot.ui.resources \
0b067090fd4358b8109240b17d1eb8e05a382058tavmjong-freesun.jvm.hotspot.ui.table \
28bf548be956fa98bffa377e2caba5f28fb281adtavmjong-freesun.jvm.hotspot.ui.tree \
0b067090fd4358b8109240b17d1eb8e05a382058tavmjong-freesun.jvm.hotspot.ui.treetable \
28bf548be956fa98bffa377e2caba5f28fb281adtavmjong-freesun.jvm.hotspot.utilities \
0b067090fd4358b8109240b17d1eb8e05a382058tavmjong-freesun.jvm.hotspot.utilities.memo \
28bf548be956fa98bffa377e2caba5f28fb281adtavmjong-freesun.jvm.hotspot.utilities.soql \
0b067090fd4358b8109240b17d1eb8e05a382058tavmjong-freecom.sun.java.swing.action \
28bf548be956fa98bffa377e2caba5f28fb281adtavmjong-freecom.sun.java.swing.ui
0b067090fd4358b8109240b17d1eb8e05a382058tavmjong-free#END PKGLIST
28bf548be956fa98bffa377e2caba5f28fb281adtavmjong-free
0b067090fd4358b8109240b17d1eb8e05a382058tavmjong-free# Generated using the build-filelist script
28bf548be956fa98bffa377e2caba5f28fb281adtavmjong-freeFILELIST = \
0b067090fd4358b8109240b17d1eb8e05a382058tavmjong-freesun/jvm/hotspot/*.java \
28bf548be956fa98bffa377e2caba5f28fb281adtavmjong-freesun/jvm/hotspot/asm/*.java \
0b067090fd4358b8109240b17d1eb8e05a382058tavmjong-freesun/jvm/hotspot/asm/amd64/*.java \
28bf548be956fa98bffa377e2caba5f28fb281adtavmjong-freesun/jvm/hotspot/asm/ia64/*.java \
0b067090fd4358b8109240b17d1eb8e05a382058tavmjong-freesun/jvm/hotspot/asm/sparc/*.java \
0b067090fd4358b8109240b17d1eb8e05a382058tavmjong-freesun/jvm/hotspot/asm/x86/*.java \
0b067090fd4358b8109240b17d1eb8e05a382058tavmjong-freesun/jvm/hotspot/bugspot/*.java \
28bf548be956fa98bffa377e2caba5f28fb281adtavmjong-freesun/jvm/hotspot/bugspot/tree/*.java \
a6c195bea23a558bc5f520b122d7523b513163dctavmjong-freesun/jvm/hotspot/c1/*.java \
a6c195bea23a558bc5f520b122d7523b513163dctavmjong-freesun/jvm/hotspot/code/*.java \
a6c195bea23a558bc5f520b122d7523b513163dctavmjong-freesun/jvm/hotspot/compiler/*.java \
a6c195bea23a558bc5f520b122d7523b513163dctavmjong-freesun/jvm/hotspot/debugger/*.java \
a6c195bea23a558bc5f520b122d7523b513163dctavmjong-freesun/jvm/hotspot/debugger/amd64/*.java \
a6c195bea23a558bc5f520b122d7523b513163dctavmjong-freesun/jvm/hotspot/debugger/cdbg/*.java \
a6c195bea23a558bc5f520b122d7523b513163dctavmjong-freesun/jvm/hotspot/debugger/cdbg/basic/*.java \
a6c195bea23a558bc5f520b122d7523b513163dctavmjong-freesun/jvm/hotspot/debugger/cdbg/basic/amd64/*.java \
a6c195bea23a558bc5f520b122d7523b513163dctavmjong-freesun/jvm/hotspot/debugger/cdbg/basic/x86/*.java \
a6c195bea23a558bc5f520b122d7523b513163dctavmjong-freesun/jvm/hotspot/debugger/dbx/*.java \
78bababbd2bf0739d2e6652a15a9fadf7bfccbfdtavmjong-freesun/jvm/hotspot/debugger/dbx/sparc/*.java \
78bababbd2bf0739d2e6652a15a9fadf7bfccbfdtavmjong-freesun/jvm/hotspot/debugger/dbx/x86/*.java \
28bf548be956fa98bffa377e2caba5f28fb281adtavmjong-freesun/jvm/hotspot/debugger/dummy/*.java \
28bf548be956fa98bffa377e2caba5f28fb281adtavmjong-freesun/jvm/hotspot/debugger/ia64/*.java \
0b067090fd4358b8109240b17d1eb8e05a382058tavmjong-freesun/jvm/hotspot/debugger/linux/*.java \
0b067090fd4358b8109240b17d1eb8e05a382058tavmjong-freesun/jvm/hotspot/debugger/linux/x86/*.java \
78bababbd2bf0739d2e6652a15a9fadf7bfccbfdtavmjong-freesun/jvm/hotspot/debugger/posix/*.java \
78bababbd2bf0739d2e6652a15a9fadf7bfccbfdtavmjong-freesun/jvm/hotspot/debugger/posix/elf/*.java \
00af5ea1d5766855efe4afa3a298251713cf21b6tavmjong-freesun/jvm/hotspot/debugger/proc/*.java \
00af5ea1d5766855efe4afa3a298251713cf21b6tavmjong-freesun/jvm/hotspot/debugger/proc/amd64/*.java \
78bababbd2bf0739d2e6652a15a9fadf7bfccbfdtavmjong-freesun/jvm/hotspot/debugger/proc/sparc/*.java \
78bababbd2bf0739d2e6652a15a9fadf7bfccbfdtavmjong-freesun/jvm/hotspot/debugger/proc/x86/*.java \
78bababbd2bf0739d2e6652a15a9fadf7bfccbfdtavmjong-freesun/jvm/hotspot/debugger/remote/*.java \
78bababbd2bf0739d2e6652a15a9fadf7bfccbfdtavmjong-freesun/jvm/hotspot/debugger/remote/amd64/*.java \
0b067090fd4358b8109240b17d1eb8e05a382058tavmjong-freesun/jvm/hotspot/debugger/remote/sparc/*.java \
28bf548be956fa98bffa377e2caba5f28fb281adtavmjong-freesun/jvm/hotspot/debugger/remote/x86/*.java \
28bf548be956fa98bffa377e2caba5f28fb281adtavmjong-freesun/jvm/hotspot/debugger/sparc/*.java \
28bf548be956fa98bffa377e2caba5f28fb281adtavmjong-freesun/jvm/hotspot/debugger/win32/*.java \
9e25dba6006cf8116679d098dbff53bc6348099atavmjong-freesun/jvm/hotspot/debugger/win32/coff/*.java \
9e25dba6006cf8116679d098dbff53bc6348099atavmjong-freesun/jvm/hotspot/debugger/windbg/*.java \
0b067090fd4358b8109240b17d1eb8e05a382058tavmjong-freesun/jvm/hotspot/debugger/windbg/ia64/*.java \
28bf548be956fa98bffa377e2caba5f28fb281adtavmjong-freesun/jvm/hotspot/debugger/windbg/x86/*.java \
28bf548be956fa98bffa377e2caba5f28fb281adtavmjong-freesun/jvm/hotspot/debugger/x86/*.java \
28bf548be956fa98bffa377e2caba5f28fb281adtavmjong-freesun/jvm/hotspot/interpreter/*.java \
sun/jvm/hotspot/jdi/*.java \
sun/jvm/hotspot/livejvm/*.java \
sun/jvm/hotspot/memory/*.java \
sun/jvm/hotspot/oops/*.java \
sun/jvm/hotspot/runtime/*.java \
sun/jvm/hotspot/runtime/amd64/*.java \
sun/jvm/hotspot/runtime/ia64/*.java \
sun/jvm/hotspot/runtime/linux/*.java \
sun/jvm/hotspot/runtime/linux_amd64/*.java \
sun/jvm/hotspot/runtime/linux_ia64/*.java \
sun/jvm/hotspot/runtime/linux_sparc/*.java \
sun/jvm/hotspot/runtime/linux_x86/*.java \
sun/jvm/hotspot/runtime/posix/*.java \
sun/jvm/hotspot/runtime/solaris_amd64/*.java \
sun/jvm/hotspot/runtime/solaris_sparc/*.java \
sun/jvm/hotspot/runtime/solaris_x86/*.java \
sun/jvm/hotspot/runtime/sparc/*.java \
sun/jvm/hotspot/runtime/win32_amd64/*.java \
sun/jvm/hotspot/runtime/win32_ia64/*.java \
sun/jvm/hotspot/runtime/win32_x86/*.java \
sun/jvm/hotspot/runtime/x86/*.java \
sun/jvm/hotspot/tools/*.java \
sun/jvm/hotspot/tools/jcore/*.java \
sun/jvm/hotspot/tools/soql/*.java \
sun/jvm/hotspot/types/*.java \
sun/jvm/hotspot/types/basic/*.java \
sun/jvm/hotspot/ui/*.java \
sun/jvm/hotspot/ui/action/*.java \
sun/jvm/hotspot/ui/classbrowser/*.java \
sun/jvm/hotspot/ui/table/*.java \
sun/jvm/hotspot/ui/tree/*.java \
sun/jvm/hotspot/ui/treetable/*.java \
sun/jvm/hotspot/utilities/*.java \
sun/jvm/hotspot/utilities/memo/*.java \
sun/jvm/hotspot/utilities/soql/*.java \
com/sun/java/swing/action/*.java \
com/sun/java/swing/ui/*.java
#END FILELIST
ifneq "x$(ALT_BOOTDIR)" "x"
BOOTDIR := $(ALT_BOOTDIR)
endif
ifeq "x$(BOOTDIR)" "x"
JDK_HOME := $(shell dirname $(shell which java))/..
else
JDK_HOME := $(BOOTDIR)
endif
isUnix := $(shell test -r c:/; echo $$?)
ifeq "$(isUnix)" "1"
CPS := :
else
CPS := ";"
endif
SRC_DIR = ../src/share/classes
BUILD_DIR = ../build
OUTPUT_DIR = $(BUILD_DIR)/classes
DOC_DIR = $(BUILD_DIR)/doc
# gnumake 3.78.1 does not accept the *s,
# so use the shell to expand them
ALLFILES := $(patsubst %,$(SRC_DIR)/%,$(FILELIST))
ALLFILES := $(shell /bin/ls $(ALLFILES))
# tools.jar is used by the sa-jdi binding
CLASSPATH = $(JDK_HOME)/lib/tools.jar
CLASSPATH := $(subst \,/,$(CLASSPATH))
# FIXME: autogenerate call to rmic
SA_BUILD_VERSION_PROP = "sun.jvm.hotspot.runtime.VM.saBuildVersion=$(SA_BUILD_VERSION)"
SA_PROPERTIES = $(OUTPUT_DIR)/sa.properties
JAVAC = $(JDK_HOME)/bin/javac
JAVADOC = $(JDK_HOME)/bin/javadoc
RMIC = $(JDK_HOME)/bin/rmic
# Tagging it on because there's no reason not to run it
all: filelist
@mkdir -p $(OUTPUT_DIR)
@echo "$(SA_BUILD_VERSION_PROP)" > $(SA_PROPERTIES)
$(JAVAC) -source 1.4 -classpath $(CLASSPATH) -deprecation -sourcepath $(SRC_DIR) -g -d $(OUTPUT_DIR) @filelist
$(RMIC) -classpath $(OUTPUT_DIR) -d $(OUTPUT_DIR) sun.jvm.hotspot.debugger.remote.RemoteDebuggerServer
rm -f $(OUTPUT_DIR)/sun/jvm/hotspot/utilities/soql/sa.js
cp $(SRC_DIR)/sun/jvm/hotspot/utilities/soql/sa.js $(OUTPUT_DIR)/sun/jvm/hotspot/utilities/soql
mkdir -p $(OUTPUT_DIR)/sun/jvm/hotspot/ui/resources
rm -f $(OUTPUT_DIR)/sun/jvm/hotspot/ui/resources/*
cp $(SRC_DIR)/sun/jvm/hotspot/ui/resources/*.png $(OUTPUT_DIR)/sun/jvm/hotspot/ui/resources/
cp -r $(SRC_DIR)/images/* $(OUTPUT_DIR)/
allprof: filelist
@mkdir -p $(OUTPUT_DIR)
@echo "$(SA_BUILD_VERSION_PROP)" > $(SA_PROPERTIES)
$(JAVAC) -source 1.4 -J-Xprof -classpath $(CLASSPATH) -deprecation -sourcepath $(SRC_DIR) -g -d $(OUTPUT_DIR) @filelist
$(RMIC) -classpath $(OUTPUT_DIR) -d $(OUTPUT_DIR) sun.jvm.hotspot.debugger.remote.RemoteDebuggerServer
rm -f $(OUTPUT_DIR)/sun/jvm/hotspot/utilities/soql/sa.js
cp $(SRC_DIR)/sun/jvm/hotspot/utilities/soql/sa.js $(OUTPUT_DIR)/sun/jvm/hotspot/utilities/soql
mkdir -p $(OUTPUT_DIR)/sun/jvm/hotspot/ui/resources
rm -f $(OUTPUT_DIR)/sun/jvm/hotspot/ui/resources/*
cp $(SRC_DIR)/sun/jvm/hotspot/ui/resources/*.png $(OUTPUT_DIR)/sun/jvm/hotspot/ui/resources/
cp -r $(SRC_DIR)/images/* $(OUTPUT_DIR)/
.PHONY: filelist
filelist: $(ALLFILES)
@if [ ! -f $(JDK_HOME)/lib/tools.jar ] ; then \
echo "Missing $(JDK_HOME)/lib/tools.jar file. Use 1.6.0 or later version jdk to build SA."; \
echo ""; \
exit 1; \
fi
@rm -f $@
@echo $(ALLFILES) > $@
.PHONY: natives
natives:
cd ../src/os/`java -classpath $(OUTPUT_DIR) sun.jvm.hotspot.utilities.PlatformInfo`; $(MAKE) all
.PHONY: sa-jdi.jar
sa-jdi.jar:
echo "sa-jdi.jar is built by a hotspot build."
docs:
@$(JAVADOC) -private -classpath $(CLASSPATH) -sourcepath $(SRC_DIR) -d $(DOC_DIR) $(PKGLIST)
sizes: $(ALLFILES)
wc -l $(ALLFILES)
cscope: $(ALLFILES)
rm -f java.files
echo $(ALLFILES) > java.files
cscope -b -i java.files -f java.out
rm -f java.files
.PHONY: sa.jar
sa.jar:
rm -f $(BUILD_DIR)/sa.jar
cd $(OUTPUT_DIR) ; jar cvf ../sa.jar *
clean::
rm -rf filelist
cd ../src/os/`java -classpath $(OUTPUT_DIR) sun.jvm.hotspot.utilities.PlatformInfo`; $(MAKE) clean
rm -rf $(BUILD_DIR)/*