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