blob: 2611ff172c95fe99d8db0727e55cff156693b6ee (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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",
);
|