blob: 18ca267363ea7e6aa1e65cb30b5b174d013c7b08 (
plain)
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
|
# The lexer generator
CAMLC = ::boot:ocamlrun ::boot:ocamlc -I ::boot:
COMPFLAGS =
LINKFLAGS =
CAMLYACC = ::boot:ocamlyacc
YACCFLAGS =
CAMLLEX = ::boot:ocamlrun ::boot:ocamllex
CAMLDEP = ::boot:ocamlrun ::tools:ocamldep
DEPFLAGS =
OBJS = parser.cmo lexer.cmo lexgen.cmo compact.cmo output.cmo main.cmo
all Ä ocamllex
ocamllex Ä {OBJS}
{CAMLC} {LINKFLAGS} -o ocamllex {OBJS}
clean ÄÄ
delete -i ocamllex
delete -i Å.cm[io] || set status 0
parser.mli Ä parser.ml
echo -n
parser.ml Ä parser.mly
{CAMLYACC} {YACCFLAGS} parser.mly
clean ÄÄ
delete -i parser.ml parser.mli
beforedepend ÄÄ parser.ml parser.mli
lexer.ml Ä lexer.mll
{CAMLLEX} lexer.mll
clean ÄÄ
delete -i lexer.ml
beforedepend ÄÄ lexer.ml
.cmo Ä .ml
{CAMLC} -c {COMPFLAGS} {default}.ml
.cmi Ä .mli
{CAMLC} -c {COMPFLAGS} {default}.mli
depend Ä beforedepend
{CAMLDEP} Å.mli Å.ml > Makefile.Mac.depend
|