59d35c937bfc8ccc6b6196ec134cb944febb1796
[p5sagit/p5-mst-13.2.git] / ext / XS-APItest / Makefile.PL
1 use 5.008;
2 use ExtUtils::MakeMaker;
3 use ExtUtils::Constant 0.11 'WriteConstants';
4 # See lib/ExtUtils/MakeMaker.pm for details of how to influence
5 # the contents of the Makefile that is written.
6 WriteMakefile(
7     'NAME'              => 'XS::APItest',
8     'VERSION_FROM'      => 'APItest.pm', # finds $VERSION
9     'PREREQ_PM'         => {}, # e.g., Module::Name => 1.1
10     ($] >= 5.005 ?    ## Add these new keywords supported since 5.005
11       (ABSTRACT_FROM => 'APItest.pm', # retrieve abstract from module
12        AUTHOR     => 'Tim Jenness <t.jenness@jach.hawaii.edu>, Christian Soeller <csoelle@mph.auckland.ac.nz>, Hugo van der Sanden <hv@crypt.compulink.co.uk>') : ()),
13     'C'                 => ['exception.c', 'core.c', 'notcore.c'],
14     'OBJECT'            => '$(BASEEXT)$(OBJ_EXT) $(O_FILES)',
15     'LIBS'              => [''], # e.g., '-lm'
16     'DEFINE'            => '', # e.g., '-DHAVE_SOMETHING'
17     'INC'               => '-I.', # e.g., '-I. -I/usr/include/other'
18         # Un-comment this if you add C files to link with later:
19     # 'OBJECT'          => '$(O_FILES)', # link all the C files too
20     MAN3PODS            => {},  # Pods will be built by installman.
21     realclean => {FILES => 'const-c.inc const-xs.inc'},
22 );
23
24 WriteConstants(
25     PROXYSUBS => 1,
26     NAME => 'XS::APItest',
27     NAMES => [qw(HV_DELETE HV_DISABLE_UVAR_XKEY HV_FETCH_ISSTORE
28                  HV_FETCH_ISEXISTS HV_FETCH_LVALUE HV_FETCH_JUST_SV
29                  G_SCALAR G_ARRAY G_VOID G_DISCARD G_EVAL G_NOARGS
30                  G_KEEPERR G_NODEBUG G_METHOD G_FAKINGEVAL),
31               {name=>"G_WANT", default=>["IV", "G_ARRAY|G_VOID"]}],
32                );
33
34 sub MY::install { "install ::\n"  };