forked from propella/abcsx
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
78 lines (61 loc) · 2.01 KB
/
Makefile
File metadata and controls
78 lines (61 loc) · 2.01 KB
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
DUMP=./abcsx.ss -dump
ASM=./abcsx.ss -asm
#DUMP=./abcsx-gauche.scm -dump
#ASM=./abcsx-gauche.scm -asm
RUNASM := ./runasm.sh
SWFMAKE = ./swf-gauche.scm
REGRESSION = examples/textField
run :
$(RUNASM) examples/hello.sx
$(RUNASM) examples/type.sx
$(RUNASM) examples/parseInt.sx
$(RUNASM) examples/arithmetic.sx
$(RUNASM) examples/ifte.sx
$(RUNASM) examples/callLocal.sx
$(RUNASM) examples/call.sx
$(RUNASM) examples/send.sx
$(RUNASM) examples/closure.sx
$(RUNASM) examples/class.sx
$(RUNASM) examples/namespace.sx
$(RUNASM) examples/array.sx
$(RUNASM) examples/with.sx
# $(RUNASM) examples/activation.sx -- works only before tamarin 711
run-gosh :
$(MAKE) ASM="./abcsx-gauche.scm -asm" run
partial : examples/partial1.sx.abc examples/partial2.sx.abc
avmshell examples/partial1.sx.abc examples/partial2.sx.abc
all : test test-dump run run-gosh test-define partial test-regression test-swf
# unit test
test :
./abcsx.ss -test
./abcsx-gauche.scm -test
# dump test
test-dump : examples/textField.abc
$(DUMP) examples/textField.abc
# swf test
test-swf : Hello.swf
open Hello.swf
test-debug : Hello.swf
fdb Hello.swf
Hello.swf : examples/textField.sx
$(ASM) examples/textField.sx
$(SWFMAKE) -w 100 -h 100 -c Hello -o $@ examples/textField.sx.abc
# regression test
test-regression :
$(ASM) $(REGRESSION).sx
$(DUMP) $(REGRESSION).sx.abc > $(REGRESSION)2.sx
$(ASM) $(REGRESSION)2.sx
$(DUMP) $(REGRESSION)2.sx.abc > $(REGRESSION)3.sx
diff $(REGRESSION)2.sx $(REGRESSION)3.sx
clean :
rm -f *.abc examples/*.abc launcher/*.abc Hello.swf
rm -f $(REGRESSION)2.sx $(REGRESSION)3.sx
%.abc : %.as
# asc $<
asc -import ~/src/tamarin-central/core/builtin.abc -import examples/flashglobal.as $<
%.sx.abc : %.sx
$(ASM) $<
test-define : examples/re-define1.sx.abc examples/re-define2.sx.abc examples/re-define3.sx.abc
# avmshell -Dverbose=interp $^
avmshell examples/re-define1.sx.abc examples/re-define2.sx.abc examples/re-define3.sx.abc
# avmshell examples/re-define2.sx.abc examples/re-define1.sx.abc examples/re-define3.sx.abc