diff options
| -rw-r--r-- | Makefile.build | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/Makefile.build b/Makefile.build index 0cc9466453..f2fabf918e 100644 --- a/Makefile.build +++ b/Makefile.build @@ -128,15 +128,16 @@ endif PR_O := $(if $(READABLE_ML4),pr_o.cmo,pr_dump.cmo) # works also with new camlp4 +SYSMOD:=str unix +SYSCMA:=$(addsuffix .cma,$(SYSMOD)) +SYSCMXA:=$(addsuffix .cmxa,$(SYSMOD)) + ifeq ($(CAMLP4),camlp5) -SYSMOD:=str unix gramlib +P4CMA:=gramlib.cma else -SYSMOD:=str unix dynlink camlp4lib +P4CMA:=dynlink.cma camlp4lib.cma endif -SYSCMA:=$(addsuffix .cma,$(SYSMOD)) -SYSCMXA:=$(addsuffix .cmxa,$(SYSMOD)) - ########################################################################### # Infrastructure for the rest of the Makefile @@ -728,7 +729,7 @@ $(OCAMLDOCDIR)/%.pdf: $(OCAMLDOCDIR)/%.tex dev/printers.cma: | dev/printers.mllib.d $(SHOW)'Testing $@' - $(HIDE)$(OCAMLC) $(BYTEFLAGS) $(SYSCMA) $^ -o test-printer + $(HIDE)$(OCAMLC) $(BYTEFLAGS) $(SYSCMA) $(P4CMA) $^ -o test-printer @rm -f test-printer $(SHOW)'OCAMLC -a $@' $(HIDE)$(OCAMLC) $(BYTEFLAGS) $^ -linkall -a -o $@ |
