Commit | Line | Data |
---|---|---|
b050c948 AB |
1 | use ExtUtils::MakeMaker; |
2 | # See lib/ExtUtils/MakeMaker.pm for details of how to influence | |
3 | # the contents of the Makefile that is written. | |
4 | ||
5 | use Config; | |
6 | ||
7 | ||
8 | unless($Config{'useithreads'} eq 'define') { | |
9 | die "We need a perl that is built with USEITHREAD!\n"; | |
10 | } | |
11 | ||
12 | WriteMakefile( | |
13 | 'NAME' => 'threads::shared', | |
14 | 'VERSION_FROM' => 'shared.pm', # finds $VERSION | |
15 | 'PREREQ_PM' => {}, # e.g., Module::Name => 1.1 | |
16 | ($] >= 5.005 ? ## Add these new keywords supported since 5.005 | |
17 | (ABSTRACT_FROM => 'shared.pm', # retrieve abstract from module | |
18 | AUTHOR => 'Arthur Bergman <arthur@contiller.se>') : ()), | |
19 | 'LIBS' => [''], # e.g., '-lm' | |
20 | 'DEFINE' => '', # e.g., '-DHAVE_SOMETHING' | |
21 | # Insert -I. if you add *.h files later: | |
22 | 'INC' => '', # e.g., '-I/usr/include/other' | |
23 | # Un-comment this if you add C files to link with later: | |
24 | # 'OBJECT' => '$(O_FILES)', # link all the C files too | |
25 | ||
26 | ); |