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.

29 lines
887 B

  1. use 5.008000;
  2. use ExtUtils::MakeMaker;
  3. # See lib/ExtUtils/MakeMaker.pm for details of how to influence
  4. # the contents of the Makefile that is written.
  5. sub MY::postamble {
  6. return <<'MAKE_FRAG';
  7. MARKDOWN_OBJS=markdown_lib.o markdown_output.o markdown_parser.o
  8. $(MARKDOWN_OBJS):
  9. (cd ../peg-markdown; make)
  10. @ for i in $@; do \
  11. $(CP) ../peg-markdown/$$i .;\
  12. done
  13. libpeg_markdown.$(DLEXT): $(MARKDOWN_OBJS)
  14. $(LD) $(LDDLFLAGS) -o libpeg_markdown.$(DLEXT) $(MARKDOWN_OBJS)
  15. MAKE_FRAG
  16. }
  17. WriteMakefile(
  18. NAME => 'libpeg_markdown',
  19. PREREQ_PM => {}, # e.g., Module::Name => 1.1
  20. LIBS => `pkg-config --libs glib-2.0`,
  21. DEFINE => '', # e.g., '-DHAVE_SOMETHING'
  22. INC => `pkg-config --cflags glib-2.0`,
  23. # OBJECT => '$(O_FILES)', # link all the C files too
  24. clean => { FILES => '*.so *.o'},
  25. );