File: Makefile.PL

package info (click to toggle)
libtime-hr-perl 0.02-3
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 76 kB
  • sloc: perl: 50; makefile: 3
file content (27 lines) | stat: -rw-r--r-- 1,092 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
use 5.006;
use ExtUtils::MakeMaker;
use Config;
use Carp;

# See lib/ExtUtils/MakeMaker.pm for details of how to influence
# the contents of the Makefile that is written.

croak "unsupported OS [$Config{'osname'}] - see README!!!\n"
   unless grep($Config{'osname'}, qw(linux solaris cygwin));
WriteMakefile(
    'NAME'		=> 'Time::HR',
    'VERSION_FROM'	=> 'HR.pm', # finds $VERSION
    'PREREQ_PM'		=> {}, # e.g., Module::Name => 1.1
    ($] >= 5.005 ?    ## Add these new keywords supported since 5.005
      (ABSTRACT_FROM => 'HR.pm', # retrieve abstract from module
       AUTHOR     => 'Alexander Golomshtok <golomshtok_alexander@jpmorgan.com>') : ()),
    'LIBS'		=> [''], # e.g., '-lm'
	# Insert -I. if you add *.h files later:
    'INC'		=> '', # e.g., '-I/usr/include/other'
	# Un-comment this if you add C files to link with later:
    # 'OBJECT'		=> '$(O_FILES)', # link all the C files too
    'CONFIGURE' => sub {{ 'DEFINE' => 
       '-D_'.uc((grep(/$Config{'osname'}/, qw(solaris linux cygwin)))[0]),
       'LIBS' => $Config{'osname'} eq 'linux' ? ['-lrt'] : []
       }}
);