chrisz 953d5285f4 Import math/ocaml-zarith, an arbitrary precision arithmetics library
using GMP as backend. This is needed by frama-c because num was removed
from the OCaml compiler distribution.
Marked as BROKEN till the next OCaml upgrade.

OK jca@
2018-07-11 15:09:00 +00:00

40 lines
1.1 KiB
Plaintext

$OpenBSD: patch-project_mak,v 1.1.1.1 2018/07/11 15:09:00 chrisz Exp $
* respect MAKE
* we already configure ocamlfind via OCAMLFIND_DESTDIR.
Index: project.mak
--- project.mak.orig
+++ project.mak
@@ -57,7 +57,7 @@ endif
all: $(TOINSTALL)
tests:
- make -C tests test
+ $(MAKE) -C tests test
zarith.cma: $(MLSRC:%.ml=%.cmo)
$(OCAMLMKLIB) -failsafe -o zarith $+ $(LIBS)
@@ -97,10 +97,10 @@ endif
ifeq ($(INSTMETH),findlib)
install:
- $(OCAMLFIND) install -destdir "$(INSTALLDIR)" zarith META $(TOINSTALL) -optional dllzarith.$(DLLSUFFIX)
+ $(OCAMLFIND) install zarith META $(TOINSTALL) -optional dllzarith.$(DLLSUFFIX)
uninstall:
- $(OCAMLFIND) remove -destdir "$(INSTALLDIR)" zarith
+ $(OCAMLFIND) remove zarith
endif
@@ -130,7 +130,7 @@ $(AUTOGEN): z.mlp z.mlip $(SSRC) z_pp.pl
clean:
/bin/rm -rf *.$(OBJSUFFIX) *.$(LIBSUFFIX) *.$(DLLSUFFIX) *.cmi *.cmo *.cmx *.cmxa *.cmxs *.cma *~ \#* depend test $(AUTOGEN) tmp.c depend
- make -C tests clean
+ $(MAKE) -C tests clean
depend: $(AUTOGEN)
$(OCAMLDEP) -native $(OCAMLINC) $(MLSRC) $(MLISRC) > depend