Commit | Line | Data |
---|---|---|
3e61d65a JH |
1 | use 5.008; |
2 | use ExtUtils::MakeMaker; | |
55289a74 | 3 | use ExtUtils::Constant 0.11 'WriteConstants'; |
3e61d65a JH |
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>') : ()), | |
34482cd6 | 13 | 'C' => ['exception.c', 'core.c', 'notcore.c'], |
9b5c3821 | 14 | 'OBJECT' => '$(BASEEXT)$(OBJ_EXT) $(O_FILES)', |
3e61d65a JH |
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 | |
9fdbfc11 | 20 | MAN3PODS => {}, # Pods will be built by installman. |
55289a74 NC |
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 G_DISCARD HV_FETCH_ISSTORE | |
28 | HV_FETCH_ISEXISTS HV_FETCH_LVALUE HV_FETCH_JUST_SV)], | |
3e61d65a JH |
29 | ); |
30 | ||
31 | sub MY::install { "install ::\n" }; |