1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
|
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(
'NAME' => 'Proc::ProcessTable',
'VERSION_FROM' => 'ProcessTable.pm', # finds $VERSION
'LIBS' => [''], # e.g., '-lm'
'DEFINE' => '', # e.g., '-DHAVE_SOMETHING'
'INC' => '', # e.g., '-I/usr/include/other'
'LDFROM' => '$(O_FILES)',
'OBJECT' => 'ProcessTable.o OS.o',
'PREREQ_PM' => { 'File::Find' => 0, 'Storable' => 0 },
'clean' => { FILES => 'OS.c' },
'dist' => { COMPRESS=>"gzip", SUFFIX=>"gz" }
);
|