Added submit_form method.
[perl4caml.git] / Makefile.config
1 # perl4caml configuration -*- Makefile -*-
2 # $Id: Makefile.config,v 1.25 2005-03-31 13:46:31 rich Exp $
3
4 # PERLINCDIR
5 # Directory containing the Perl include files, eg. <EXTERN.h>.
6
7 PERLINCDIR := $(shell perl -MConfig -e 'print "$$Config{archlib}/CORE"')
8
9 # OCAMLLIBDIR
10 # This is where we will install perl4caml (actually in the /perl subdirectory
11 # of this, so you will need to add '-I +perl' when compiling programs).
12
13 OCAMLLIBDIR := $(shell ocamlc -where)
14
15 # EXTRA_CFLAGS
16 # You can specify extra flags to be passed to gcc here.
17 #
18 # One flag you might want to pass here is
19 #
20 #   -DPERL4CAML_REFCOUNTING_EXPERIMENTAL=1
21 #
22 # which will turn on experimental support for reference counting.
23 # Without this none of the Perl structures that you allocate will get
24 # freed.  With this we try to map Perl's reference counting onto
25 # OCaml's garbage collection by using finalizers.  Although the
26 # feature is marked "EXPERIMENTAL", I have fixed most of the bugs
27 # and it's now turned on by default.
28
29 #EXTRA_CFLAGS :=
30 EXTRA_CFLAGS := -DPERL4CAML_REFCOUNTING_EXPERIMENTAL=1
31 #EXTRA_CFLAGS := -I/Users/rich/OCaml/lib/ocaml/std-lib
32 #EXTRA_CFLAGS := -g
33
34 # DYNALOADER_HACK
35 # XXX Hack required by ocamlopt, and sometimes ocamlc.
36 # To work out what this should be, try:
37 # `perl -MExtUtils::Embed -e ldopts'
38
39 DYNALOADER_HACK := /usr/lib/perl/5.8/auto/DynaLoader/DynaLoader.a
40 #DYNALOADER_HACK := /System/Library/Perl/5.8.1/darwin-thread-multi-2level/auto/DynaLoader/DynaLoader.a
41
42 # PACKAGE and VERSION
43
44 PACKAGE := perl4caml
45 VERSION := 0.9.3