1 use ExtUtils::MakeMaker;
3 # See lib/ExtUtils/MakeMaker.pm for details of how to influence
4 # the contents of the Makefile that is written.
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";
12 'VERSION_FROM' => 'RRDs.pm', # finds $VERSION
13 'DEFINE' => "-DPERLPATCHLEVEL=$Config{PATCHLEVEL}",
14 'INC' => '-I../../src',
15 # Perl will figure out which one is valid
16 'dynamic_lib' => {'OTHERLDFLAGS' => "$librrd -lm"},
17 'realclean' => {FILES => 't/demo?.rrd t/demo?.png' }