Debian Codegraph @

wince/Makefile

raw
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
64 flite_LIBS = flite_$(FL_LANG) flite_$(FL_LEX) flite
65 flite_LIBS_flags = -L$(LIBDIR) $(flite_LIBS:%=-l%)
66 flite_LIBS_deps = $(flite_LIBS:%=$(LIBDIR)/lib%.a)
67
68 # If you only want one voice, it should be kal -- its fast and small enough
69 voice_LIBS_flags = -lflite_cmu_us_kal
70 EXTRA_CC_FLAGS = -Dcmu_us_kal
71
72 # OR you can try these specially built voices for WM
73 # Special 8KH, reduced order (13) voices, seem to be fast enough
74 # for 400MHz ARM (Tytn II)
75 #voice_LIBS_flags = -Lvoices -lcmu_us_kal -lcmu_us_awb -lcmu_us_rms -lcmu_us_slt
76 #EXTRA_CC_FLAGS = -Dcmu_us_kal -Dcmu_us_awb -Dcmu_us_rms -Dcmu_us_slt
77
78 wince_LIBS = -lcommctrl -laygshell
79 EXTRA_CC_FLAGS += -D_WIN32_IE=0x0500
80
81 ALL = flowm.exe
82
83 include $(TOP)/config/common_make_rules
84
85 flowm.exe: $(OBJS) $(H) flowm.rsc $(FLITELIBS) $(flite_LIBS_deps)
86 $(CC) $(CFLAGS) -o $@ $(OBJS) flowm.rsc $(voice_LIBS_flags) $(flite_LIBS_flags) $(LDFLAGS) $(wince_LIBS)
87 $(STRIP) flowm.exe
88 $(SIZE) flowm.exe
89
90 flowm.rsc: flowm.rc flowm.h
91 $(WINDRES) $(EXTRA_CC_FLAGS) flowm.rc flowm.rsc
92
93 flowm.cab: flowm.exe
94 cp -pr ../doc/alice alice.txt
95 cp -pr ../doc/intro.txt flintro.txt
96 lcab alice.txt flintro.txt flowm.exe _setup.xml flowm.cab
97
98 backup:
99 tar jcvf flowm_${FLOWM_VERSION}.tar.gz ${FILES}
100