Makefile revision 3438
2b44dc864c39ab42305a1c5973ae8c4097f9fbfcjarnou# Copyright (c) 2002, 2009, Oracle and/or its affiliates. All rights reserved.
2b44dc864c39ab42305a1c5973ae8c4097f9fbfcjarnou# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
2b44dc864c39ab42305a1c5973ae8c4097f9fbfcjarnou# This code is free software; you can redistribute it and/or modify it
2b44dc864c39ab42305a1c5973ae8c4097f9fbfcjarnou# under the terms of the GNU General Public License version 2 only, as
2b44dc864c39ab42305a1c5973ae8c4097f9fbfcjarnou# published by the Free Software Foundation.
2b44dc864c39ab42305a1c5973ae8c4097f9fbfcjarnou# This code is distributed in the hope that it will be useful, but WITHOUT
2b44dc864c39ab42305a1c5973ae8c4097f9fbfcjarnou# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
2b44dc864c39ab42305a1c5973ae8c4097f9fbfcjarnou# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
2b44dc864c39ab42305a1c5973ae8c4097f9fbfcjarnou# version 2 for more details (a copy is included in the LICENSE file that
2b44dc864c39ab42305a1c5973ae8c4097f9fbfcjarnou# accompanied this code).
2b44dc864c39ab42305a1c5973ae8c4097f9fbfcjarnou# You should have received a copy of the GNU General Public License version
2b44dc864c39ab42305a1c5973ae8c4097f9fbfcjarnou# 2 along with this work; if not, write to the Free Software Foundation,
2b44dc864c39ab42305a1c5973ae8c4097f9fbfcjarnou# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
2b44dc864c39ab42305a1c5973ae8c4097f9fbfcjarnou# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
2b44dc864c39ab42305a1c5973ae8c4097f9fbfcjarnou# or visit www.oracle.com if you need additional information or have any
2b44dc864c39ab42305a1c5973ae8c4097f9fbfcjarnou# questions.
9158866837ac91b57163185b11014bea466fd6efludovicp# Targets are:
2b44dc864c39ab42305a1c5973ae8c4097f9fbfcjarnou# sparc: Build the 32 bit sparc version in ./sparc
2b44dc864c39ab42305a1c5973ae8c4097f9fbfcjarnou# sparcv9: Build the 64 bit sparcv9 version in ./sparcv9
2b44dc864c39ab42305a1c5973ae8c4097f9fbfcjarnou# i386: Build the 32 bit i386 version in ./i386
dd2893207f24e5cc1406a8ad8f5f5598f3516385neil_a_wilson ALL_TARGET = i386 $(filter amd64,$(shell isalist))
dd2893207f24e5cc1406a8ad8f5f5598f3516385neil_a_wilson echo You must set the environment variable JAVA_HOME before executing this Makefile ; \
2b44dc864c39ab42305a1c5973ae8c4097f9fbfcjarnou @javah -classpath $(CLASSES_DIR) -jni sun.jvm.hotspot.debugger.proc.ProcDebuggerLocal
2b44dc864c39ab42305a1c5973ae8c4097f9fbfcjarnou CC -G -KPIC -I${JAVA_HOME}/include -I${JAVA_HOME}/include/solaris saproc.cpp \
2b44dc864c39ab42305a1c5973ae8c4097f9fbfcjarnou CC -o $@/libsaproc_audit.so -G -Kpic -z defs saproc_audit.cpp -lmapmalloc -ldl -lc
dd2893207f24e5cc1406a8ad8f5f5598f3516385neil_a_wilson @javah -classpath $(CLASSES_DIR) -jni sun.jvm.hotspot.debugger.proc.ProcDebuggerLocal
dd2893207f24e5cc1406a8ad8f5f5598f3516385neil_a_wilson CC -G -KPIC -xarch=amd64 -I${JAVA_HOME}/include -I${JAVA_HOME}/include/solaris saproc.cpp \
dd2893207f24e5cc1406a8ad8f5f5598f3516385neil_a_wilson CC -xarch=amd64 -o $@/libsaproc_audit.so -G -Kpic -z defs saproc_audit.cpp -lmapmalloc -ldl -lc
2b44dc864c39ab42305a1c5973ae8c4097f9fbfcjarnou @javah -classpath $(CLASSES_DIR) -jni sun.jvm.hotspot.debugger.proc.ProcDebuggerLocal
2b44dc864c39ab42305a1c5973ae8c4097f9fbfcjarnou CC -G -KPIC -xarch=v8 -I${JAVA_HOME}/include -I${JAVA_HOME}/include/solaris saproc.cpp \
dd2893207f24e5cc1406a8ad8f5f5598f3516385neil_a_wilson CC -xarch=v8 -o $@/libsaproc_audit.so -G -Kpic -z defs saproc_audit.cpp -lmapmalloc -ldl -lc
2b44dc864c39ab42305a1c5973ae8c4097f9fbfcjarnou @javah -classpath $(CLASSES_DIR) -jni sun.jvm.hotspot.debugger.proc.ProcDebuggerLocal
dd2893207f24e5cc1406a8ad8f5f5598f3516385neil_a_wilson CC -G -KPIC -xarch=v9 -I${JAVA_HOME}/include -I${JAVA_HOME}/include/solaris saproc.cpp \
dd2893207f24e5cc1406a8ad8f5f5598f3516385neil_a_wilson CC -xarch=v9 -o $@/libsaproc_audit.so -G -Kpic -z defs saproc_audit.cpp -lmapmalloc -ldl -lc