ocaml/lex/Makefile.Mac

50 lines
883 B
Makefile
Raw Normal View History

# 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}
{CAMLC} {LINKFLAGS} -o ocamllex {OBJS}
clean <EFBFBD><EFBFBD>
delete -i ocamllex
delete -i <20>.cm[io] || set status 0
parser.mli <EFBFBD> parser.ml
echo -n
parser.ml <EFBFBD> parser.mly
{CAMLYACC} {YACCFLAGS} parser.mly
clean <EFBFBD><EFBFBD>
delete -i parser.ml parser.mli
beforedepend <EFBFBD><EFBFBD> parser.ml parser.mli
lexer.ml <EFBFBD> lexer.mll
{CAMLLEX} lexer.mll
clean <EFBFBD><EFBFBD>
delete -i lexer.ml
beforedepend <EFBFBD><EFBFBD> lexer.ml
.cmo <EFBFBD> .ml
{CAMLC} -c {COMPFLAGS} {default}.ml
.cmi <EFBFBD> .mli
{CAMLC} -c {COMPFLAGS} {default}.mli
depend <EFBFBD> beforedepend
{CAMLDEP} <20>.mli <20>.ml > Makefile.Mac.depend