annotate make/solaris/makefiles/sa.make @ 196:d1605aabd0a1

6719955: Update copyright year Summary: Update copyright year for files that have been modified in 2008 Reviewed-by: ohair, tbell
author xdono
date Wed, 02 Jul 2008 12:55:16 -0700
parents a294fd0c4b38
children 25c3145237c6
rev   line source
duke@0 1 #
xdono@196 2 # Copyright 2003-2008 Sun Microsystems, Inc. All Rights Reserved.
duke@0 3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
duke@0 4 #
duke@0 5 # This code is free software; you can redistribute it and/or modify it
duke@0 6 # under the terms of the GNU General Public License version 2 only, as
duke@0 7 # published by the Free Software Foundation.
duke@0 8 #
duke@0 9 # This code is distributed in the hope that it will be useful, but WITHOUT
duke@0 10 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
duke@0 11 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
duke@0 12 # version 2 for more details (a copy is included in the LICENSE file that
duke@0 13 # accompanied this code).
duke@0 14 #
duke@0 15 # You should have received a copy of the GNU General Public License version
duke@0 16 # 2 along with this work; if not, write to the Free Software Foundation,
duke@0 17 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
duke@0 18 #
duke@0 19 # Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
duke@0 20 # CA 95054 USA or visit www.sun.com if you need additional information or
duke@0 21 # have any questions.
duke@0 22 #
duke@0 23 #
duke@0 24
duke@0 25 # This makefile (sa.make) is included from the sa.make in the
duke@0 26 # build directories.
duke@0 27
duke@0 28 # This makefile is used to build Serviceability Agent java code
duke@0 29 # and generate JNI header file for native methods.
duke@0 30
kamg@91 31 include $(GAMMADIR)/make/solaris/makefiles/rules.make
duke@0 32 AGENT_DIR = $(GAMMADIR)/agent
kamg@91 33 include $(GAMMADIR)/make/sa.files
duke@0 34 GENERATED = ../generated
duke@0 35
duke@0 36 # tools.jar is needed by the JDI - SA binding
duke@0 37 SA_CLASSPATH = $(BOOT_JAVA_HOME)/lib/tools.jar
duke@0 38
duke@0 39 # gnumake 3.78.1 does not accept the *s that
duke@0 40 # are in AGENT_ALLFILES, so use the shell to expand them
duke@0 41 AGENT_ALLFILES := $(shell /usr/bin/test -d $(AGENT_DIR) && /bin/ls $(AGENT_ALLFILES))
duke@0 42
duke@0 43 SA_CLASSDIR = $(GENERATED)/saclasses
duke@0 44
duke@0 45 SA_BUILD_VERSION_PROP = "sun.jvm.hotspot.runtime.VM.saBuildVersion=$(SA_BUILD_VERSION)"
duke@0 46
duke@0 47 SA_PROPERTIES = $(SA_CLASSDIR)/sa.properties
duke@0 48
duke@0 49 # if $(AGENT_DIR) does not exist, we don't build SA.
duke@0 50 all:
duke@0 51 $(QUIETLY) if [ -d $(AGENT_DIR) ] ; then \
duke@0 52 $(MAKE) -f sa.make $(GENERATED)/sa-jdi.jar; \
duke@0 53 fi
duke@0 54
duke@0 55 $(GENERATED)/sa-jdi.jar: $(AGENT_ALLFILES)
duke@0 56 $(QUIETLY) echo "Making $@";
duke@0 57 $(QUIETLY) if [ "$(BOOT_JAVA_HOME)" = "" ]; then \
duke@0 58 echo "ALT_BOOTDIR, BOOTDIR or JAVA_HOME needs to be defined to build SA"; \
duke@0 59 exit 1; \
duke@0 60 fi
duke@0 61 $(QUIETLY) if [ ! -f $(SA_CLASSPATH) ] ; then \
duke@0 62 echo "Missing $(SA_CLASSPATH) file. Use 1.6.0 or later version of JDK";\
duke@0 63 echo ""; \
duke@0 64 exit 1; \
duke@0 65 fi
duke@0 66 $(QUIETLY) if [ ! -d $(SA_CLASSDIR) ] ; then \
duke@0 67 mkdir -p $(SA_CLASSDIR); \
duke@0 68 fi
duke@0 69 $(QUIETLY) $(COMPILE.JAVAC) -source 1.4 -classpath $(SA_CLASSPATH) -g -d $(SA_CLASSDIR) $(AGENT_ALLFILES)
duke@0 70 $(QUIETLY) $(COMPILE.RMIC) -classpath $(SA_CLASSDIR) -d $(SA_CLASSDIR) sun.jvm.hotspot.debugger.remote.RemoteDebuggerServer
duke@0 71 $(QUIETLY) echo "$(SA_BUILD_VERSION_PROP)" > $(SA_PROPERTIES)
duke@0 72 $(QUIETLY) $(RUN.JAR) cf $@ -C $(SA_CLASSDIR)/ .
duke@0 73 $(QUIETLY) $(RUN.JAR) uf $@ -C $(AGENT_SRC_DIR) META-INF/services/com.sun.jdi.connect.Connector
duke@0 74 $(QUIETLY) $(RUN.JAVAH) -classpath $(SA_CLASSDIR) -d $(GENERATED) -jni sun.jvm.hotspot.debugger.proc.ProcDebuggerLocal
duke@0 75
duke@0 76 clean:
duke@0 77 rm -rf $(SA_CLASSDIR)
duke@0 78 rm -rf $(GENERATED)/sa-jdi.jar