Debian Codegraph @

INSTALL.Discount

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