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)"', |
4ad3186e |
7 | MAN3PODS => ' ', # Pods will be built by installman. |
8 | SKIP => [qw(dynamic dynamic_lib dynamic_bs)], |
9 | XSPROTOARG => '-noprototypes', # XXX remove later? |
c07a80fd |
10 | VERSION_FROM => 'DynaLoader.pm', |
d2cedf73 |
11 | clean => {FILES => 'DynaLoader.c DynaLoader.xs'}, |
42793c05 |
12 | ); |
13 | |
14 | |
15 | sub MY::postamble { |
16 | ' |
d2cedf73 |
17 | DynaLoader.xs: $(DLSRC) |
18 | $(CP) $? $@ |
42793c05 |
19 | |
20 | # Perform very simple tests just to check for major gaffs. |
21 | # We can\'t do much more for platforms we are not executing on. |
22 | test-xs: |
23 | for i in dl_*xs; \ |
005c1a0e |
24 | do $(PERL) -I$(PERL_ARCHLIB) -I$(PERL_LIB) $(XSUBPP) $(XSUBPPARGS) $$i > /dev/null; \ |
42793c05 |
25 | done |
26 | '; |
27 | } |
28 | |