Makefile 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  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. make_voice_list wfst2c build_lex clunit_prune \
  49. a2byte.pl a2short.pl a2int.pl flite_rename_voice \
  50. make_lang_list make_new_lang_lex
  51. SCM=make_lex.scm make_lts.scm make_cart.scm play_sync.scm \
  52. make_phoneset.scm make_vallist.scm make_clunits.scm \
  53. make_didb.scm make_didb2.scm make_f0lr.scm make_lts_wfst.scm \
  54. make_lts_rewrite.scm \
  55. make_cg.scm make_ug.scm
  56. FILES = Makefile $(SCM) $(SRCS) $(SCRIPTS) $(TMPLTS) \
  57. find_cmimax example.lex example.ssml
  58. LOCAL_INCLUDES =
  59. ifeq ($(HOST_PLATFORM),$(TARGET_PLATFORM))
  60. ALL = $(BINDIR)/find_sts $(BINDIR)/flite_sort makescripts
  61. endif
  62. include $(TOP)/config/common_make_rules
  63. LOCAL_CLEAN = $(BINDIR)/find_sts $(BINDIR)/flite_sort $(TOP)/bin
  64. $(BINDIR)/find_sts: find_sts_main.o $(FLITELIBS)
  65. $(CC) $(CFLAGS) -o $@ find_sts_main.o $(FLITELIBFLAGS) $(LDFLAGS)
  66. $(BINDIR)/flite_sort: flite_sort_main.o $(FLITELIBS)
  67. $(CC) $(CFLAGS) -o $@ flite_sort_main.o $(FLITELIBFLAGS) $(LDFLAGS)
  68. makescripts:
  69. @ cp -p $(SCRIPTS) $(TOP)/bin