ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/cvsroot/staticperl/perl/ext/DynaLoader/Makefile.PL
Revision: 1.1
Committed: Thu Jun 30 14:26:46 2005 UTC (21 years, 3 months ago) by root
Content type: text/plain
Branch: MAIN
CVS Tags: PERL-5-8-7, HEAD
Branch point for: PERL
Log Message:
*** empty log message ***

File Contents

# User Rev Content
1 root 1.1 use ExtUtils::MakeMaker;
2    
3     WriteMakefile(
4     NAME => 'DynaLoader',
5     LINKTYPE => 'static',
6     DEFINE => '-DPERL_CORE -DLIBC="$(LIBC)"',
7     MAN3PODS => {}, # Pods will be built by installman.
8     SKIP => [qw(dynamic dynamic_lib dynamic_bs)],
9     XSPROTOARG => '-noprototypes', # XXX remove later?
10     VERSION_FROM => 'DynaLoader_pm.PL',
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'},
15     depend => {'DynaLoader.o' => 'dlutils.c'},
16     clean => {FILES => 'DynaLoader.c DynaLoader.xs DynaLoader.pm ' .
17     'XSLoader.pm'},
18     );
19    
20     sub MY::postamble {
21     '
22     DynaLoader.xs: $(DLSRC)
23     $(RM_F) $@
24     $(CP) $? $@
25    
26     # Perform very simple tests just to check for major gaffs.
27     # We can\'t do much more for platforms we are not executing on.
28     test-xs:
29     for i in dl_*xs; \
30     do $(PERL) -I$(PERL_ARCHLIB) -I$(PERL_LIB) $(XSUBPP) $(XSUBPPARGS) $$i > /dev/null; \
31     done
32     ';
33     }
34