Patch by David Flynn
[perl4caml.git] / Makefile.config
1 # perl4caml configuration -*- Makefile -*-
2 # $Id: Makefile.config,v 1.16 2004-11-03 14:15:18 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.  There are some
26 # problems with this code at the moment, hence it is disabled by
27 # default.
28
29 EXTRA_CFLAGS :=
30 #EXTRA_CFLAGS := -DPERL4CAML_REFCOUNTING_EXPERIMENTAL=1
31
32 # PACKAGE and VERSION
33
34 PACKAGE := perl4caml
35 VERSION := 0.3.11