summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--stdlib/Makefile9
1 files changed, 3 insertions, 6 deletions
diff --git a/stdlib/Makefile b/stdlib/Makefile
index 89a8ccb33..30e78f01a 100644
--- a/stdlib/Makefile
+++ b/stdlib/Makefile
@@ -119,12 +119,9 @@ pervasives.p.cmx: pervasives.ml
camlinternalOO.cmi: camlinternalOO.mli
$(CAMLC) $(COMPFLAGS) -nopervasives -c camlinternalOO.mli
-camlinternalOO.cmx: camlinternalOO.ml
- $(CAMLOPT) $(OPTCOMPFLAGS) -inline 0 camlinternalOO.ml
-
-OO_P_CMX=camlinternalOO.p.cmx
-$(OO_P_CMX): camlinternalOO.ml
- $(MAKE) EXTRAFLAGS="-inline 0" OO_P_CMX=dummy camlinternalOO.p.cmx
+CIOO=camlinternalOO
+$(CIOO).cmx $(CIOO).p.cmx: $(CIOO).ml
+ $(MAKE) EXTRAFLAGS="-inline 0" CIOO=dummy $@
# labelled modules require the -nolabels flag
labelled.cmo: