Makefile revision 0
1788N/A#
1788N/A# Copyright 2002-2006 Sun Microsystems, Inc. All Rights Reserved.
1788N/A# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
1788N/A#
1788N/A# This code is free software; you can redistribute it and/or modify it
1788N/A# under the terms of the GNU General Public License version 2 only, as
1788N/A# published by the Free Software Foundation.
1788N/A#
1788N/A# This code is distributed in the hope that it will be useful, but WITHOUT
1788N/A# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
1788N/A# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
1788N/A# version 2 for more details (a copy is included in the LICENSE file that
1788N/A# accompanied this code).
1788N/A#
1788N/A# You should have received a copy of the GNU General Public License version
1788N/A# 2 along with this work; if not, write to the Free Software Foundation,
1788N/A# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
1788N/A#
1788N/A# Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
1788N/A# CA 95054 USA or visit www.sun.com if you need additional information or
5680N/A# have any questions.
5680N/A#
5575N/A#
1788N/A
1788N/A# Targets are:
1788N/A# sparc: Build the 32 bit sparc version in ./sparc
1788N/A# sparcv9: Build the 64 bit sparcv9 version in ./sparcv9
1788N/A# i386: Build the 32 bit i386 version in ./i386
1788N/A
1788N/A.PHONY: sparc sparcv9 i386
1788N/A
1788N/AARCH_ORIG = $(shell uname -p)
1788N/A
1788N/AC++ := CC
1788N/ARM := /usr/bin/rm
1788N/AMKDIRS := /usr/bin/mkdir -p
1788N/A
1788N/ACLASSES_DIR = ../../../../build/classes
2899N/A
2899N/Aifeq "$(ARCH_ORIG)" "i386"
1788N/A ALL_TARGET = i386 $(filter amd64,$(shell isalist))
1788N/Aelse
1788N/A ALL_TARGET = sparc sparcv9
3817N/Aendif
3817N/A
3817N/Aall:: $(ALL_TARGET)
1788N/A
2967N/Ajavahomecheck::
2967N/A @if [ "x$(JAVA_HOME)" = "x" ] ; then \
2967N/A echo You must set the environment variable JAVA_HOME before executing this Makefile ; \
1938N/A exit 1 ; \
1788N/A fi
1788N/A
1788N/Ai386:: javahomecheck
1788N/A $(MKDIRS) $@
3736N/A @javah -classpath $(CLASSES_DIR) -jni sun.jvm.hotspot.debugger.proc.ProcDebuggerLocal
1788N/A CC -G -KPIC -I${JAVA_HOME}/include -I${JAVA_HOME}/include/solaris saproc.cpp \
1788N/A -M mapfile -o $@/libsaproc.so -ldemangle
1788N/A
1788N/Aamd64:: javahomecheck
1788N/A $(MKDIRS) $@
1788N/A @javah -classpath $(CLASSES_DIR) -jni sun.jvm.hotspot.debugger.proc.ProcDebuggerLocal
2980N/A CC -G -KPIC -xarch=amd64 -I${JAVA_HOME}/include -I${JAVA_HOME}/include/solaris saproc.cpp \
2980N/A -M mapfile -o $@/libsaproc.so -ldemangle
2980N/A
1788N/Asparc:: javahomecheck
1788N/A $(MKDIRS) $@
1788N/A @javah -classpath $(CLASSES_DIR) -jni sun.jvm.hotspot.debugger.proc.ProcDebuggerLocal
3438N/A CC -G -KPIC -xarch=v8 -I${JAVA_HOME}/include -I${JAVA_HOME}/include/solaris saproc.cpp \
3438N/A -M mapfile -o $@/libsaproc.so -ldemangle
3438N/A
3438N/Asparcv9:: javahomecheck
1788N/A $(MKDIRS) $@
4337N/A @javah -classpath $(CLASSES_DIR) -jni sun.jvm.hotspot.debugger.proc.ProcDebuggerLocal
1788N/A CC -G -KPIC -xarch=v9 -I${JAVA_HOME}/include -I${JAVA_HOME}/include/solaris saproc.cpp \
5575N/A -M mapfile -o $@/libsaproc.so -ldemangle
5575N/A
5575N/Aclean::
3817N/A $(RM) -rf sun_jvm_hotspot_debugger_proc_ProcDebuggerLocal.h
$(RM) -rf sparc sparcv9 i386