diff options
Diffstat (limited to 'jpl/JNI/Makefile.PL')
-rw-r--r-- | jpl/JNI/Makefile.PL | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/jpl/JNI/Makefile.PL b/jpl/JNI/Makefile.PL new file mode 100644 index 0000000000..2611ff172c --- /dev/null +++ b/jpl/JNI/Makefile.PL @@ -0,0 +1,24 @@ +#!/usr/bin/perl + +$JPL_SRC = ".."; + +use ExtUtils::MakeMaker; +use Config; + +eval `$JPL_SRC/setvars -perl`; + +$java = $ENV{JAVA_HOME}; +$jpl = $ENV{JPL_HOME}; + +$ARCHNAME = $Config{archname}; + +# See lib/ExtUtils/MakeMaker.pm for details of how to influence +# the contents of the Makefile that is written. +WriteMakefile( + NAME => 'JNI', + VERSION_FROM => 'JNI.pm', + LIBS => ["-R$Config{archlib}/CORE -L$Config{archlib}/CORE -R$jpl/lib/$ARCHNAME -L$jpl/lib/$ARCHNAME -lperl -lPerlInterpreter"], + DEFINE => '', + LINKTYPE => 'dynamic', + INC => "-I$java/include -I$java/include/$^O -I$java/include/genunix", +); |