use ExtUtils::MakeMaker; WriteMakefile( NAME => 're', VERSION_FROM => 're.pm', MAN3PODS => ' ', # Pods will be built by installman. XSPROTOARG => '-noprototypes', OBJECT => 're_exec$(OBJ_EXT) re_comp$(OBJ_EXT) re$(OBJ_EXT)', DEFINE => '-DDEBUGGING -DIN_XSUB_RE', ); sub MY::postamble { return <<'EOF'; re_comp.c: ../../regcomp.c -$(RM) $@ $(CP) ../../regcomp.c $@ re_exec.c: ../../regexec.c -$(RM) $@ $(CP) ../../regexec.c $@ EOF }