1use strict; 2 3use ExtUtils::MakeMaker qw(WriteMakefile); 4use File::Spec::Functions; 5use Getopt::Long; 6 7my (@INC, @LIBS); 8 9push @INC, '-Iinclude', '-Isrc'; 10push @LIBS, '-lz'; 11 12my $inc_files = join(' ', glob 'include/*.h'); 13my $src_files = join(' ', glob 'src/*.c'); 14 15WriteMakefile( 16 NAME => 'Audio::Scan', 17 VERSION_FROM => 'lib/Audio/Scan.pm', 18 PREREQ_PM => { 'Test::Warn' => 0 }, 19 ABSTRACT_FROM => 'lib/Audio/Scan.pm', 20 AUTHOR => 'Andy Grundman <andy@hybridized.org>', 21 INC => join(' ', @INC), 22 LIBS => [ join(' ', @LIBS) ], 23 depend => { 'Scan.c' => "$inc_files $src_files" }, 24 LICENSE => 'gpl_2', 25); 26