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.
11 /linux/ && do{ $R = "-Wl,--rpath -Wl,\$(RPATH)"};
12 /hpux/ && do{ $R = "+b\$(RPATH)"};
13 /solaris/ && do{ $R = "-R\$(RPATH)"};
16 # darwin works without this because librrd contains its
17 # install_name which will includes the final location of the
18 # library after it is installed. This install_name gets transfered
19 # to the perl shared object.
21 my $librrd = "-L../../src/.libs/ $R -lrrd";
25 'VERSION_FROM' => 'RRDs.pm', # finds $VERSION
26 'DEFINE' => "-DPERLPATCHLEVEL=$Config{PATCHLEVEL}",
27 'INC' => '-I../../src',
28 # Perl will figure out which one is valid
29 'dynamic_lib' => {'OTHERLDFLAGS' => "$librrd -lm"},
30 'realclean' => {FILES => 't/demo?.rrd t/demo?.png' }