summaryrefslogtreecommitdiff
path: root/ext/XS-APItest/Makefile.PL
blob: 3af0eb4f96c0292f63878bec36c39c4aa00c9cc2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
use 5.008;
use ExtUtils::MakeMaker;
use ExtUtils::Constant 0.11 'WriteConstants';
use Config;

WriteMakefile(
    'NAME'		=> 'XS::APItest',
    'VERSION_FROM'	=> 'APItest.pm', # finds $VERSION
    'PREREQ_PM'		=> {}, # e.g., Module::Name => 1.1
    ABSTRACT_FROM	=> 'APItest.pm', # retrieve abstract from module
    AUTHOR		=> 'Tim Jenness <t.jenness@jach.hawaii.edu>, Christian Soeller <csoelle@mph.auckland.ac.nz>, Hugo van der Sanden <hv@crypt.compulink.co.uk>, Andrew Main (Zefram) <zefram@fysh.org>',
    'C'                 => ['exception.c', 'core.c', 'notcore.c'],
    'OBJECT'            => '$(BASEEXT)$(OBJ_EXT) $(O_FILES)',
    realclean => {FILES	=> 'const-c.inc const-xs.inc'},
    ($Config{gccversion} && $Config{d_attribute_deprecated} ?
      (CCFLAGS => $Config{ccflags} . ' -Wno-deprecated-declarations') : ()),
);

WriteConstants(
    PROXYSUBS => 1,
    NAME => 'XS::APItest',
    NAMES => [qw(HV_DELETE HV_DISABLE_UVAR_XKEY HV_FETCH_ISSTORE
		 HV_FETCH_ISEXISTS HV_FETCH_LVALUE HV_FETCH_JUST_SV
		 G_SCALAR G_ARRAY G_VOID G_DISCARD G_EVAL G_NOARGS
		 G_KEEPERR G_NODEBUG G_METHOD G_FAKINGEVAL
		 IS_NUMBER_IN_UV IS_NUMBER_GREATER_THAN_UV_MAX
		 IS_NUMBER_NOT_INT IS_NUMBER_NEG IS_NUMBER_INFINITY
		 IS_NUMBER_NAN
		),
	      {name=>"G_WANT", default=>["IV", "G_ARRAY|G_VOID"]}],
	       );

sub MY::install { "install ::\n"  };