From 2e31fdfb913ec085bb1e4d86affea9aa3b0a727e Mon Sep 17 00:00:00 2001 From: rich Date: Wed, 22 Oct 2003 10:18:26 +0000 Subject: [PATCH] Fixed so the examples build properly (link perl4caml library from current directory). --- Makefile | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) 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 $< -- 1.8.3.1