ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/EV/Makefile.PL
Revision: 1.6
Committed: Tue Oct 30 14:02:35 2007 UTC (16 years, 6 months ago) by root
Content type: text/plain
Branch: MAIN
Changes since 1.5: +21 -13 lines
Log Message:
include libevent

File Contents

# User Rev Content
1 root 1.4 use 5.006;
2    
3 root 1.1 use ExtUtils::MakeMaker;
4    
5     WriteMakefile(
6     dist => {
7 root 1.2 PREOP => 'pod2text EV.pm | tee README >$(DISTVNAME)/README; chmod -R u=rwX,go=rX . ;',
8 root 1.1 COMPRESS => 'gzip -9v',
9     SUFFIX => '.gz',
10     },
11 root 1.6 MYEXTLIB => 'libevent/.libs/libevent$(LIB_EXT)',
12 root 1.2 NAME => "EV",
13     VERSION_FROM => "EV.pm",
14 root 1.5 PM => {
15     'EV.pm' => '$(INST_LIBDIR)/EV.pm',
16     'EV/AnyEvent.pm' => '$(INST_LIBDIR)/EV/AnyEvent.pm',
17     'EV/DNS.pm' => '$(INST_LIBDIR)/EV/DNS.pm',
18     'EV/EVAPI.h' => '$(INST_LIBDIR)/EV/EVAPI.h',
19     'EV/MakeMaker.pm' => '$(INST_LIBDIR)/EV/MakeMaker.pm',
20 root 1.6 'libevent/event.h' => '$(INST_LIBDIR)/EV/event.h',
21     'libevent/evdns.h' => '$(INST_LIBDIR)/EV/evdns.h',
22     'libevent/evhttp.h' => '$(INST_LIBDIR)/EV/evhttp.h',
23 root 1.5 },
24 root 1.1 );
25    
26 root 1.6 sub MY::postamble {
27     my $postamble =<<'END';
28    
29     libevent/Makefile: libevent/configure
30     cd libevent && CC="$(CC)" CFLAGS="$(OPTIMIZE) $(CFLAGS) $(CCCDLFLAGS)" ./configure --disable-shared --enable-static --disable-maintainer-mode
31    
32     clean::
33     -cd libevent && make distclean
34    
35     force:
36    
37     $(MYEXTLIB): libevent/Makefile force
38     cd libevent && $(MAKE) all
39    
40     END
41     }
42