Commit | Line | Data |
42793c05 |
1 | use ExtUtils::MakeMaker; |
2 | |
3 | WriteMakefile( |
d2cedf73 |
4 | NAME => 'DynaLoader', |
4ad3186e |
5 | LINKTYPE => 'static', |
760ac839 |
6 | DEFINE => '-DPERL_CORE -DLIBC="$(LIBC)"', |
69158f75 |
7 | MAN3PODS => {}, # Pods will be built by installman. |
4ad3186e |
8 | SKIP => [qw(dynamic dynamic_lib dynamic_bs)], |
9 | XSPROTOARG => '-noprototypes', # XXX remove later? |
bfab39a2 |
10 | VERSION_FROM => 'DynaLoader_pm.PL', |
146174a9 |
11 | PL_FILES => {'DynaLoader_pm.PL'=>'DynaLoader.pm', |
12 | 'XSLoader_pm.PL'=>'XSLoader.pm'}, |
13 | PM => {'DynaLoader.pm' => '$(INST_LIBDIR)/DynaLoader.pm', |
14 | 'XSLoader.pm' => '$(INST_LIBDIR)/XSLoader.pm'}, |
03c9e98c |
15 | clean => {FILES => 'DynaLoader.c DynaLoader.xs DynaLoader.pm'}, |
42793c05 |
16 | ); |
17 | |
42793c05 |
18 | sub MY::postamble { |
19 | ' |
d2cedf73 |
20 | DynaLoader.xs: $(DLSRC) |
146174a9 |
21 | $(RM_F) $@ |
d2cedf73 |
22 | $(CP) $? $@ |
42793c05 |
23 | |
24 | # Perform very simple tests just to check for major gaffs. |
25 | # We can\'t do much more for platforms we are not executing on. |
26 | test-xs: |
27 | for i in dl_*xs; \ |
005c1a0e |
28 | do $(PERL) -I$(PERL_ARCHLIB) -I$(PERL_LIB) $(XSUBPP) $(XSUBPPARGS) $$i > /dev/null; \ |
42793c05 |
29 | done |
30 | '; |
31 | } |
32 | |