home *** CD-ROM | disk | FTP | other *** search
/ PC Professionell 2004 December / PCpro_2004_12.ISO / files / webserver / tsw / TSW_3.4.0.exe / Apache2 / perl / Makefile.PL < prev    next >
Encoding:
Makefile  |  2003-10-28  |  1.2 KB  |  65 lines

  1. use ExtUtils::MakeMaker;
  2.  
  3. #$Verbose = 1;
  4.  
  5.  
  6. my @h_files ;
  7. my $c_files ;
  8.  
  9. if (-f 'infback.c') {
  10.     # zlib 1.2.0 or greater
  11.     #
  12.     @h_files = qw(crc32.h inffast.h inflate.h trees.h zconf.in.h 
  13.               zutil.h deflate.h inffixed.h inftrees.h zconf.h  zlib.h );
  14.     @c_files = qw(adler32.c crc32.c infback.c inflate.c uncompr.c
  15.           compress.c deflate.c gzio.c inffast.c inftrees.c  
  16.           trees.c zutil.c );
  17. }
  18. else {
  19.     # zlib 1.1.x
  20.  
  21.     @h_files = qw(deflate.h  infcodes.h inftrees.h zconf.h zutil.h
  22.           infblock.h inffast.h  infutil.h  zlib.h);
  23.     @c_files = qw(adler32.c  compress.c crc32.c    gzio.c    uncompr.c
  24.           deflate.c  trees.c    zutil.c    inflate.c infblock.c
  25.           inftrees.c infcodes.c infutil.c  inffast.c);
  26. }
  27.  
  28.  
  29. WriteMakefile(
  30.     'NAME'      => 'zlib',
  31.     'CAPI'         => 'TRUE',
  32.     'LINKTYPE'  => 'static',
  33.     'SKIP'      => [qw(dynamic test)],
  34.     'H'         => [@h_files],
  35.     'C'         => [@c_files],
  36.     'OBJECT'    => q[$(O_FILES)],
  37.     'clean'     =>  {'FILES' => 'libz$(LIB_EXT)'}
  38. );
  39.  
  40. sub MY::post_constants {
  41.     <<'END'
  42. INST_STATIC = libz$(LIB_EXT)
  43. END
  44.     ;
  45. }
  46.  
  47. sub MY::top_targets {
  48.     my $top_targets =<<'END';
  49. all    ::    static
  50.     @$(NOOP)
  51.  
  52. static ::    libz$(LIB_EXT)
  53.     @$(NOOP)
  54.  
  55. config ::
  56.  
  57. test :    
  58.  
  59. END
  60.     ;
  61.     $top_targets;
  62. }
  63.  
  64.  
  65.