forked from bighil/aeslua
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
32 lines (25 loc) · 728 Bytes
/
Makefile
File metadata and controls
32 lines (25 loc) · 728 Bytes
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
DIST=aeslua53-0.0.1
LIBDIR=/usr/local/lib/lua/5.3
SUBMODULES=aes buffer ciphermode gf util
FILES= Copyright.txt \
Changelog \
License.txt \
Makefile \
README \
README.html
.PHONY: dist install uninstall test speed
dist:
mkdir -p $(DIST)
cp -rf src $(DIST)
cp -rf lib $(DIST)
cp -f $(FILES) $(DIST)
find . -name .svn -print0 | xargs -0 rm -rf
tar cvzf $(DIST).tar.gz $(DIST)
zip -9 -r $(DIST).zip $(DIST)
uninstall:
rm -rf $(LIBDIR)/aeslua $(LIBDIR)/aeslua.lua
test:
echo "require('aeslua'); print(aeslua.decrypt('key', aeslua.encrypt('key', 'hello world')))" | LUA_PATH="src/?.lua" lua
LUA_PATH="src/?.lua" lua src/test/testaes.lua
speed:
LUA_PATH="src/?.lua" lua src/test/aesspeed.lua