1 # perl4caml configuration -*- Makefile -*-
2 # $Id: Makefile.config,v 1.23 2005-01-29 12:22:49 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. Although the
26 # feature is marked "EXPERIMENTAL", I have fixed most of the bugs
27 # and it's now turned on by default.
30 EXTRA_CFLAGS := -DPERL4CAML_REFCOUNTING_EXPERIMENTAL=1
31 #EXTRA_CFLAGS := -I/Users/rich/OCaml/lib/ocaml/std-lib
35 # XXX Hack required by ocamlopt, and sometimes ocamlc.
36 # To work out what this should be, try:
37 # `perl -MExtUtils::Embed -e ldopts'
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