-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile.cygwin
39 lines (25 loc) · 1.16 KB
/
Makefile.cygwin
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
# This is old and may not work with new versions of Flite
# It will be updated when work on Windows resumes.
#
FLITEDIR=..
FLITELIBDIR = $(FLITEDIR)/build/i386-cygwin/lib
FLITELIBS = -lflite_cmu_us_kal16 -lflite_usenglish -lflite_cmulex -lflite -lm -lwinmm
# the flite_cmu_us_kal16 sounds a bit beter in my testing
PYTHONDIR = C:/python27
PYTHONLIBS = -lpython27
PYREXC = $(PYTHONDIR)/python.exe $(PYTHONDIR)/Scripts/pyrexc.py
CFLAGS = -mno-cygwin -Wall -g
INCLUDES = -I$(FLITEDIR)/include -I$(PYTHONDIR)/include
LDFLAGS = -L$(FLITELIBDIR) -L/c/Python27/libs
all: flite.pyd
test.exe: test.c
gcc $(CFLAGS) -o test test.c $(INCLUDES) -L$(FLITELIBDIR) $(FLITELIBS)
flite.pyd: flite.c
gcc $(CFLAGS) -shared $(INCLUDES) flite.c $(LDFLAGS) $(LIBS) $(PYTHONLIBS) $(FLITELIBS) -oflite.pyd
%.c : %.pyx
$(PYREXC) $<
.PHONY: clean
clean:
rm -f flite.pyd test.exe *.o flite.c test.wav test.pyc
# other flite is compiled with:
# gcc -mno-cygwin -Wall -DCST_NO_SOCKETS=1 -o ../bin/flite.exe flite_main.o -L ./build/i386-cygwin/lib -lflite_cmu_us_kal -lflite_usenglish -lflite_cmulex -L. /build/i386-cygwin/lib -lflite -lm -lwinmm