| 1 | use strict; |
| 2 | use warnings; |
| 3 | use ExtUtils::MakeMaker; |
| 4 | |
| 5 | my @pack = (["gaussian.pd", qw(Gaussian PDL::Fit::Gaussian)]); |
| 6 | my %hash = pdlpp_stdargs(@pack); |
| 7 | $hash{OBJECT} .= ' gauss$(OBJ_EXT)'; |
| 8 | $hash{LIBS} = ['-lm'] unless $^O =~ /MSWin/; |
| 9 | |
| 10 | undef &MY::postamble; # suppress warning |
| 11 | *MY::postamble = sub { pdlpp_postamble(@pack); }; |
| 12 | |
| 13 | WriteMakefile(%hash); |