public
Description: A complete binding to the Imlib2 image manipulation library
Homepage: http://asbradbury.org/projects/lua-imlib2/
Clone URL: git://github.com/asb/lua-imlib2.git
lua-imlib2 / Makefile
100644 31 lines (22 sloc) 0.506 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
# 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) -O2
WARN= -Wall
INCS= -I$(LUAINC)
LIBS= -lImlib2
 
OBJS= limlib2.o
 
SOS= limlib2.so
 
all: limlib2.so
 
limlib2.so: $(OBJS)
$(CC) -o $@ -shared $(OBJS) $(LIBS)
 
.PHONY: clean doc test
clean:
rm -f $(OBJS) $(SOS) *.png core core.* a.out
 
doc:
lua doc/extract_doc.lua limlib2.c > doc/doc.html
 
test:
./lunit test/*