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.

39 lines
910 B

15 years ago
15 years ago
15 years ago
15 years ago
  1. "Discount" is a C implementation of the Markdown markup language maintained
  2. by David Parsons.
  3. http://www.pell.portland.or.us/~orc/Code/markdown/
  4. The "Makefile", at least in version 1.3.1, doesn't includes a way to create
  5. a shared library so that I'd like to keep a note how I did it.
  6. Linux
  7. -----
  8. 0. run configure.sh
  9. 1. put '-fPIC' into CC options and make the first line as below:
  10. CC=cc -fPIC -I. -L.
  11. 2. add a line to create libmarkdown.so into MKDLIB block
  12. $(MKDLIB): $(OBJS)
  13. $(AR) crv $(MKDLIB) $(OBJS)
  14. $(RANLIB) $(MKDLIB)
  15. $(CC) -shared -o libmarkdown.so $(OBJS)
  16. Mac OS X
  17. --------
  18. 0. run configure.sh
  19. 1. add a line to create libmarkdown.dynlib into MKDLIB block
  20. $(MKDLIB): $(OBJS)
  21. $(AR) crv $(MKDLIB) $(OBJS)
  22. $(RANLIB) $(MKDLIB)
  23. $(CC) -dynaliclib -o libmarkdown.dynlib $(OBJS)
  24. Note
  25. ----
  26. Using libtools might be a good solution, but I'm not sure how to do it for now.