| 1 |
########################################################################### |
| 2 |
## ## |
| 3 |
## Language Technologies Institute ## |
| 4 |
## Carnegie Mellon University ## |
| 5 |
## Copyright (c) 2000-2008 ## |
| 6 |
## All Rights Reserved. ## |
| 7 |
## ## |
| 8 |
## Permission is hereby granted, free of charge, to use and distribute ## |
| 9 |
## this software and its documentation without restriction, including ## |
| 10 |
## without limitation the rights to use, copy, modify, merge, publish, ## |
| 11 |
## distribute, sublicense, and/or sell copies of this work, and to ## |
| 12 |
## permit persons to whom this work is furnished to do so, subject to ## |
| 13 |
## the following conditions: ## |
| 14 |
## 1. The code must retain the above copyright notice, this list of ## |
| 15 |
## conditions and the following disclaimer. ## |
| 16 |
## 2. Any modifications must be clearly marked as such. ## |
| 17 |
## 3. Original authors' names are not deleted. ## |
| 18 |
## 4. The authors' names are not used to endorse or promote products ## |
| 19 |
## derived from this software without specific prior written ## |
| 20 |
## permission. ## |
| 21 |
## ## |
| 22 |
## CARNEGIE MELLON UNIVERSITY AND THE CONTRIBUTORS TO THIS WORK ## |
| 23 |
## DISCLAIM ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING ## |
| 24 |
## ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT ## |
| 25 |
## SHALL CARNEGIE MELLON UNIVERSITY NOR THE CONTRIBUTORS BE LIABLE ## |
| 26 |
## FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES ## |
| 27 |
## WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN ## |
| 28 |
## AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ## |
| 29 |
## ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF ## |
| 30 |
## THIS SOFTWARE. ## |
| 31 |
## ## |
| 32 |
########################################################################### |
| 33 |
## ## |
| 34 |
## Tools for converting Festvox structures to Flite code ## |
| 35 |
## ## |
| 36 |
########################################################################### |
| 37 |
TOP=.. |
| 38 |
DIRNAME=tools |
| 39 |
BUILD_DIRS = |
| 40 |
ALL_DIRS= |
| 41 |
SRCS = find_sts_main.c flite_sort_main.c |
| 42 |
OBJS = $(SRCS:.c=.o) |
| 43 |
TMPLTS = VOICE_ldom.c VOICE_clunits.c VOICE_diphone.c \ |
| 44 |
VOICE_cg.c Makefile.flite \ |
| 45 |
Makefile.lex LANGNAME_lex.c LANGNAME_lex.h \ |
| 46 |
Makefile.lang LANGNAME_lang.c LANGNAME_lang.h |
| 47 |
SCRIPTS = build_flite setup_flite huff_table flite_test \ |
| 48 |
flite_test_fv \ |
| 49 |
make_voice_list wfst2c build_lex clunit_prune \ |
| 50 |
a2byte.pl a2short.pl a2int.pl flite_rename_voice \ |
| 51 |
make_lang_list make_new_lang_lex flitechecks \ |
| 52 |
add_flite_feats make_flite_feats run_flitecheck quantize_params \ |
| 53 |
get_voices |
| 54 |
SCM=make_lex.scm make_lts.scm make_cart.scm play_sync.scm \ |
| 55 |
make_phoneset.scm make_vallist.scm make_clunits.scm \ |
| 56 |
make_didb.scm make_didb2.scm make_f0lr.scm make_lts_wfst.scm \ |
| 57 |
make_lts_rewrite.scm \ |
| 58 |
make_cg.scm make_ug.scm |
| 59 |
|
| 60 |
FILES = Makefile $(SCM) $(SRCS) $(SCRIPTS) $(TMPLTS) \ |
| 61 |
find_cmimax example.lex example.ssml |
| 62 |
LOCAL_INCLUDES = |
| 63 |
|
| 64 |
ifeq ($(HOST_PLATFORM),$(TARGET_PLATFORM)) |
| 65 |
ALL = $(BINDIR)/find_sts $(BINDIR)/flite_sort makescripts |
| 66 |
endif |
| 67 |
|
| 68 |
include $(TOP)/config/common_make_rules |
| 69 |
|
| 70 |
LOCAL_CLEAN = $(BINDIR)/find_sts $(BINDIR)/flite_sort $(TOP)/bin |
| 71 |
|
| 72 |
$(BINDIR)/find_sts: find_sts_main.o $(FLITELIBS) |
| 73 |
$(CC) $(CFLAGS) -o $@ find_sts_main.o $(FLITELIBFLAGS) $(LDFLAGS) |
| 74 |
$(BINDIR)/flite_sort: flite_sort_main.o $(FLITELIBS) |
| 75 |
$(CC) $(CFLAGS) -o $@ flite_sort_main.o $(FLITELIBFLAGS) $(LDFLAGS) |
| 76 |
makescripts: |
| 77 |
@ cp -p $(SCRIPTS) $(TOP)/bin |
| 78 |
|