From: rich Date: Wed, 22 Oct 2003 10:18:26 +0000 (+0000) Subject: Fixed so the examples build properly (link perl4caml library X-Git-Url: http://git.annexia.org/?a=commitdiff_plain;h=2e31fdfb913ec085bb1e4d86affea9aa3b0a727e;p=perl4caml.git Fixed so the examples build properly (link perl4caml library from current directory). --- diff --git a/Makefile b/Makefile index 711cbce..7b1d5e5 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,6 @@ # Interface to Perl from OCaml. # Copyright (C) 2003 Merjis Ltd. -# $Id: Makefile,v 1.11 2003-10-16 13:41:06 rich Exp $ +# $Id: Makefile,v 1.12 2003-10-22 10:18:26 rich Exp $ include Makefile.config @@ -58,19 +58,22 @@ examples/test: examples/test.cmo $(OCAMLC) $(OCAMLCFLAGS) perl4caml.cma $^ -o $@ examples/test.opt: examples/test.cmx - $(OCAMLOPT) $(OCAMLOPTFLAGS) perl4caml.cmxa $(DYNALOADER_HACK) $^ -o $@ + $(OCAMLOPT) $(OCAMLOPTFLAGS) -cclib -L. perl4caml.cmxa \ + $(DYNALOADER_HACK) $^ -o $@ examples/loadpage: examples/loadpage.cmo $(OCAMLC) $(OCAMLCFLAGS) perl4caml.cma $^ -o $@ examples/loadpage.opt: examples/loadpage.cmx - $(OCAMLOPT) $(OCAMLOPTFLAGS) perl4caml.cmxa $(DYNALOADER_HACK) $^ -o $@ + $(OCAMLOPT) $(OCAMLOPTFLAGS) -cclib -L. perl4caml.cmxa \ + $(DYNALOADER_HACK) $^ -o $@ examples/google: examples/google.cmo $(OCAMLC) $(OCAMLCFLAGS) perl4caml.cma $^ -o $@ examples/google.opt: examples/google.cmx - $(OCAMLOPT) $(OCAMLOPTFLAGS) perl4caml.cmxa $(DYNALOADER_HACK) $^ -o $@ + $(OCAMLOPT) $(OCAMLOPTFLAGS) -cclib -L. perl4caml.cmxa \ + $(DYNALOADER_HACK) $^ -o $@ %.cmi: %.mli $(OCAMLC) $(OCAMLCFLAGS) -c $<