# Interface to Perl from OCaml.
# Copyright (C) 2003 Merjis Ltd.
-# $Id: Makefile,v 1.31 2006-11-01 10:32:46 rich Exp $
+# $Id: Makefile,v 1.32 2008-02-23 15:57:58 rich Exp $
include Makefile.config
PERLCFLAGS := $(shell perl -e 'use Config; print $$Config{ccflags};')
CC := gcc
-CFLAGS := -fPIC -Wall -Wno-unused -I$(PERLINCDIR) $(PERLCFLAGS) $(EXTRA_CFLAGS)
+CFLAGS := -fPIC -Wall -Wno-unused \
+ -I$(OCAMLLIBDIR) \
+ -I$(PERLINCDIR) $(PERLCFLAGS) \
+ $(EXTRA_CFLAGS)
LIBPERL := $(shell perl -MExtUtils::Embed -e ldopts)
# perl4caml configuration -*- Makefile -*-
-# $Id: Makefile.config,v 1.25 2005-03-31 13:46:31 rich Exp $
+# $Id: Makefile.config,v 1.26 2008-02-23 15:57:58 rich Exp $
# PERLINCDIR
# Directory containing the Perl include files, eg. <EXTERN.h>.
# To work out what this should be, try:
# `perl -MExtUtils::Embed -e ldopts'
-DYNALOADER_HACK := /usr/lib/perl/5.8/auto/DynaLoader/DynaLoader.a
+DYNALOADER_HACK := $(shell perl -MExtUtils::Embed -e ldopts | egrep -o '/[^[:space:]]*DynaLoader.a')
+#DYNALOADER_HACK := /usr/lib/perl/5.8/auto/DynaLoader/DynaLoader.a
#DYNALOADER_HACK := /System/Library/Perl/5.8.1/darwin-thread-multi-2level/auto/DynaLoader/DynaLoader.a
# PACKAGE and VERSION
PACKAGE := perl4caml
-VERSION := 0.9.3
+VERSION := 0.9.4