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