⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 makefile.pl

📁 rrdtool
💻 PL
字号:
use ExtUtils::MakeMaker;use Config;# See lib/ExtUtils/MakeMaker.pm for details of how to influence# the contents of the Makefile that is written.# Specify the location of the archive containing PIC compiled object files.my $R = "";for ($^O){        /linux/   && do{ $R = "-Wl,--rpath -Wl,\$(RPATH)"};        /hpux/    && do{ $R = "+b\$(RPATH)"};        /solaris/ && do{ $R = "-R\$(RPATH)"};}# darwin works without this because librrd contains its# install_name which will includes the final location of the# library after it is installed. This install_name gets transfered# to the perl shared object.my $librrd = "-L../../src/.libs/ $R -lrrd";WriteMakefile(    'NAME'         => 'RRDs',    'VERSION_FROM' => 'RRDs.pm', # finds $VERSION    'DEFINE'	   => "-DPERLPATCHLEVEL=$Config{PATCHLEVEL}",    'INC'          => '-I../../src',    # Perl will figure out which one is valid    'dynamic_lib'  => {'OTHERLDFLAGS' => "$librrd -lm"},    'realclean'    => {FILES => 't/demo?.rrd t/demo?.png' });

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -