Show
Ignore:
Timestamp:
02/18/08 23:34:02 (10 months ago)
Author:
karpet
Message:

split XS out into separate files; move more from XS to C; TODO figure out saner refcnt solution

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • libswish3/trunk/bindings/perl/Makefile.PL

    r2014 r2019  
    22 
    33WriteMakefile( 
    4     NAME              => 'SWISH::3', 
    5     VERSION_FROM      => 'lib/SWISH/3.pm', 
    6     PREREQ_PM         => { 
    7                 'Test::More'  => 0, 
    8                 'Devel::Peek' => 0, 
    9                 'Data::Dump'  => 0, 
    10     },  
    11     H                 => [qw( xs_helpers.c xs_boiler.h headers.h macros.h )], 
    12     ($] >= 5.005 ?      
    13       (ABSTRACT_FROM  => 'lib/SWISH/3.pm', 
    14        AUTHOR         => 'Peter Karman <perl@peknet.com>') : ()), 
    15     LIBS              => ['-L/usr/lib -L/usr/local/lib -lswish3 -lxml2'], 
    16     DEFINE            => '', # e.g., '-DHAVE_SOMETHING' 
    17     INC               => '-I/usr/include -I/usr/local/include -I/usr/include/libxml2 -I/usr/local/include/libxml2 -I.', 
    18         # Un-comment this if you add C files to link with later: 
     4    NAME         => 'SWISH::3', 
     5    VERSION_FROM => 'lib/SWISH/3.pm', 
     6    PREREQ_PM    => { 
     7        'Test::More'  => 0, 
     8        'Devel::Peek' => 0, 
     9        'Data::Dump'  => 0, 
     10    }, 
     11    H => [qw( xs_helpers.c xs_boiler.h headers.h macros.h )], 
     12    (   $] >= 5.005 
     13        ? ( ABSTRACT_FROM => 'lib/SWISH/3.pm', 
     14            AUTHOR        => 'Peter Karman <perl@peknet.com>' 
     15            ) 
     16        : () 
     17    ), 
     18    LIBS => ['-L/usr/lib -L/usr/local/lib -lswish3 -lxml2'], 
     19    DEFINE => '',    # e.g., '-DHAVE_SOMETHING' 
     20    INC => 
     21        '-I/usr/include -I/usr/local/include -I/usr/include/libxml2 -I/usr/local/include/libxml2 -I.', 
     22 
     23    # Un-comment this if you add C files to link with later: 
    1924    # OBJECT            => '$(O_FILES)', # link all the C files too 
    2025); 
     26 
     27sub MY::postamble { 
     28    return "\$(XS_FILES): " 
     29        . join( " ", <XS/*.xs> ) 
     30        . "\n\ttouch \$(XS_FILES)"; 
     31}