-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile.win
68 lines (55 loc) · 2.66 KB
/
Makefile.win
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
# Makefile generated by OCamake
# http://tech.motion-twin.com
.SUFFIXES : .ml .mli .cmo .cmi .cmx .mll .mly
CFLAGS=-g -I ../neko/libs/include/ocaml
LIBS=extLib.cmxa extc.cmxa swfLib.cmxa unix.cmxa xml-light.cmxa str.cmxa
LFLAGS=-g -o haxe.exe -I ../neko/libs/include/ocaml
OUTPUT=sed 's/File "\([^"]\+\)", line \([0-9]\+\), \(.*\)/\1(\2): \3/' tmp.cmi
FILES = ast.cmx lexer.cmx type.cmx common.cmx parser.cmx typecore.cmx \
genxml.cmx typeload.cmx codegen.cmx optimizer.cmx \
../neko/libs/include/ocaml/nast.cmx ../neko/libs/include/ocaml/binast.cmx ../neko/libs/include/ocaml/nxml.cmx \
genneko.cmx genas3.cmx genjs.cmx genswf8.cmx genswf9.cmx genswf.cmx genphp.cmx gencpp.cmx interp.cmx typer.cmx \
main.cmx
all: haxe.exe
haxe.exe: $(FILES)
ocamlopt $(LFLAGS) $(LIBS) $(FILES)
../neko/libs/include/ocaml/binast.cmx: ../neko/libs/include/ocaml/nast.cmx
../neko/libs/include/ocaml/nxml.cmx: ../neko/libs/include/ocaml/nast.cmx
codegen.cmx: typeload.cmx typecore.cmx type.cmx genxml.cmx common.cmx ast.cmx
common.cmx: type.cmx lexer.cmx ast.cmx
genas3.cmx: type.cmx common.cmx codegen.cmx ast.cmx
gencpp.cmx: type.cmx common.cmx codegen.cmx ast.cmx
genjs.cmx: type.cmx lexer.cmx common.cmx codegen.cmx ast.cmx optimizer.cmx
genneko.cmx: type.cmx lexer.cmx common.cmx codegen.cmx ast.cmx ../neko/libs/include/ocaml/binast.cmx ../neko/libs/include/ocaml/nxml.cmx
genphp.cmx: type.cmx lexer.cmx common.cmx codegen.cmx ast.cmx
genswf.cmx: type.cmx genswf9.cmx genswf8.cmx common.cmx ast.cmx
genswf8.cmx: type.cmx lexer.cmx common.cmx codegen.cmx ast.cmx
genswf9.cmx: type.cmx lexer.cmx genswf8.cmx common.cmx codegen.cmx ast.cmx
genxml.cmx: type.cmx lexer.cmx common.cmx ast.cmx
lexer.cmx: ast.cmx
main.cmx: typer.cmx typeload.cmx typecore.cmx type.cmx parser.cmx \
optimizer.cmx lexer.cmx genxml.cmx genswf.cmx genphp.cmx genneko.cmx \
genjs.cmx gencpp.cmx genas3.cmx common.cmx codegen.cmx ast.cmx interp.cmx
optimizer.cmx: typecore.cmx type.cmx parser.cmx common.cmx ast.cmx
parser.cmx: parser.ml lexer.cmx common.cmx ast.cmx
(ocamlopt -pp camlp4o $(CFLAGS) -c parser.ml 2>tmp.cmi && $(OUTPUT)) || ($(OUTPUT) && exit 1)
type.cmx: ast.cmx
typecore.cmx: type.cmx common.cmx ast.cmx
typeload.cmx: typecore.cmx type.cmx parser.cmx common.cmx ast.cmx
typer.cmx: typeload.cmx typecore.cmx type.cmx parser.cmx optimizer.cmx \
lexer.cmx common.cmx codegen.cmx ast.cmx interp.cmx genjs.cmx
interp.cmx: genneko.cmx type.cmx
clean:
rm -f haxe.exe
rm -f $(FILES) $(FILES:.cmx=.obj) $(FILES:.cmx=.cmi)
# SUFFIXES
.ml.cmo:
ocamlc $(CFLAGS) -c $<
.ml.cmx:
(ocamlopt $(CFLAGS) -c $< 2>tmp.cmi && $(OUTPUT)) || ($(OUTPUT) && exit 1)
.mli.cmi:
ocamlc $(CFLAGS) $<
.mll.ml:
ocamllex $<
.mly.ml:
ocamlyacc $<