-fPIC patch from John Goerzen.
[perl4caml.git] / Makefile
index 61c0174..8601df8 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,6 +1,6 @@
 # Interface to Perl from OCaml.
 # Copyright (C) 2003 Merjis Ltd.
-# $Id: Makefile,v 1.22 2004-11-22 17:08:36 rich Exp $
+# $Id: Makefile,v 1.26 2004-12-01 12:41:29 rich Exp $
 
 include Makefile.config
 
@@ -17,7 +17,7 @@ OCAMLCFLAGS := -w s -g $(OCAMLCINCS)
 OCAMLOPTFLAGS := -w s $(OCAMLOPTINCS)
 
 CC := gcc
-CFLAGS := -Wall -Wno-unused -I$(PERLINCDIR) $(EXTRA_CFLAGS)
+CFLAGS := -fPIC -Wall -Wno-unused -I$(PERLINCDIR) $(EXTRA_CFLAGS)
 
 LIBPERL := $(shell perl -MExtUtils::Embed -e ldopts)
 
@@ -49,8 +49,10 @@ WRAPPERS := \
        wrappers/pl_HTTP_Request.cmo \
        wrappers/pl_HTTP_Request_Common.cmo \
        wrappers/pl_HTTP_Response.cmo \
+       wrappers/pl_HTML_Form.cmo \
        wrappers/pl_LWP_UserAgent.cmo \
-       wrappers/pl_Template.cmo
+       wrappers/pl_Template.cmo \
+       wrappers/pl_WWW_Mechanize.cmo
 
 all:   perl4caml.cma perl4caml.cmxa META all-examples html
 
@@ -145,6 +147,7 @@ install:
 # Distribution.
 
 dist:
+       $(MAKE) check-manifest
        rm -rf $(PACKAGE)-$(VERSION)
        mkdir $(PACKAGE)-$(VERSION)
        tar -cf - -T MANIFEST | tar -C $(PACKAGE)-$(VERSION) -xf -