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

# Build configuration for linux_c. linux_c is intended to validate
# the C interpreter loop, not as a product platform.

export ENABLE_C_INTERPRETER     := true
export ENABLE_C_INTERPRETER__BY := linux_c.cfg

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

ifeq ($(host_arch), sparc)
export HARDWARE_LITTLE_ENDIAN := false
export HOST_LITTLE_ENDIAN := false
CPP_DEF_FLAGS += -DSPARC
# on my Linux Sparc 2.2.19 box itimer doesn't work
export ENABLE_TIMER_THREAD = true
endif

LOOP_GEN_FLAGS = +GenerateGNUCode
ROM_GEN_FLAGS  = +GenerateGNUCode

CPP_DEF_FLAGS += 
LINK_FLAGS    +=

ifndef ENABLE_TIMER_THREAD
export ENABLE_TIMER_THREAD = true
export ENABLE_TIMER_THREAD__BY = linux_c.cfg
endif

export ENABLE_INTERPRETER_GENERATOR     := false
export ENABLE_INTERPRETER_GENERATOR__BY := linux_c.cfg

export ENABLE_COMPILER                  := false
export ENABLE_COMPILER__BY              := linux_c.cfg

ifndef MERGE_SOURCE_FILES
MERGE_SOURCE_FILES  = true
endif

ifndef SOURCE_MERGER_SIZE
SOURCE_MERGER_SIZE  = 35
endif
