prep for 1.2rc4 release
[rrdtool.git] / bindings / perl-shared / Makefile.PL
1 use ExtUtils::MakeMaker;
2 use Config;
3 # See lib/ExtUtils/MakeMaker.pm for details of how to influence
4 # the contents of the Makefile that is written.
5
6 # Specify the location of the archive containing PIC compiled object files.
7 my $R = $^O eq 'Linux' ? "-Wl,--rpath -Wl," : "-R" ;
8 my $librrd = "-L../../src/.libs/ $R\$(RPATH) -lrrd";
9
10 WriteMakefile(
11     'NAME'         => 'RRDs',
12     'VERSION_FROM' => 'RRDs.pm', # finds $VERSION
13     'DEFINE'       => "-DPERLPATCHLEVEL=$Config{PATCHLEVEL}",
14     'INC'          => '-I../../src',
15     # where to look for the necessary libraries 
16     # Perl will figure out which one is valid
17     'depend'       => {'RRDs.c' => "../../src/.libs/librrd.so"},
18     'dynamic_lib'  => {'OTHERLDFLAGS' => "$librrd -lm"},
19     'realclean'    => {FILES => 't/demo?.rrd t/demo?.png' }
20 );