Makefile 4.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. ###########################################################################
  2. ## ##
  3. ## Language Technologies Institute ##
  4. ## Carnegie Mellon University ##
  5. ## Copyright (c) 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. ## Windows Mobile support for Flite ##
  35. ## ##
  36. ## Builds a usable flite, language and voice .dlls with mingw ##
  37. ## ##
  38. ## http://www.mingw.org ##
  39. ## ##
  40. ## Also an example command line program ##
  41. ## ##
  42. ## At top level ##
  43. ## ./configure --target=i386-mingw32 ##
  44. ## make ##
  45. ## ##
  46. ###########################################################################
  47. TOP = ..
  48. DIRNAME = windows
  49. BUILD_DIRS =
  50. ALL_DIRS = $(BUILD_DIRS)
  51. H =
  52. RC =
  53. SRCS =
  54. OBJS = $(SRCS:.c=.o)
  55. WINDOWS = fliteDll.cpp stdafx.h
  56. FILES = Makefile $(SRCS) $(H) $(RC) $(WINDOWS)
  57. flite_LIBS = flite_$(FL_VOX) flite_$(FL_LANG) flite_$(FL_LEX)
  58. flite_LIBS_flags = -L$(LIBDIR) $(flite_LIBS:%=-l%)
  59. flite_LIBS_deps = $(flite_LIBS:%=$(LIBDIR)/lib%.a)
  60. LOCAL_CLEAN = flite.dll flite.lib flite.def
  61. ALL =
  62. include $(TOP)/config/common_make_rules
  63. flite.def: $(LIBDIR)/libflite.a
  64. echo "LIBRARY FLITE.DLL" >flite.def
  65. echo "EXPORTS" >>flite.def
  66. $(NM) $(LIBDIR)/libflite.a | \
  67. grep "^0" | awk '{if ($$2 == "T") print $$3}' | sed 's/_//' >>flite.def
  68. flite.dll: $(LIBDIR)/libflite.a
  69. rm -rf flitedll
  70. mkdir flitedll
  71. (cd flitedll && ar x ../$(LIBDIR)/libflite.a)
  72. $(DLLWRAP) -def flite.def flitedll/*.o --output-lib flite.lib -o flite.dll
  73. rm -rf flitedll