Text::Markdown::Discount
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

78 lines
1.3 KiB

14 years ago
13 years ago
13 years ago
14 years ago
14 years ago
  1. use strict;
  2. use warnings;
  3. use ExtUtils::MakeMaker;
  4. use File::Spec;
  5. my $extdir = 'discount';
  6. my $myextlib = File::Spec->catfile($extdir, 'libmarkdown.a');
  7. my $clean_files = join (" ",
  8. map{ File::Spec->catfile($extdir, $_) }
  9. qw (
  10. Csio.o
  11. basename.o
  12. blocktags
  13. cols
  14. config.cmd
  15. config.h
  16. config.log
  17. config.mak
  18. config.md
  19. config.sub
  20. css.o
  21. docheader.o
  22. dumptree.o
  23. echo
  24. emmatch.o
  25. flags.o
  26. generate.o
  27. html5.o
  28. libmarkdown
  29. libmarkdown.a
  30. librarian.sh
  31. main.o
  32. makepage
  33. markdown
  34. markdown.o
  35. mkd2html
  36. mkd2html.o
  37. mkdio.h
  38. mkdio.o
  39. mktags
  40. pgm_options.o
  41. resource.o
  42. setup.o
  43. tags.o
  44. theme
  45. theme.o
  46. toc.o
  47. theme
  48. theme.o
  49. toc.o
  50. version.c
  51. version.o
  52. xml.o
  53. xmlpage.o
  54. ));
  55. sub MY::postamble {
  56. return sprintf('
  57. $(MYEXTLIB):
  58. %s
  59. ', qq{( cd $extdir; CC='cc -fPIC' sh configure.sh; make )\n});
  60. }
  61. WriteMakefile(
  62. NAME => 'Text::Markdown::Discount',
  63. VERSION_FROM => 'lib/Text/Markdown/Discount.pm',
  64. PREREQ_PM => {},
  65. ($] >= 5.005 ?
  66. (ABSTRACT_FROM => 'lib/Text/Markdown/Discount.pm',
  67. AUTHOR => 'Masayoshi Sekimura <sekimura@cpan.org>') : ()),
  68. LIBS => '-L' . $extdir,
  69. INC => '-I. -I' . $extdir,
  70. MYEXTLIB => $myextlib,
  71. clean => { FILES => $clean_files },
  72. );