-
Notifications
You must be signed in to change notification settings - Fork 5
/
Makefile
43 lines (35 loc) · 775 Bytes
/
Makefile
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
40
41
42
LIB_NAME= lua-discount
VERSION= 1.2.10.1
# change these to reflect your Lua installation
LUA= /usr
LUAINC= $(LUA)/include/lua5.1
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 = basename.o \
Csio.o \
css.o \
docheader.o \
dumptree.o \
emmatch.o \
generate.o \
markdown.o \
mkdio.o \
resource.o \
toc.o \
xml.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