alip / luatomcrypt

Lua bindings for libtomcrypt

This URL has Read+Write access

luatomcrypt / Makefile
100644 22 lines (16 sloc) 0.389 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# LuaTomCrypt's Makefile
 
CFLAGS+=-fPIC -shared -Wall -g -O2 $(shell pkg-config --cflags lua)
LDFLAGS+=$(shell pkg-config --libs lua)
ifdef TOMSFASTMATH
LDFLAGS+= -ltomsfastmath
else
LDFLAGS+= -ltommath
endif
LDFLAGS+= -ltomcrypt
 
tc.so: tomcrypt.c tomcrypt_hash.c
$(CC) $(CFLAGS) $(LDFLAGS) -o $@ tomcrypt.c
 
test:
lunit test/*.lua
 
clean:
rm -f *.o *.so || true
 
.PHONY: clean test