###########################################################################
##                                                                       ##
##                Centre for Speech Technology Research                  ##
##                     University of Edinburgh, UK                       ##
##                         Copyright (c) 1996                            ##
##                        All Rights Reserved.                           ##
##                                                                       ##
##  Permission to use, copy, modify, distribute this software and its    ##
##  documentation for any purpose is hereby granted without fee,         ##
##  subject to the following conditions:                                 ##
##   1. Redistributions of source code must retain the above copyright   ##
##      notice, this list of conditions and the following disclaimer.    ##
##   2. Redistributions in binary form must reproduce the above          ##
##      copyright notice, this list of conditions and the following      ##
##      disclaimer in the documentation and/or other materials provided  ##
##      with the redistribution.                                         ##
##   3. Neither the name of the University nor the names of its          ##
##      contributors may be used to endorse or promote products derived  ##
##      from this software without specific prior written permission.    ##
##   4. Any modifications must be clearly marked as such.                ##
##   5. Original authors' names, if present, remain.                     ##
##                                                                       ##
##  THE UNIVERSITY OF EDINBURGH AND THE CONTRIBUTORS TO THIS WORK        ##
##  DISCLAIM ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING      ##
##  ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT   ##
##  SHALL THE UNIVERSITY OF EDINBURGH NOR THE CONTRIBUTORS BE LIABLE     ##
##  FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES    ##
##  WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN   ##
##  AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,          ##
##  ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF       ##
##  THIS SOFTWARE.                                                       ##
##                                                                       ##
###########################################################################
##                                                                       ##
##  Alan W Black (awb@cstr.ed.ac.uk) August 1996                         ##
##                                                                       ##
##  Programs to covert the Computer Users Version of Oxford Advanced     ##
##  Learners' Dictionary to a form that the Festival Speech Synthesizer  ##
##  can use.                                                             ##
##                                                                       ##
##  This requires the Computer Users Version of Oxford Advanced          ##
##  Learners' Dictionary which is available from                         ##
##       ftp://ota.ox.ac.uk/pub/ota/public/dicts/710                     ##
##  This lexicon is available for non-commercial use only                ##
##  Contact Oxford University Press with regards commercial use          ##
##                                                                       ##
###########################################################################
CC=gcc 
CFLAGS = -g -I.

SRCS = oald2ft.c
OBJS = $(SRCS:.c=.o)

oald2ft: $(OBJS)
	$(CC) $(CFLAGS) -o oald2ft $(OBJS)

cuvoald710.scm: oald2ft text710.dat
	./oald2ft >cuvoald710.scm

cuvoald710-0.2.out: cuvoald710.scm
	( echo "(load (string-append libdir \"/\" \"siod.scm\"))"; \
	  echo "(require 'mrpa_phones)"; \
          echo "(lex.compile \"cuvoald710.scm\" \"cuvoald710-0.2.out\")" ) | \
	festival -q
