|
Revision 2019, 0.9 kB
(checked in by karpet, 6 months ago)
|
split XS out into separate files; move more from XS to C; TODO figure out saner refcnt solution
|
| Line | |
|---|
| 1 |
use ExtUtils::MakeMaker; |
|---|
| 2 |
|
|---|
| 3 |
WriteMakefile( |
|---|
| 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 => '', |
|---|
| 20 |
INC => |
|---|
| 21 |
'-I/usr/include -I/usr/local/include -I/usr/include/libxml2 -I/usr/local/include/libxml2 -I.', |
|---|
| 22 |
|
|---|
| 23 |
|
|---|
| 24 |
|
|---|
| 25 |
); |
|---|
| 26 |
|
|---|
| 27 |
sub MY::postamble { |
|---|
| 28 |
return "\$(XS_FILES): " |
|---|
| 29 |
. join( " ", <XS/*.xs> ) |
|---|
| 30 |
. "\n\ttouch \$(XS_FILES)"; |
|---|
| 31 |
} |
|---|