The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.
use strict;
use warnings;
# Use this as a template for the Makefile.PL for
# any external PDL module.

use ExtUtils::MakeMaker;
my @pack = ([qw(imagergb.pd ImageRGB PDL::ImageRGB)]);
my %hash = pdlpp_stdargs_int(@pack);
$hash{'OBJECT'} .= ' ppm_quant$(OBJ_EXT)';
$hash{'clean'}{FILES} .= ' ppm_quant$(OBJ_EXT)';

# Add genpp rule
undef &MY::postamble; # suppress warning
*MY::postamble = sub { pdlpp_postamble_int(@pack); };

WriteMakefile(%hash);