# Interface to Perl from OCaml.
# Copyright (C) 2003 Merjis Ltd.
-# $Id: Makefile,v 1.23 2004-11-25 21:24:51 rich Exp $
+# $Id: Makefile,v 1.27 2004-12-11 13:38:32 rich Exp $
include Makefile.config
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)
SED := sed
-# XXX Hack required by ocamlopt, and sometimes ocamlc.
-# To work out what this should be, try:
-# `perl -MExtUtils::Embed -e ldopts'
-DYNALOADER_HACK := /usr/lib/perl/5.8/auto/DynaLoader/DynaLoader.a
-
OCAMLDOCFLAGS := -html -stars -sort $(OCAMLCINCS)
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_WWW_Mechanize.cmo
# Distribution.
dist:
+ $(MAKE) check-manifest
rm -rf $(PACKAGE)-$(VERSION)
mkdir $(PACKAGE)-$(VERSION)
tar -cf - -T MANIFEST | tar -C $(PACKAGE)-$(VERSION) -xf -