public
Description: A Lua implementation of the XmlReader API using libxml2
Homepage: http://asbradbury.org/projects/lua-xmlreader/
Clone URL: git://github.com/asb/lua-xmlreader.git
lua-xmlreader / Makefile
100644 28 lines (20 sloc) 0.574 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
# change these to reflect your Lua installation
LUA= /usr
LUAINC= $(LUA)/include
LUALIB= $(LUA)/lib
LUABIN= $(LUA)/bin
 
# no need to change anything below here
CFLAGS= $(INCS) $(DEFS) $(WARN) -fPIC -O2
WARN= -Wall
INCS= -I$(LUAINC) -I/usr/include/libxml2/
LIBS= -lxml2
 
OBJS= xmlreader.o error.o
 
SOS= xmlreader.so
 
all: $(SOS)
 
$(SOS): $(OBJS)
$(CC) -o $@ -shared $(OBJS) $(LIBS)
 
.PHONY: clean doc
clean:
rm -f $(OBJS) $(SOS) core core.* a.out
 
tar: clean
git archive --format=tar --prefix=lua-xmlreader-$(VERSION)/ v$(VERSION) | gzip > lua-xmlreader-$(VERSION).tar.gz