1b1bf7ee24de36fb26ec74148a16cd9f7f33c1ac
[p5sagit/p5-mst-13.2.git] / ext / DynaLoader / Makefile.PL
1 use ExtUtils::MakeMaker;
2
3 WriteMakefile(
4     LINKTYPE    => 'static',
5     DEFINE      => '-DLIBC="$(LIBC)"',
6     MAN3PODS    => ' ',         # Pods will be built by installman.
7     SKIP        => [qw(dynamic dynamic_lib dynamic_bs)],
8     XSPROTOARG => '-noprototypes',              # XXX remove later?
9     clean       => {FILES => 'DynaLoader.c'},
10 );
11
12
13 sub MY::postamble {
14         '
15 DynaLoader.c: $(DLSRC)
16         $(PERL) -I$(PERL_ARCHLIB) -I$(PERL_LIB) $(XSUBPP) $(XSPROTOARG) $(XSUBPPARGS) $(DLSRC) >tmp && mv tmp $@
17
18 # Perform very simple tests just to check for major gaffs.
19 # We can\'t do much more for platforms we are not executing on.
20 test-xs:
21         for i in dl_*xs; \
22             do $(PERL) -I$(PERL_ARCHLIB) -I$(PERL_LIB) $(XSUBPP) $(XSUBPPARGS) $$i > /dev/null; \
23         done
24 ';
25 }
26