# 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
$(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 $<