########################################################-*-mode:Makefile-*-
##                                                                       ##
##  Edinburgh Speech Tools: local configuration file                     ##
##                                                                       ##
###########################################################################
##
##  Specific config file for local installation
##

###########################################################################
## Where the speech_tools tree will be installed.
## 
## The default is that the speech_tools will remain where it is compiled.
##
## You may need to set this explicitly if automounter or NFS
## side effects cause problems

EST_HOME := $(shell (cd $(EST); pwd))

###########################################################################
## System type. 
##
## The system will attempt to determine this, but if it is wrong you may
## need to set it explicitly. The definitions are in 
## systems/$(SYSTEM_TYPE).mak
##
## Format: machine _ os osrev
## 
## Examples: sparc_SunOS5 intel_Linux2.0

SYSTEM_TYPE=$(MACHINETYPE)_$(OSTYPE)$(OSREV)

###########################################################################
## Compiler.
## The definitions are in compilers/$(COMPILER).mak
## Examples: gcc gcc26 suncc egcs gcc28

COMPILER=gcc

###########################################################################
## Java system to use if you include the Java interface.
## Examples jdk

JAVA_COMPILER=none

###########################################################################
## Pre defined configurations (for directory locations, setup peculiarities
## etc.)
##
## Examples: default cstr rjc

CONFIGURATION = 

###########################################################################
## Compilation options.
##
## OPTIMISE=4 will turn off DEBUG

OPTIMISE=3
WARN=1
# VERBOSE=1
# DEBUG=1
# PROFILE=gprof
# SHARED=1

## Directory specific selections which override the above

OPTIMISE_sigpr = 3

###########################################################################
## Feature selection.
##
## Select modules to include.

## AUDIO
## various audio devices are supported directly but you can always
## specify a program to play files in a desired format.

## NCD's network audio system, This is recommended.
# INCLUDE_MODULES += NAS_AUDIO

## Native audio for your platform (sun, linux, freebsd, irix, windows)
INCLUDE_MODULES += NATIVE_AUDIO

## Special code to run Windows MPLAYER
# INCLUDE_MODULES += MPLAYER_AUDIO

## USER INTERFACE

## Readline. This library gives command line editing and history.
## Use it if possible as it makes things much easier to use.
# INCLUDE_MODULES += READLINE

# Options: 	sigmask_fix is required on some versions of IRIX
#			useing readline v2.0
# MODULE_READLINE_OPTIONS =  sigmask_fix

# speech recognition
#INCLUDE_MODULES += ASR


## Scheme

## Scheme In One Defun interpreter and data structures
INCLUDE_MODULES += SIOD

## The following subsystems depend on the Scheme subsystem and so
## must be removed if Scheme is not included

INCLUDE_MODULES += WAGON
INCLUDE_MODULES += SCFG
INCLUDE_MODULES += WFST
INCLUDE_MODULES += OLS

## Java


## Define this to include the pure Java code
# INCLUDE_MODULES += JAVA

## Define this to compile the Java interface to the EST classes. You
## need to compile with the SHARED option above
# INCLUDE_MODULES += JAVA_CPP

## Debugging, You should probably ony do one or the other of these.

## Efence protected malloc library to catch memory errors
# INCLUDE_MODULES += EFENCE

## Dmalloc, another chekcing malloc library
# INCLUDE_MODULES += DMALLOC

## Additional subsystems to include should be listed here.

ALSO_INCLUDE=

## Turn this on to compile all known modules. This is intended for
## portability testing.

# INCLUDE_EVERYTHING=1


###########################################################################
## Now include the settings

include $(EST)/config/systems/$(SYSTEM_TYPE).mak

include $(EST)/config/compilers/$(COMPILER).mak

ifneq ($(JAVA_COMPILER),none)
    include $(EST)/config/compilers/$(JAVA_COMPILER).mak
endif

ifneq ($(CONFIGURATION),)
    -include $(CONFIGURATION:%=$(EST)/config/configs/%.mak)
endif

###########################################################################
##
## Any settings you need to describe how your system differs from the
## assumed defaults should go below. See config/ReadMe for a description
## of the most common things you might need.

