-
Notifications
You must be signed in to change notification settings - Fork 0
/
makefile
35 lines (28 loc) · 784 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
COPT = -O2 -DNDEBUG
CWARNS = -Wall -Wextra -pedantic \
-Waggregate-return \
-Wbad-function-cast \
-Wcast-align \
-Wcast-qual \
-Wdeclaration-after-statement \
-Wdisabled-optimization \
-Wmissing-prototypes \
-Wnested-externs \
-Wpointer-arith \
-Wshadow \
-Wsign-compare \
-Wstrict-prototypes \
-Wundef \
-Wwrite-strings \
# -Wunreachable-code \
CFLAGS = $(CWARNS) $(COPT) -ansi
listlpeg.so: lpeg.c
luarocks make listlpeg-scm-1.rockspec
tests:
lua -l luarocks.require test/test.lua
lua -l luarocks.require test/list.lua
dist:
git archive --format=tar --prefix=listlpeg-scm/ HEAD | gzip > listlpeg-scm.tar.gz
scp listlpeg-scm.tar.gz mascarenhas@139.82.100.4:public_html/
clean:
rm listlpeg.so lpeg.o