aboutsummaryrefslogtreecommitdiffstats
path: root/grpmi/curl_download/Makefile.PL
blob: cc1fc8bfdf4c8b276c42bdad962f4d6ac8ab2936 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use ExtUtils::MakeMaker;

my $libs = `curl-config --libs`;
$? == 0 or die "CURL development environment seems to be missing (curl-config command reports an error)\n";
chomp $libs;

WriteMakefile(
    'NAME'         => 'curl_download',
    'LIBS'         => [ $libs ],
    'VERSION_FROM' => 'curl_download.pm', # finds VERSION
    'OBJECT'       => 'curl_download.o',
    'INC'          => '-I.',
    'OPTIMIZE'     => '-O2 -Wall -Werror',
    'MAKEFILE'     => 'Makefile_c',
);