1996-02-21 02:49:46 -08:00
|
|
|
# The lexer generator
|
|
|
|
|
1996-04-30 07:53:58 -07:00
|
|
|
CAMLC=..\boot\ocamlrun ..\boot\ocamlc -I ..\boot
|
1996-02-21 02:49:46 -08:00
|
|
|
COMPFLAGS=
|
|
|
|
LINKFLAGS=
|
1996-04-30 07:53:58 -07:00
|
|
|
CAMLYACC=..\boot\ocamlyacc
|
1996-02-21 02:49:46 -08:00
|
|
|
YACCFLAGS=
|
1996-04-30 07:53:58 -07:00
|
|
|
CAMLLEX=..\boot\ocamlrun ..\boot\ocamllex
|
|
|
|
CAMLDEP=..\boot\ocamlrun ..\tools\ocamldep
|
1996-02-21 02:49:46 -08:00
|
|
|
DEPFLAGS=
|
|
|
|
|
1996-02-26 05:52:15 -08:00
|
|
|
OBJS=parser.cmo lexer.cmo lexgen.cmo compact.cmo output.cmo main.cmo
|
1996-02-21 02:49:46 -08:00
|
|
|
|
1996-04-30 07:53:58 -07:00
|
|
|
all: ocamllex
|
1996-02-21 02:49:46 -08:00
|
|
|
|
1996-04-30 07:53:58 -07:00
|
|
|
ocamllex: $(OBJS)
|
|
|
|
$(CAMLC) $(LINKFLAGS) -o ocamllex $(OBJS)
|
1996-02-21 02:49:46 -08:00
|
|
|
|
|
|
|
clean::
|
1996-04-30 07:53:58 -07:00
|
|
|
rm -f ocamllex
|
1996-02-21 02:49:46 -08:00
|
|
|
rm -f *.cmo *.cmi
|
|
|
|
|
|
|
|
parser.ml parser.mli: parser.mly
|
|
|
|
$(CAMLYACC) $(YACCFLAGS) parser.mly
|
|
|
|
|
|
|
|
clean::
|
|
|
|
rm -f parser.ml parser.mli
|
|
|
|
|
|
|
|
beforedepend:: parser.ml parser.mli
|
|
|
|
|
|
|
|
lexer.ml: lexer.mll
|
|
|
|
$(CAMLLEX) lexer.mll
|
|
|
|
|
|
|
|
clean::
|
|
|
|
rm -f lexer.ml
|
|
|
|
|
|
|
|
beforedepend:: lexer.ml
|
|
|
|
|
|
|
|
.SUFFIXES:
|
|
|
|
.SUFFIXES: .ml .cmo .mli .cmi
|
|
|
|
|
|
|
|
.ml.cmo:
|
|
|
|
$(CAMLC) -c $(COMPFLAGS) $<
|
|
|
|
|
|
|
|
.mli.cmi:
|
|
|
|
$(CAMLC) -c $(COMPFLAGS) $<
|
|
|
|
|
|
|
|
depend: beforedepend
|
|
|
|
$(CAMLDEP) *.mli *.ml > .depend
|
|
|
|
|
|
|
|
!include .depend
|