-
Notifications
You must be signed in to change notification settings - Fork 6
/
Makefile.PL
38 lines (33 loc) · 1.33 KB
/
Makefile.PL
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
28
29
30
31
32
33
34
35
36
37
38
use ExtUtils::MakeMaker;
use strict;
require 5.008001;
# Remember (like I didn't) that WriteMakefile looks at @ARGV,
# so an alternative way to configure a debugging build is:
# perl Makefile.PL DEFINE=-DPADWALKER_DEBUGGING.
my $DEBUGGING = '';
if (@ARGV && $ARGV[0] eq '-d') {
warn "Configuring a debugging build of PadWalker\n";
print STDERR <<END;
************************************************************************
* WARNING! WARNING! WARNING! WARNING! WARNING! WARNING! WARNING! *
************************************************************************
You are building PadWalker in debugging mode, which causes it to
print a lot of gnomic information about its internal operation.
The test suite will fail, because this information will confuse
the test harness. You almost certainly do *not* want to do this
unless you're the author of PadWalker (or perhaps just irrepressibly
curious about its internal operation).
END
$DEBUGGING = '-DPADWALKER_DEBUGGING';
shift;
}
WriteMakefile(
'NAME' => 'PadWalker',
'VERSION_FROM' => 'PadWalker.pm', # finds $VERSION
'LIBS' => [''], # e.g., '-lm'
'DEFINE' => $DEBUGGING,
'INC' => '', # e.g., '-I/usr/include/other',
($DEBUGGING ? (CCFLAGS => '-Wall -ansi') : ()),
dist => {TAR => 'env COPYFILE_DISABLE=true tar'},
MIN_PERL_VERSION => "5.008001",
);