-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile.PL
30 lines (27 loc) · 878 Bytes
/
Makefile.PL
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
use 5.010001;
use ExtUtils::MakeMaker;
use Alien::SDL;
$Verbose = 1;
WriteMakefile(
NAME => 'SDLx::Tween',
VERSION_FROM => 'lib/SDLx/Tween.pm', # finds $VERSION
PREREQ_PM => {
'SDL' => 2.533,
'Moose' => 2.0204,
'Set::Object' => 1.28,
},
ABSTRACT_FROM => 'lib/SDLx/Tween.pm',
AUTHOR => 'Ran Eilam <eilara@cpan.org>',
LIBS => Alien::SDL->config('libs', '-lm'),
DEFINE => '', # e.g., '-DHAVE_SOMETHING'
INC => Alien::SDL->config('cflags'). ' -I.',
'MYEXTLIB' => 'tweencee/libtweencee$(LIB_EXT) tailcee/libtailcee$(LIB_EXT)',
OBJECT => q/$(O_FILES)/,
);
sub MY::postamble {
'
$(MYEXTLIB): tweencee/Makefile tailcee/Makefile
cd tweencee && $(MAKE) $(PASSTHRU)
cd tailcee && $(MAKE) $(PASSTHRU)
';
}