1use ExtUtils::MakeMaker;
2# See lib/ExtUtils/MakeMaker.pm for details of how to influence
3# the contents of the Makefile that is written.
4
5$name = "Ioctl";
6
7WriteMakefile(
8    'NAME'	=> $name,
9    'VERSION_FROM'	=> './genconst.pl',
10    'LIBS'	=> [''],   # e.g., '-lm'
11    'DEFINE'	=> '',     # e.g., '-DHAVE_SOMETHING'
12    'OBJECT' => 'Ioctl.o',
13    'INC'	=> '',     # e.g., '-I/usr/include/other'
14    #'XS' => { "$name.xs" => "$name.c"},
15    'PM' => { "$name.pm" => "\$(INST_LIB)/$name.pm" },
16    clean => { FILES => "$name.xs $name.pm $name.c" },
17    MAN3PODS => {},
18    C => ["$name.c"],
19);
20
21sub MY::postamble {
22	return "
23
24$name.def:
25	\$(CP) cdproto $name.def
26
27$name.xs $name.pm: genconst.pl $name.def xsproto pmproto
28	\$(PERL) -I\$(PERL_LIB) genconst.pl $name
29";
30}
31