76a81541ba74343a2ef008b7617743973062a270
[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 $librrd = "-L../../src/.libs/ -lrrd_private"  ;
8
9 WriteMakefile(
10     'NAME'         => 'RRDs',
11     'VERSION_FROM' => 'RRDs.pm', # finds $VERSION
12     'DEFINE'       => "-DPERLPATCHLEVEL=$Config{PATCHLEVEL}",
13     'INC'          => '-I../../src -I../../libraries/gd1.3',
14     # where to look for the necessary libraries 
15     # Perl will figure out which one is valid
16     'depend'       => {'RRDs.c' => "../../src/.libs/librrd_private.a"},
17     'dynamic_lib'  => {'OTHERLDFLAGS' => "$librrd -lm"},
18     'realclean'    => {FILES => 't/demo?.rrd t/demo?.png' }
19 );