# Interface to Perl from OCaml.
# Copyright (C) 2003 Merjis Ltd.
-# $Id: Makefile,v 1.8 2003-10-15 08:55:23 rich Exp $
+# $Id: Makefile,v 1.9 2003-10-15 09:49:52 rich Exp $
include Makefile.config
wrappers/pl_HTTP_Response.cmo \
wrappers/pl_LWP_UserAgent.cmo
-all: perl.cma perl.cmxa perl_init.cmo perl_init.cmx all-examples
+all: perl4caml.cma perl4caml.cmxa perl_init.cmo perl_init.cmx all-examples
-perl.cma: perl.cmo perl_c.o $(WRAPPERS)
- $(OCAMLMKLIB) -o perl $(LIBPERL) $^
+perl4caml.cma: perl.cmo perl_c.o $(WRAPPERS)
+ $(OCAMLMKLIB) -o perl4caml $(LIBPERL) $^
-perl.cmxa: perl.cmx perl_c.o $(WRAPPERS:.cmo=.cmx)
- $(OCAMLMKLIB) -o perl $(LIBPERL) $^
+perl4caml.cmxa: perl.cmx perl_c.o $(WRAPPERS:.cmo=.cmx)
+ $(OCAMLMKLIB) -o perl4caml $(LIBPERL) $^
all-examples: examples/test examples/loadpage examples/google
examples/test: examples/test.cmo
- $(OCAMLC) $(OCAMLCFLAGS) perl.cma perl_init.cmo $^ -o $@
+ $(OCAMLC) $(OCAMLCFLAGS) perl4caml.cma perl_init.cmo $^ -o $@
#examples/test.opt: examples/test.cmx
-# $(OCAMLOPT) $(OCAMLOPTFLAGS) perl.cmxa perl_init.cmx $^ -o $@
+# $(OCAMLOPT) $(OCAMLOPTFLAGS) perl4caml.cmxa perl_init.cmx $^ -o $@
examples/loadpage: examples/loadpage.cmo
- $(OCAMLC) $(OCAMLCFLAGS) perl.cma perl_init.cmo $^ -o $@
+ $(OCAMLC) $(OCAMLCFLAGS) perl4caml.cma perl_init.cmo $^ -o $@
#examples/loadpage.opt: examples/loadpage.cmx
-# $(OCAMLOPT) $(OCAMLOPTFLAGS) perl.cmxa perl_init.cmx $^ -o $@
+# $(OCAMLOPT) $(OCAMLOPTFLAGS) perl4caml.cmxa perl_init.cmx $^ -o $@
examples/google: examples/google.cmo
- $(OCAMLC) $(OCAMLCFLAGS) perl.cma perl_init.cmo $^ -o $@
+ $(OCAMLC) $(OCAMLCFLAGS) perl4caml.cma perl_init.cmo $^ -o $@
#examples/google.opt: examples/google.cmx
-# $(OCAMLOPT) $(OCAMLOPTFLAGS) perl.cmxa perl_init.cmx $^ -o $@
+# $(OCAMLOPT) $(OCAMLOPTFLAGS) perl4caml.cmxa perl_init.cmx $^ -o $@
%.cmi: %.mli
$(OCAMLC) $(OCAMLCFLAGS) -c $<
install:
install -c -m 0755 -d $(OCAMLLIBDIR)/perl
install -c -m 0755 -d $(OCAMLLIBDIR)/stublibs
- install -c -m 0644 perl.cmi perl.mli perl.cma perl.cmxa \
- perl_init.cmo perl_init.cmx perl.a libperl.a \
+ install -c -m 0644 perl.cmi perl.mli perl4caml.cma perl4caml.cmxa \
+ perl_init.cmo perl_init.cmx perl4caml.a libperl4caml.a \
$(WRAPPERS:.cmo=.ml) $(WRAPPERS:.cmo=.cmi) $(OCAMLLIBDIR)/perl
- install -c -m 0644 dllperl.so $(OCAMLLIBDIR)/stublibs
+ install -c -m 0644 dllperl4caml.so $(OCAMLLIBDIR)/stublibs
# Distribution.