#
#   
#
# Copyright 1990-2006 Sun Microsystems, Inc. All Rights Reserved.
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER
#

ifndef GNU_TOOLS_DIR 
GNU_TOOLS_DIR = /micro/tools/i686-redhat-linux/gnu/mipsel-linux
endif

host_os  = linux
archExpr = case "`uname -m`" in  \
                i[3-6]86) \
                    echo i386 \
                    ;; \
                i86pc) \
                    echo i386 \
                    ;; \
                sparc*)  \
                    echo sparc \
                    ;; \
                sun4u) \
                    echo sparc \
                    ;; \
                *) \
                    uname -m  \
                    ;; \
        esac
host_arch = $(shell $(archExpr) )
os_family = linux
compiler  = gcc
arch      = c

export ENABLE_C_INTERPRETER             = true
export ENABLE_C_INTERPRETER__BY         = linux_mips.cfg
export ENABLE_INTERPRETER_GENERATOR     = false
export ENABLE_INTERPRETER_GENERATOR__BY = linux_mips.cfg
export ENABLE_COMPILER                  = false
export ENABLE_COMPILER__BY              = linux_mips.cfg

ifndef ENABLE_TIMER_THREAD
export ENABLE_TIMER_THREAD     = false
export ENABLE_TIMER_THREAD__BY = linux_mips.cfg
endif

ifeq ($(IsRomGen), true)
    ROM_GEN_FLAGS = +GenerateGNUCode -EnableROMCompilation
endif

ifeq ($(IsTarget), true)
    target_arch = mips
    CPP_DEF_FLAGS += -DMIPS
    LINK_FLAGS += -static
endif

ifndef MERGE_SOURCE_FILES
MERGE_SOURCE_FILES   = true
endif

ifndef SOURCE_MERGER_SIZE
SOURCE_MERGER_SIZE   = 35
endif
