diff options
Diffstat (limited to 'stdlib/Makefile.shared')
| -rwxr-xr-x | stdlib/Makefile.shared | 17 |
1 files changed, 13 insertions, 4 deletions
diff --git a/stdlib/Makefile.shared b/stdlib/Makefile.shared index bb2ef88fda..80c40d6002 100755 --- a/stdlib/Makefile.shared +++ b/stdlib/Makefile.shared @@ -12,10 +12,13 @@ ######################################################################### include ../config/Makefile -CAMLC=$(CAMLC_BIN) -COMPFLAGS=-strict-sequence -w +33..39 -g -warn-error A -nostdlib -CAMLOPT=$(CAMLOPT_BIN) -OPTCOMPFLAGS=-warn-error A -nostdlib -g +RUNTIME=../boot/ocamlrun +COMPILER=../ocamlc +CAMLC=$(RUNTIME) $(COMPILER) +COMPFLAGS=-strict-sequence -w +33..39 -g -warn-error A -bin-annot -nostdlib +OPTCOMPILER=../ocamlopt +CAMLOPT=$(RUNTIME) $(OPTCOMPILER) +OPTCOMPFLAGS=-warn-error A -nostdlib -g -bin-annot CAMLDEP=../boot/ocamlrun ../tools/ocamldep OBJS=pervasives.cmo $(OTHERS) @@ -75,6 +78,12 @@ clean:: .ml.p.cmx: $(CAMLOPT) $(OPTCOMPFLAGS) `./Compflags $@` -p -c -o $*.p.cmx $< +# Dependencies on the compiler +$(OBJS) std_exit.cmo: $(COMPILER) +$(OBJS:.cmo=.cmi) std_exit.cmi: $(COMPILER) +$(OBJS:.cmo=.cmx) std_exit.cmx: $(OPTCOMPILER) +$(OBJS:.cmo=.p.cmx) std_exit.p.cmx: $(OPTCOMPILER) + # Dependencies on Pervasives (not tracked by ocamldep) $(OBJS) std_exit.cmo: pervasives.cmi $(OTHERS:.cmo=.cmi) std_exit.cmi: pervasives.cmi |
