#! /bin/bash
#
# (C) Copyright IBM Corp. 2001
#
#
# This file defines a set of environment variables needed to build and
# run Jikes RVM.  This file is sourced by the installation scripts; you
# do not need to source this file into your command-prompt shell.
#
# IMPORTANT: You need to modify this file to reflect your environment!
#

#########
# PART I: Preprocessor directives that hold for every config on this target
#########
# target architecture is PowerPC
export RVM_FOR_POWERPC=1
export RVM_FOR_32_ADDR=1

# target OS is OSX
export RVM_FOR_OSX=1

# SMP is not supported on PowerPC/Linux.
# pthread library doesn't play nicely with RVM since it wants to
# mask the bottom bits of stackpointer to find phtread local storage.
export RVM_FOR_SINGLE_VIRTUAL_PROCESSOR=1
export RVM_WITHOUT_INTERCEPT_BLOCKING_SYSTEM_CALLS=1

export BOOTIMAGE_LOAD_ADDRESS=0x31000000
export MAXIMUM_MAPPABLE_ADDRESS=0x80000000

##########
# PART II: Where to find tools and resources on this target
########## 

export HOST_JAVA_HOME=/usr/

# the JDK java executable
export HOST_JAVA="$HOST_JAVA_HOME/bin/java"

# the JDK javadoc executable
export HOST_JAVADOC="$HOST_JAVA_HOME/bin/javadoc"

# the JDK javac executable
export HOST_JAVAC="$HOST_JAVA_HOME/bin/javac"

# the JDK jar executable
export HOST_JAR="$HOST_JAVA_HOME/bin/jar"

# the JDK standard library jar files
export HOST_REPOSITORIES="$HOST_JAVA_HOME/lib/rt.jar"

# the JDK tools jar
export HOST_TOOLS="$HOST_JAVA_HOME/lib/tools.jar"

# path for GNU make
export GNU_MAKE=/usr/bin/make

# path for jikes.
export JIKES=/usr/bin/jikes

# what C compilers should be used?
export CC="/usr/bin/gcc -w -O"

# what C++ compilers should be used?
export CPLUS="/usr/bin/g++"

# how to link a shared C++ library
export LDSHARED="/usr/bin/g++ -dynamiclib"

# used by the jbuild.linkBooter
export CPP=/usr/bin/cpp

# The configuration for building the user guide.
# You may have to edit this file.
export USER_GUIDE_CONFIG="${RVM_ROOT}/rvm/doc/userguide/config.mk"

export HAS_DLCOMPAT=1

export AWK="/usr/bin/awk"
export BASH="/bin/bash"
export CVS=/usr/bin/cvs
export DIFF=/usr/bin/diff
export FGREP="/usr/bin/fgrep"
export FIND="/usr/bin/find"
export GNU_TAR="/usr/bin/tar"
export GREP="/usr/bin/grep"
export MD5SUM=md5sum
export PS=/bin/ps
export SED=/usr/bin/sed
export WGET=wget
export XARGS="/usr/bin/xargs"
export UNZIP_CMD="/usr/bin/unzip"
export CLASSPATH_ROOT="${RVM_ROOT}/classpath/"

export BENCHMARK_ROOT=""
