X-Git-Url: http://git.annexia.org/?a=blobdiff_plain;f=src%2FMakefile.in;h=4d6640e5ccd586573ba7590dd8b78ad7dcd6dc5e;hb=7b7cd85810f18286a36215cc164b659bf7db142c;hp=15e80060ccab09db2f9b5818c35bf15f717d76be;hpb=5a6a8b2b8e515941f9a2b3cc051da646ae696251;p=goals.git diff --git a/src/Makefile.in b/src/Makefile.in index 15e8006..4d6640e 100644 --- a/src/Makefile.in +++ b/src/Makefile.in @@ -17,7 +17,11 @@ # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. OBJECTS = \ + config.cmx \ + utils.cmx \ + cmdline.cmx \ ast.cmx \ + eval.cmx \ parser.cmx \ lexer.cmx \ parse.cmx \ @@ -31,21 +35,24 @@ clean: rm -f parser.ml parser.mli lexer.ml parser.conflicts stamp-parser rm -f goals -goals: $(OBJECTS) - @OCAMLFIND@ opt $^ -o $@ - +OCAMLPACKAGES = -package str,unix OCAMLFLAGS = -g -safe-string -warn-error CDEFLMPSUVYZX+52-3 +goals: $(OBJECTS) + @OCAMLFIND@ opt $(OCAMLFLAGS) $(OCAMLPACKAGES) -linkpkg $^ -o $@ + %.cmi: %.mli - @OCAMLFIND@ c $(OCAMLFLAGS) -c $< -o $@ + @OCAMLFIND@ c $(OCAMLFLAGS) $(OCAMLPACKAGES) -c $< -o $@ %.cmo: %.ml - @OCAMLFIND@ c $(OCAMLFLAGS) -c $< -o $@ + @OCAMLFIND@ c $(OCAMLFLAGS) $(OCAMLPACKAGES) -c $< -o $@ %.cmx: %.ml - @OCAMLFIND@ opt $(OCAMLFLAGS) -c $< -o $@ + @OCAMLFIND@ opt $(OCAMLFLAGS) $(OCAMLPACKAGES) -c $< -o $@ parser.ml parser.mli: stamp-parser stamp-parser: parser.mly @MENHIR@ --explain $< +# Hack required to get includes working. + echo 'val lexer_read : (Lexing.lexbuf -> token) option ref' >> parser.mli touch $@ lexer.ml: lexer.mll lexer.cmi parser.ml @@ -62,7 +69,10 @@ depend: .depend -include .depend Makefile: Makefile.in ../config.status - ../config.status Makefile + ../config.status $@ + +config.ml: config.ml.in ../config.status + ../config.status $@ .PHONY: all clean depend