public
Description: Lua binding to the discount C implementation of the Markdown text-to-html markup system
Homepage: http://asbradbury.org/projects/lua-discount/
Clone URL: git://github.com/asb/lua-discount.git
lua-discount / Makefile
100644 39 lines (30 sloc) 0.712 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
LIB_NAME= lua-discount
VERSION= 1.2.10.1
 
# change these to reflect your Lua installation
LUA= /usr
LUAINC= $(LUA)/include
LUALIB= $(LUA)/lib
LUABIN= $(LUA)/bin
 
# probably no need to change anything below here
CC= gcc
CFLAGS= $(INCS) $(WARN) -O2 -fPIC ${DEFS}
WARN= -Wall
INCS= -I$(LUAINC)
DEFS =
 
DISCOUNT_OBJS = docheader.o \
dumptree.o \
generate.o \
markdown.o \
mkdio.o \
resource.o \
toc.o
OBJS= $(DISCOUNT_OBJS) ldiscount.o
SOS= discount.so
 
all: $(SOS)
 
$(SOS): $(OBJS)
$(CC) -o $@ -shared $(OBJS) $(LIBS)
 
.PHONY: clean tar
clean:
rm -f $(OBJS) $(SOS) core core.* a.out
 
tar: clean
git archive --format=tar --prefix=$(LIB_NAME)-$(VERSION)/ $(VERSION) | gzip > $(LIB_NAME)-$(VERSION).tar.gz