forked from claus/libtess2.swc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
92 lines (75 loc) · 2.23 KB
/
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
all: check
make all_targets
clean:
rm -f *_wrapper.c *.swf *.swc *.abc libtess2.as libtess2_int.as
T01:
"$(CB_SDK)/usr/bin/swig" -as3 -module libtess2 -outdir . -includeall -ignoremissing -o libtess2_wrapper.c libtess2.i
$(AS3COMPILERARGS)\
-abcfuture\
-AS3\
-import $(call nativepath,$(CB_SDK)/usr/lib/builtin.abc)\
-import $(call nativepath,$(CB_SDK)/usr/lib/playerglobal.abc)\
libtess2.as
mv libtess2.abc olibtess2.abc
$(AS3COMPILERARGS)\
-abcfuture\
-AS3\
-import $(call nativepath,$(CB_SDK)/usr/lib/builtin.abc)\
-import $(call nativepath,$(CB_SDK)/usr/lib/playerglobal.abc)\
libtess2_wrapper.as
mv libtess2_wrapper.abc olibtess2_wrapper.abc
"$(CB_SDK)/usr/bin/gcc" $(BASE_CFLAGS)\
-O4\
olibtess2.abc\
olibtess2_wrapper.abc\
libtess2_wrapper.c\
libtess2/Source/bucketalloc.c\
libtess2/Source/dict.c\
libtess2/Source/geom.c\
libtess2/Source/mesh.c\
libtess2/Source/priorityq.c\
libtess2/Source/sweep.c\
libtess2/Source/tess.c\
libtess2.c\
libtess2_main.c\
-emit-swc=com.codeazur.libtess2.lib\
-o libtess2.swc\
-I./libtess2/Include
mv libtess2.swc bin
T02:
"$(CB_SDK)/usr/bin/swig" -as3 -module libtess2_int -outdir . -includeall -ignoremissing -o libtess2_int_wrapper.c libtess2_int.i
$(AS3COMPILERARGS)\
-abcfuture\
-AS3\
-import $(call nativepath,$(CB_SDK)/usr/lib/builtin.abc)\
-import $(call nativepath,$(CB_SDK)/usr/lib/playerglobal.abc)\
libtess2_int.as
mv libtess2_int.abc olibtess2_int.abc
$(AS3COMPILERARGS)\
-abcfuture\
-AS3\
-import $(call nativepath,$(CB_SDK)/usr/lib/builtin.abc)\
-import $(call nativepath,$(CB_SDK)/usr/lib/playerglobal.abc)\
libtess2_int_wrapper.as
mv libtess2_int_wrapper.abc olibtess2_int_wrapper.abc
"$(CB_SDK)/usr/bin/gcc" $(BASE_CFLAGS)\
-O4\
-D use_int\
olibtess2_int.abc\
olibtess2_int_wrapper.abc\
libtess2_int_wrapper.c\
libtess2/Source/bucketalloc.c\
libtess2/Source/dict.c\
libtess2/Source/geom.c\
libtess2/Source/mesh.c\
libtess2/Source/priorityq.c\
libtess2/Source/sweep.c\
libtess2/Source/tess.c\
libtess2.c\
libtess2_main.c\
-emit-swc=com.codeazur.libtess2_int.lib\
-o libtess2_int.swc\
-I./libtess2/Include
mv libtess2_int.swc bin
all_targets: T01 T02 clean
include ./Makefile.common