1 # perl4caml configuration -*- Makefile -*-
2 # $Id: Makefile.config,v 1.14 2004-02-03 12:38:57 rich Exp $
5 # Directory containing the Perl include files, eg. <EXTERN.h>.
7 PERLINCDIR := $(shell perl -MConfig -e 'print "$$Config{archlib}/CORE"')
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).
13 OCAMLLIBDIR := $(shell ocamlc -where)
16 # You can specify extra flags to be passed to gcc here.
18 # One flag you might want to pass here is
20 # -DPERL4CAML_REFCOUNTING_EXPERIMENTAL=1
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
30 #EXTRA_CFLAGS := -DPERL4CAML_REFCOUNTING_EXPERIMENTAL=1