Skip to content

Commit

Permalink
Updated makefiles to work with recent compilers according to solution…
Browse files Browse the repository at this point in the history
… from issue mlin#23
  • Loading branch information
RomainFeron committed Aug 14, 2019
1 parent eda6eb8 commit 8ea60a2
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
8 changes: 4 additions & 4 deletions lib/CamlPaml/Makefile
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
LIBNAME = CamlPaml

lib:
ocamlbuild -use-ocamlfind ${LIBNAME}.cma ${LIBNAME}.cmxa
ocamlbuild -cflag '-unsafe-string' -use-ocamlfind ${LIBNAME}.cma ${LIBNAME}.cmxa

test:
ocamlbuild -use-ocamlfind test.native
ocamlbuild -cflag '-unsafe-string' -use-ocamlfind test.native
_build/test.native


Expand All @@ -20,7 +20,7 @@ reinstall:

clean:
rm -f *~
ocamlbuild -clean
ocamlbuild -cflag '-unsafe-string' -clean

doc:
ocamlbuild -use-ocamlfind ${LIBNAME}.docdir/index.html
ocamlbuild -cflag '-unsafe-string' -use-ocamlfind ${LIBNAME}.docdir/index.html
6 changes: 3 additions & 3 deletions src/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,16 @@ ifdef FORKWORK
else
ln -s ForkNo.ml ForkMaybe.ml
endif
ocamlbuild -use-ocamlfind $(OCAMLBUILDFLAGS) PhyloCSF.native
ocamlbuild -cflag '-unsafe-string' -use-ocamlfind $(OCAMLBUILDFLAGS) PhyloCSF.native

test: testexe
./test.native -verbose

testexe: all
ocamlbuild -use-ocamlfind $(OCAMLBUILDFLAGS) testSim.native test.native
ocamlbuild -cflag '-unsafe-string' -use-ocamlfind $(OCAMLBUILDFLAGS) testSim.native test.native

clean:
rm -f *~
ocamlbuild -clean
ocamlbuild -cflag '-unsafe-string' -clean

.PHONY: all test testexe clean

0 comments on commit 8ea60a2

Please sign in to comment.