Makefile 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  1. ###########################################################################
  2. ## ##
  3. ## Language Technologies Institute ##
  4. ## Carnegie Mellon University ##
  5. ## Copyright (c) 2008-2009 ##
  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. ## Windows Mobile support for Flite ##
  35. ## ##
  36. ## Builds a usable flite library for Windows Mobile (WinCE) ##
  37. ## ##
  38. ## FLOWM: flite on windows mobile ##
  39. ## Basic file reader for files ##
  40. ## ##
  41. ## Note this uses the cegcc compilation suite (Linux/CYGWIN) rather ##
  42. ## than embedded visual studio. ##
  43. ## http://cegcc.sourceforge.net/ ##
  44. ## ##
  45. ## At top level ##
  46. ## ./configure --target=arm-wince ##
  47. ## make ##
  48. ## Will generate wince executable in wince/flowm.exe ##
  49. ## ##
  50. ###########################################################################
  51. TOP = ..
  52. DIRNAME = wince
  53. BUILD_DIRS =
  54. ALL_DIRS = $(BUILD_DIRS)
  55. H = flowm.h
  56. RC = flowm.rc
  57. SRCS = flowm_main.c flowm_flite.c
  58. OBJS = $(SRCS:.c=.o)
  59. IMGS = flowm.bmp flowm.ico
  60. OTHER = _setup.xml
  61. FILES = Makefile flowm.notes $(SRCS) $(H) $(RC) $(IMGS) $(OTHER)
  62. FLOWM_VERSION=0.8
  63. flite_LIBS = flite_$(FL_LANG) flite_$(FL_LEX) flite
  64. flite_LIBS_flags = -L$(LIBDIR) $(flite_LIBS:%=-l%)
  65. flite_LIBS_deps = $(flite_LIBS:%=$(LIBDIR)/lib%.a)
  66. # If you only want one voice, it should be kal -- its fast and small enough
  67. voice_LIBS_flags = -lflite_cmu_us_kal
  68. EXTRA_CC_FLAGS = -Dcmu_us_kal
  69. # OR you can try these specially built voices for WM
  70. # Special 8KH, reduced order (13) voices, seem to be fast enough
  71. # for 400MHz ARM (Tytn II)
  72. #voice_LIBS_flags = -Lvoices -lcmu_us_kal -lcmu_us_awb -lcmu_us_rms -lcmu_us_slt
  73. #EXTRA_CC_FLAGS = -Dcmu_us_kal -Dcmu_us_awb -Dcmu_us_rms -Dcmu_us_slt
  74. wince_LIBS = -lcommctrl -laygshell
  75. EXTRA_CC_FLAGS += -D_WIN32_IE=0x0500
  76. ALL = flowm.exe
  77. include $(TOP)/config/common_make_rules
  78. flowm.exe: $(OBJS) $(H) flowm.rsc $(FLITELIBS) $(flite_LIBS_deps)
  79. $(CC) $(CFLAGS) -o $@ $(OBJS) flowm.rsc $(voice_LIBS_flags) $(flite_LIBS_flags) $(LDFLAGS) $(wince_LIBS)
  80. $(STRIP) flowm.exe
  81. $(SIZE) flowm.exe
  82. flowm.rsc: flowm.rc flowm.h
  83. $(WINDRES) $(EXTRA_CC_FLAGS) flowm.rc flowm.rsc
  84. flowm.cab: flowm.exe
  85. cp -pr ../doc/alice alice.txt
  86. cp -pr ../doc/intro.txt flintro.txt
  87. lcab alice.txt flintro.txt flowm.exe _setup.xml flowm.cab
  88. backup:
  89. tar jcvf flowm_${FLOWM_VERSION}.tar.gz ${FILES}