forked from theophilusx/javaSpeak
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
33 lines (24 loc) · 903 Bytes
/
Makefile
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
# Filename: Makefile
# Creation Date: Sunday, 01 April 2012 01:50 PM EST
# Last Modified: Sunday, 01 April 2012 03:07 PM EST
# Author: Tim Cross <[email protected]>
# Description:
#
SWIG_WRAPPERS=javaSpeak.java javaSpeakJNI.java javaSpeak_wrap.c \
SWIGTYPE_p_wchar_t.java
all : libjavaSpeak.so Main.class
libjavaSpeak.so : javaSpeak.o javaSpeak_wrap.o
gcc -shared javaSpeak.o javaSpeak_wrap.o -o libjavaSpeak.so -l espeak
Main.class : Main.java $(SWIG_WRAPPERS)
javac *.java
javaSpeak.o : javaSpeak.c
gcc -c -fpic -O2 -fno-strict-aliasing javaSpeak.c
javaSpeak_wrap.o: javaSpeak_wrap.c
gcc -c -fpic -O2 -fno-strict-aliasing javaSpeak_wrap.c \
-I /usr/lib/jvm/default-java/include \
-I /usr/lib/jvm/default-java/include/linux
$(SWIG_WRAPPERS) : javaSpeak.i
swig -java javaSpeak.i
.PHONEY : clean
clean :
-rm $(SWIG_WRAPPERS) *.o *.class *.so