forked from jwbargsten/perl-proc-processtable
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile.PL
27 lines (25 loc) · 964 Bytes
/
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
use ExtUtils::MakeMaker;
# See lib/ExtUtils/MakeMaker.pm for details of how to influence
# the contents of the Makefile that is written.
sub MY::c_o {
package MY; # so that "SUPER" works right
my $inherited = shift->SUPER::c_o(@_);
$inherited =~ s/\$\*\.c/\$\(C_FILES\)/;
$inherited;
}
WriteMakefile(
'ABSTRACT' => 'Perl extension to access the unix process table',
'AUTHOR' => 'Jonathan Swartz <[email protected]>',
'DEFINE' => '', # e.g., '-DHAVE_SOMETHING'
'INC' => '', # e.g., '-I/usr/include/other'
'LDFROM' => '$(O_FILES)',
'LIBS' => [''], # e.g., '-lm'
'LICENSE' => 'perl',
'NAME' => 'Proc::ProcessTable',
'OBJECT' => 'ProcessTable.o OS.o',
'PREREQ_PM' => { 'File::Find' => 0, 'Storable' => 0 },
'VERSION_FROM' => 'ProcessTable.pm', # finds $VERSION
'clean' => { FILES => 'OS.c' },
'dist' => { COMPRESS=>"gzip", SUFFIX=>"gz" },
'test' => { 'TESTS' => 't/*.t' },
);