Add possibility to pass CFLAGS and LDFLAGS specific to the perl subdir
[git.git] / perl / Makefile.PL
blob92c140d39b662c10204cf54bcd906793b2a1279b
1 use ExtUtils::MakeMaker;
3 sub MY::postamble {
4         return <<'MAKE_FRAG';
5 instlibdir:
6         @echo $(INSTALLSITEARCH)
8 MAKE_FRAG
11 my %pm = ('Git.pm' => '$(INST_LIBDIR)/Git.pm');
13 # We come with our own bundled Error.pm. It's not in the set of default
14 # Perl modules so install it if it's not available on the system yet.
15 eval { require 'Error' };
16 if ($@) {
17         $pm{'Error.pm'} = '$(INST_LIBDIR)/Error.pm';
20 WriteMakefile(
21         NAME            => 'Git',
22         VERSION_FROM    => 'Git.pm',
23         PM              => \%pm,
24         MYEXTLIB        => '../libgit.a',
25         INC             => '-I. -I..',
29 use Devel::PPPort;
31 -s 'ppport.h' or Devel::PPPort::WriteFile();