The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.
use ExtUtils::MakeMaker;
# See lib/ExtUtils/MakeMaker.pm for details of how to influence
# the contents of the Makefile that is written.

$name = "Ioctl";

WriteMakefile(
    'NAME'	=> $name,
    'VERSION_FROM'	=> './genconst.pl',
    'LIBS'	=> [''],   # e.g., '-lm' 
    'DEFINE'	=> '',     # e.g., '-DHAVE_SOMETHING' 
    'OBJECT' => 'Ioctl.o',
    'INC'	=> '',     # e.g., '-I/usr/include/other' 
    #'XS' => { "$name.xs" => "$name.c"},
    'PM' => { "$name.pm" => "\$(INST_LIB)/$name.pm" },
    clean => { FILES => "$name.xs $name.pm $name.c" },
    MAN3PODS => {},
    C => ["$name.c"],
);

sub MY::postamble {
	return "
	
$name.def:
	\$(CP) cdproto $name.def
		
$name.xs $name.pm: genconst.pl $name.def xsproto pmproto
	\$(PERL) -I\$(PERL_LIB) genconst.pl $name
";
}