1996-11-02 10:04:50 -08:00
|
|
|
|
# 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 <EFBFBD> ocamllex
|
|
|
|
|
|
|
|
|
|
ocamllex <EFBFBD> {OBJS}
|
1997-05-19 08:42:21 -07:00
|
|
|
|
{CAMLC} {LINKFLAGS} -o ocamllex {OBJS}
|
1996-11-02 10:04:50 -08:00
|
|
|
|
|
|
|
|
|
clean <EFBFBD><EFBFBD>
|
1997-05-19 08:42:21 -07:00
|
|
|
|
delete -i ocamllex
|
|
|
|
|
delete -i <20>.cm[io] || set status 0
|
1996-11-02 10:04:50 -08:00
|
|
|
|
|
|
|
|
|
parser.mli <EFBFBD> parser.ml
|
1997-05-19 08:42:21 -07:00
|
|
|
|
echo -n
|
1996-11-02 10:04:50 -08:00
|
|
|
|
|
|
|
|
|
parser.ml <EFBFBD> parser.mly
|
1997-05-19 08:42:21 -07:00
|
|
|
|
{CAMLYACC} {YACCFLAGS} parser.mly
|
1996-11-02 10:04:50 -08:00
|
|
|
|
|
|
|
|
|
clean <EFBFBD><EFBFBD>
|
1997-05-19 08:42:21 -07:00
|
|
|
|
delete -i parser.ml parser.mli
|
1996-11-02 10:04:50 -08:00
|
|
|
|
|
|
|
|
|
beforedepend <EFBFBD><EFBFBD> parser.ml parser.mli
|
|
|
|
|
|
|
|
|
|
lexer.ml <EFBFBD> lexer.mll
|
1997-05-19 08:42:21 -07:00
|
|
|
|
{CAMLLEX} lexer.mll
|
1996-11-02 10:04:50 -08:00
|
|
|
|
|
|
|
|
|
clean <EFBFBD><EFBFBD>
|
1997-05-19 08:42:21 -07:00
|
|
|
|
delete -i lexer.ml
|
1996-11-02 10:04:50 -08:00
|
|
|
|
|
|
|
|
|
beforedepend <EFBFBD><EFBFBD> lexer.ml
|
|
|
|
|
|
|
|
|
|
.cmo <EFBFBD> .ml
|
1997-05-19 08:42:21 -07:00
|
|
|
|
{CAMLC} -c {COMPFLAGS} {default}.ml
|
1996-11-02 10:04:50 -08:00
|
|
|
|
|
|
|
|
|
.cmi <EFBFBD> .mli
|
1997-05-19 08:42:21 -07:00
|
|
|
|
{CAMLC} -c {COMPFLAGS} {default}.mli
|
1996-11-02 10:04:50 -08:00
|
|
|
|
|
|
|
|
|
depend <EFBFBD> beforedepend
|
1997-05-19 08:42:21 -07:00
|
|
|
|
{CAMLDEP} <20>.mli <20>.ml > Makefile.Mac.depend
|