hotspot/agent/make/Makefile
Print this page
rev 611 : Merge
@@ -1,7 +1,7 @@
#
-# Copyright 2000-2007 Sun Microsystems, Inc. All Rights Reserved.
+# Copyright 2000-2008 Sun Microsystems, Inc. All Rights Reserved.
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
#
# This code is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License version 2 only, as
# published by the Free Software Foundation.
@@ -239,30 +239,13 @@
# 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))
-EXTRA_JAR = ../closed/src/share/lib/maf-1_0.jar
# tools.jar is used by the sa-jdi binding
CLASSPATH = $(JDK_HOME)/lib/tools.jar
-
-
-noGui := $(shell test -r $(EXTRA_JAR); echo $$?)
-ifeq "$(noGui)" "1"
- # the EXTRA_JAR is in the closed/ area because of open source issues. If
- # it doesn't exist, then delete from ALLFILES the files that depend on it.
- # This means that that HSDB, the GUI debugger for HotSpot, won't be built
- # in an open source build.
- ALLFILES := $(patsubst $(SRC_DIR)/sun/jvm/hotspot/ui/%,,$(ALLFILES))
- ALLFILES := $(patsubst $(SRC_DIR)/sun/jvm/hotspot/bugspot/%,,$(ALLFILES))
- ALLFILES := $(patsubst $(SRC_DIR)/sun/jvm/hotspot/HSDB.java,,$(ALLFILES))
- MSG = \" WARNING:::: $(EXTRA_JAR) is missing; won't build the GUI part of SA\"
-else
- CLASSPATH := $(EXTRA_JAR)$(CPS)$(CLASSPATH)
-endif
-
CLASSPATH := $(subst \,/,$(CLASSPATH))
# FIXME: autogenerate call to rmic
SA_BUILD_VERSION_PROP = "sun.jvm.hotspot.runtime.VM.saBuildVersion=$(SA_BUILD_VERSION)"
@@ -296,11 +279,11 @@
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:
+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
@@ -319,12 +302,15 @@
@$(JAVADOC) -private -classpath $(CLASSPATH) -sourcepath $(SRC_DIR) -d $(DOC_DIR) $(PKGLIST)
sizes: filelist
wc -l `cat filelist`
-cscope: filelist
- cscope -b -i filelist -f java.out
+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 *