1 # Module makefile for threads (using ExtUtils::MakeMaker)
8 use ExtUtils::MakeMaker;
11 # Build options for different environments
12 my @conditional_params;
13 if (grep { $_ eq 'PERL_CORE=1' } @ARGV) {
15 push(@conditional_params, 'MAN3PODS' => {},
19 push(@conditional_params, 'CCFLAGS' => '-DHAS_PPPORT_H');
25 'AUTHOR' => 'Artur Bergman <sky AT crucially DOT net>',
26 'VERSION_FROM' => 'threads.pm',
27 'ABSTRACT_FROM' => 'threads.pm',
29 'threads.pm' => '$(INST_LIBDIR)/threads.pm',
32 'threads::shared' => 0,
35 'INSTALLDIRS' => 'perl',
37 ((ExtUtils::MakeMaker->VERSION() lt '6.25') ?
38 ('PL_FILES' => { }) : ()),
39 ((ExtUtils::MakeMaker->VERSION() gt '6.30') ?
40 ('LICENSE' => 'perl') : ()),
46 # Add additional target(s) to Makefile for use by module maintainer
51 @( cd /tmp; perl -e 'use Devel::PPPort; Devel::PPPort::WriteFile("ppport.h");' )
52 @if ! cmp -s ppport.h /tmp/ppport.h; then \
53 diff ppport.h /tmp/ppport.h ; \