home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / perl560.zip / ext / re / Makefile.PL next >
Encoding:
Makefile  |  1999-07-20  |  879 b   |  42 lines

  1. use ExtUtils::MakeMaker;
  2. WriteMakefile(
  3.     NAME        => 're',
  4.     VERSION_FROM    => 're.pm',
  5.     MAN3PODS        => {},     # Pods will be built by installman.
  6.     XSPROTOARG        => '-noprototypes',
  7.     OBJECT        => 're_exec$(OBJ_EXT) re_comp$(OBJ_EXT) re$(OBJ_EXT)',
  8.     DEFINE        => '-DPERL_EXT_RE_BUILD -DPERL_EXT_RE_DEBUG',
  9.     clean        => { FILES => '*$(OBJ_EXT) *.c ../../lib/re.pm' },
  10. );
  11.  
  12. sub MY::postamble {
  13.   if ($^O eq 'VMS') {
  14.     return <<'VMS_EOF';
  15. re_comp.c : [--]regcomp.c
  16.     - $(RM_F) $(MMS$TARGET_NAME)
  17.     $(CP) [--]regcomp.c $(MMS$TARGET_NAME)
  18.  
  19. re_comp$(OBJ_EXT) : re_comp.c
  20.  
  21. re_exec.c : [--]regexec.c
  22.     - $(RM_F) $(MMS$TARGET_NAME)
  23.     $(CP) [--]regexec.c $(MMS$TARGET_NAME)
  24.  
  25. re_exec$(OBJ_EXT) : re_exec.c
  26.  
  27.  
  28. VMS_EOF
  29.   } else {
  30.     return <<'EOF';
  31. re_comp.c: ../../regcomp.c
  32.     -$(RM_F) $@
  33.     $(CP) ../../regcomp.c $@
  34.  
  35. re_exec.c: ../../regexec.c
  36.     -$(RM_F) $@
  37.     $(CP) ../../regexec.c $@
  38.  
  39. EOF
  40.   }
  41. }
  42.